2.2.27 STORAGE_DEVICE_DESCRIPTOR
The STORAGE_DEVICE_DESCRIPTOR structure contains storage device descriptor data for a device.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Version |
|||||||||||||||||||||||||||||||
|
Size |
|||||||||||||||||||||||||||||||
|
DeviceType |
Reserved |
RemovableMedia |
CommandQueueing |
||||||||||||||||||||||||||||
|
VendorIdOffset |
|||||||||||||||||||||||||||||||
|
ProductIdOffset |
|||||||||||||||||||||||||||||||
|
ProductRevisionOffset |
|||||||||||||||||||||||||||||||
|
SerialNumberOffset |
|||||||||||||||||||||||||||||||
|
StorageBusType |
|||||||||||||||||||||||||||||||
|
RawPropertiesLength |
|||||||||||||||||||||||||||||||
|
RawDeviceProperties (variable) |
|||||||||||||||||||||||||||||||
|
... |
|||||||||||||||||||||||||||||||
Version (4 bytes): This field MUST be set to 37, indicating the size of this structure through the first byte of the RawDeviceProperties field.
Size (4 bytes): Contains size in bytes, of the structure including length of the vendor ID specified at VendorIdOffset, length of the product ID specified at ProductIdOffset, length of the product revision specified at ProductRevisionOffset and length of the serial number specified at SerialNumberOffset.
DeviceType (1 byte): Specifies the device type as defined by PERIPHERAL DEVICE TYPE field in [SPC-3] section 6.4.2.
Reserved (1 byte): This field SHOULD be set to zero and MUST ignore it on receipt.
RemovableMedia (1 byte): A Boolean value, where zero represents FALSE and nonzero represents TRUE. Indicates when TRUE that the device's media (if any) is removable. If the device has no media, this member MUST be ignored. When FALSE the device's media is not removable.
CommandQueueing (1 byte): A Boolean value, where zero represents FALSE and nonzero represents TRUE. Indicates when TRUE that the device supports multiple outstanding commands (SCSI tagged queuing or equivalent). When FALSE, the device does not support SCSI-tagged queuing or the equivalent.
VendorIdOffset (4 bytes): Specifies the byte offset from the beginning of the structure to a null-terminated ASCII string that contains the device's vendor ID within the RawDeviceProperties field. If the device has no vendor ID, this member is zero.
ProductIdOffset (4 bytes): Specifies the byte offset from the beginning of the structure to a null-terminated ASCII string that contains the device's product ID within the RawDeviceProperties field. If the device has no product ID, this member is zero.
ProductRevisionOffset (4 bytes): Specifies the byte offset from the beginning of the structure to a null-terminated ASCII string that contains the device's product revision string within the RawDeviceProperties field. If the device has no product revision string, this member is zero.
SerialNumberOffset (4 bytes): Specifies the byte offset from the beginning of the structure to a null-terminated ASCII string that contains the device's serial number within the RawDeviceProperties field. If the device has no serial number, this member is zero.
StorageBusType (4 bytes): Indicates the type of bus, as specified in DiskBusType in section 2.2.5.
RawPropertiesLength (4 bytes): Indicates the number of bytes of bus-specific data contained in RawDeviceProperties.
RawDeviceProperties (variable): Contains implementation-specific bus specific property data.