Skip to content

Commit 7e07919

Browse files
scsi.h: add device types enum.
1 parent 7d4ebf5 commit 7e07919

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

devices/common/scsi/scsi.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,23 @@ enum ScsiError : int {
180180
MEDIUM_NOT_PRESENT = 0x3A,
181181
};
182182

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+
183200
/** Standard SCSI bus timing values measured in ns. */
184201
constexpr uint64_t BUS_SETTLE_DELAY = 400;
185202
constexpr uint64_t BUS_FREE_DELAY = 800;

0 commit comments

Comments
 (0)