We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d4ebf5 commit 7e07919Copy full SHA for 7e07919
1 file changed
devices/common/scsi/scsi.h
@@ -180,6 +180,23 @@ enum ScsiError : int {
180
MEDIUM_NOT_PRESENT = 0x3A,
181
};
182
183
+/** SCSI device types used in INQUIRY. */
184
+namespace ScsiDevType {
185
+ enum : uint8_t {
186
+ DIRECT_ACCESS = 0,
187
+ SEQ_ACCESS = 1,
188
+ PRINTER = 2,
189
+ PROCESSOR = 3,
190
+ WRITE_ONCE = 4,
191
+ CD_ROM = 5,
192
+ SCANNER = 6,
193
+ OPT_MEMORY = 7,
194
+ MEDIUM_CHANGER = 8,
195
+ COMMUNICATION = 9,
196
+ UNKNOWN = 0x1F
197
+ };
198
+};
199
+
200
/** Standard SCSI bus timing values measured in ns. */
201
constexpr uint64_t BUS_SETTLE_DELAY = 400;
202
constexpr uint64_t BUS_FREE_DELAY = 800;
0 commit comments