3 #define SCSI_CMD_EXTENDED_COPY 0x83
4 #define SCSI_CMD_INQUIRY 0x12
5 #define SCSI_CMD_LOG_SELECT 0x4C
6 #define SCSI_CMD_LOG_SENSE 0x4D
7 #define SCSI_CMD_MODE_SELECT_6 0x15
8 #define SCSI_CMD_MODE_SELECT_10 0x55
9 #define SCSI_CMD_MODE_SENSE_6 0x1A
10 #define SCSI_CMD_MODE_SENSE_10 0x5A
11 #define SCSI_CMD_MOVE_MEDIUM_ATTACHED 0xA7
12 #define SCSI_CMD_PERSISTENT_RESERVE_IN 0x5E
13 #define SCSI_CMD_PERSISTENT RESERVE OUT 0x5F
14 #define SCSI_CMD_PREVENT_ALLOW_MEDIUM_REMOVAL 0x1E
15 #define SCSI_CMD_READ_BUFFER 0x3C
16 #define SCSI_CMD_READ_ELEMENT_STATUS_ATTACHED 0xB4
17 #define SCSI_CMD_RECEIVE_COPY_RESULTS 0x84
18 #define SCSI_CMD_RECEIVE_DIAGNOSTIC_RESULTS 0x1C
19 #define SCSI_CMD_RELEASE_10 0x57
20 #define SCSI_CMD_RELEASE_6 0x17
21 #define SCSI_CMD_REPORT_DEVICE_IDENTIFIER 0xA3
22 #define SCSI_CMD_REPORT_LUNS 0xA0
23 #define SCSI_CMD_REQUEST_SENSE 0x03
24 #define SCSI_CMD_RESERVE_10 0x56
25 #define SCSI_CMD_RESERVE_6 0x16
26 #define SCSI_CMD_SEND_DIAGNOSTIC 0x1D
27 #define SCSI_CMD_SET_DEVICE_IDENTIFIER 0xA4
28 #define SCSI_CMD_TEST_UNIT_READY 0x00
29 #define SCSI_CMD_WRITE_BUFFER 0x3B
32 #define SCSI_INQUIRY_FLAG_CMDDT 0x02
33 #define SCSI_INQUIRY_FLAG_EVPD 0x01
36 #define SCSI_STD_INQUIRY_CONNECTED 0x00
37 #define SCSI_STD_INQUIRY_NOT_CONNECTED 0x20
39 #define SCSI_STD_INQUIRY_VERSION_NONE 0x00
40 #define SCSI_STD_INQUIRY_VERSION_SPC2 0x04
42 #define SCSI_STD_INQUIRY_TYPE_DIRECT_ACCESS 0x00
43 #define SCSI_STD_INQUIRY_TYPE_SEQUENTIAL 0x01
44 #define SCSI_STD_INQUIRY_TYPE_PRINTER 0x02
45 #define SCSI_STD_INQUIRY_TYPE_PROCESSOR 0x03
46 #define SCSI_STD_INQUIRY_TYPE_WRITE_ONCE 0x04
47 #define SCSI_STD_INQUIRY_TYPE_CD_ROM 0x05
48 #define SCSI_STD_INQUIRY_TYPE_SCANNER 0x06
49 #define SCSI_STD_INQUIRY_TYPE_OPTICAL 0x07
50 #define SCSI_STD_INQUIRY_TYPE_CHANGER 0x08
51 #define SCSI_STD_INQUIRY_TYPE_COMM 0x09
52 #define SCSI_STD_INQUIRY_TYPE_RAID 0x0C
53 #define SCSI_STD_INQUIRY_TYPE_RBC 0x0E
55 #define SCSI_STD_INQUIRY_FLAG1_RMB 0x80
57 #define SCSI_STD_INQUIRY_FLAG2_AERC 0x80
58 #define SCSI_STD_INQUIRY_FLAG2_NORMACA 0x20
59 #define SCSI_STD_INQUIRY_FLAG2_HISUP 0x10
60 #define SCSI_STD_INQUIRY_FLAG2_RESPONSE_FORMAT 0x02
62 #define SCSI_STD_INQUIRY_FLAG3_SCCS 0x80
64 #define SCSI_STD_INQUIRY_FLAG4_BQUE 0x80
65 #define SCSI_STD_INQUIRY_FLAG4_ENCSERV 0x40
66 #define SCSI_STD_INQUIRY_FLAG4_VS 0x20
67 #define SCSI_STD_INQUIRY_FLAG4_MULTIP 0x10
68 #define SCSI_STD_INQUIRY_FLAG4_MCHNGR 0x08
69 #define SCSI_STD_INQUIRY_FLAG4_ADDR16 0x01
71 #define SCSI_STD_INQUIRY_FLAG5_RELADR 0x80
72 #define SCSI_STD_INQUIRY_FLAG5_WBUS 0x20
73 #define SCSI_STD_INQUIRY_FLAG5_SYNC 0x10
74 #define SCSI_STD_INQUIRY_FLAG5_LINKED 0x08
75 #define SCSI_STD_INQUIRY_FLAG5_CMDQUE 0x02
77 #define SCSI_SENSE_CURRENT_ERROR 0x70
78 #define SCSI_SENSE_DEFERRED_ERROR 0x71
79 #define SCSI_SENSE_INFORMATION_VALID 0x80
80 #define SCSI_SENSE_FILEMARK 0x80
81 #define SCSI_SENSE_EOM 0x40
82 #define SCSI_SENSE_ILI 0x20
84 #define SCSI_PAGE_DEVICE_IDENTIFICATION 0x83
85 #define SCSI_PAGE_SUPPORTED_PAGES 0x00
86 #define SCSI_PAGE_UNIT_SERIAL_NUMBER 0x80
88 #define SCSI_CODE_SET_BINARY 0x01
89 #define SCSI_CODE_SET_ACSII 0x02
91 #define SCSI_ASSOCIATION_DEVICE 0x00
92 #define SCSI_ASSOCIATION_PORT 0x10
94 #define SCSI_IDENTIFIER_TYPE_NON_UNIQUE 0x00
95 #define SCSI_IDENTIFIER_TYPE_VENDORID 0x01
96 #define SCSI_IDENTIFIER_TYPE_EUI_64 0x02
97 #define SCSI_IDENTIFIER_TYPE_FC_FS 0x03
98 #define SCSI_IDENTIFIER_TYPE_PORT 0x04
101 #define SCSI_MODE_PAGE_SP 0x80
102 #define SCSI_MODE_SELECT_PF 0x10
103 #define SCSI_MODE_SELECT_SP 0x01
104 #define SCSI_MODE_SENSE_DBD 0x08
105 #define SCSI_MODE_SENSE_PAGE_CODE_MASK 0x3f
106 #define SCSI_MODE_SENSE_PC_CURRENT 0x00
107 #define SCSI_MODE_SENSE_PC_CHANGEABLE 0x40
108 #define SCSI_MODE_SENSE_PC_DEFAULT 0x80
109 #define SCSI_MODE_SENSE_PC_SAVED 0xc0
110 #define SCSI_MODE_SENSE_ALL_PAGES 0x3f