You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SCSI_CMD_TEST_UNIT_READY=0x00, ///< The SCSI Test Unit Ready command is used to determine if a device is ready to transfer data (read/write), i.e. if a disk has spun up, if a tape is loaded and ready etc. The device does not perform a self-test operation.
114
113
SCSI_CMD_INQUIRY=0x12, ///< The SCSI Inquiry command is used to obtain basic information from a target device.
115
114
SCSI_CMD_MODE_SELECT_6=0x15, ///< provides a means for the application client to specify medium, logical unit, or peripheral device parameters to the device server. Device servers that implement the MODE SELECT(6) command shall also implement the MODE SENSE(6) command. Application clients should issue MODE SENSE(6) prior to each MODE SELECT(6) to determine supported mode pages, page lengths, and other parameters.
@@ -124,8 +123,7 @@ typedef enum
124
123
}scsi_cmd_type_t;
125
124
126
125
/// SCSI Sense Key
127
-
typedefenum
128
-
{
126
+
typedefenum {
129
127
SCSI_SENSE_NONE=0x00, ///< no specific Sense Key. This would be the case for a successful command
130
128
SCSI_SENSE_RECOVERED_ERROR=0x01, ///< Indicates the last command completed successfully with some recovery action performed by the disc drive.
131
129
SCSI_SENSE_NOT_READY=0x02, ///< Indicates the logical unit addressed cannot be accessed.
@@ -141,6 +139,27 @@ typedef enum
141
139
SCSI_SENSE_MISCOMPARE=0x0e///< Indicates that the source data did not match the data read from the medium.
142
140
}scsi_sense_key_type_t;
143
141
142
+
143
+
typedefenum {
144
+
SCSI_PDT_DIRECT_ACCESS=0x0,
145
+
SCSI_PDT_SEQUENTIAL_ACCESS=0x1,
146
+
SCSI_PDT_PRINTER=0x2,
147
+
SCSI_PDT_PROCESSOR=0x3,
148
+
SCSI_PDT_WRITE_ONCE=0x4,
149
+
SCSI_PDT_CD_DVD=0x5,
150
+
SCSI_PDT_SCANNER=0x6,
151
+
SCSI_PDT_OPTICAL_DEVICE=0x7,
152
+
SCSI_PDT_MEDIUM_CHANGER=0x8,
153
+
SCSI_PDT_COMMUNICATIONS=0x9, // obsolete
154
+
SCSI_PDT_RAID=0x0c,
155
+
SCSI_PDT_ENCLOSURE_SERVICES=0x0d,
156
+
SCSI_PDT_SIMPLIFIED_DIRECT_ACCESS=0x0e,
157
+
SCSI_PDT_OPTICAL_CARD_READER=0x0f,
158
+
SCSI_PDT_BRIDGE=0x10, ///< Bridge device, e.g. USB to SCSI bridge
0 commit comments