diff options
author | mav <mav@FreeBSD.org> | 2014-08-17 18:24:59 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2014-08-17 18:24:59 +0000 |
commit | b70f4cf9fc392c39962fcebd40ebe7ca804b1e70 (patch) | |
tree | c75b71464d549b98a081c1d691651fd570eaab5a /sys/cam/scsi/scsi_all.h | |
parent | 8fabb08e857fecab7fe854eee84d1738745f8c5b (diff) | |
download | FreeBSD-src-b70f4cf9fc392c39962fcebd40ebe7ca804b1e70.zip FreeBSD-src-b70f4cf9fc392c39962fcebd40ebe7ca804b1e70.tar.gz |
MFC r269622:
Fix several issues and inconsistencies in UNMAP capabilities reporting.
This makes Windows 2012 to start using UNMAP on our disks.
Diffstat (limited to 'sys/cam/scsi/scsi_all.h')
-rw-r--r-- | sys/cam/scsi/scsi_all.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/sys/cam/scsi/scsi_all.h b/sys/cam/scsi/scsi_all.h index 6f92df1..67ef7e7 100644 --- a/sys/cam/scsi/scsi_all.h +++ b/sys/cam/scsi/scsi_all.h @@ -2315,6 +2315,27 @@ struct scsi_vpd_block_characteristics }; /* + * Block Device Characteristics VPD Page + */ +struct scsi_vpd_block_device_characteristics +{ + uint8_t device; + uint8_t page_code; +#define SVPD_BDC 0xB1 + uint8_t page_length[2]; + uint8_t medium_rotation_rate[2]; +#define SVPD_NOT_REPORTED 0x0000 +#define SVPD_NON_ROTATING 0x0001 + uint8_t product_type; + uint8_t wab_wac_ff; + uint8_t flags; +#define SVPD_VBULS 0x01 +#define SVPD_FUAB 0x02 +#define SVPD_HAW_ZBC 0x10 + uint8_t reserved[55]; +}; + +/* * Logical Block Provisioning VPD Page based on * T10/1799-D Revision 31 */ |