aboutsummaryrefslogtreecommitdiffstats
path: root/include/scsi/scsi.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/scsi/scsi.h')
-rw-r--r--include/scsi/scsi.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/include/scsi/scsi.h b/include/scsi/scsi.h
index 216af8538cc9..648d23358038 100644
--- a/include/scsi/scsi.h
+++ b/include/scsi/scsi.h
@@ -104,6 +104,7 @@ struct scsi_cmnd;
104#define UNMAP 0x42 104#define UNMAP 0x42
105#define READ_TOC 0x43 105#define READ_TOC 0x43
106#define READ_HEADER 0x44 106#define READ_HEADER 0x44
107#define GET_EVENT_STATUS_NOTIFICATION 0x4a
107#define LOG_SELECT 0x4c 108#define LOG_SELECT 0x4c
108#define LOG_SENSE 0x4d 109#define LOG_SENSE 0x4d
109#define XDWRITEREAD_10 0x53 110#define XDWRITEREAD_10 0x53
@@ -115,33 +116,61 @@ struct scsi_cmnd;
115#define PERSISTENT_RESERVE_OUT 0x5f 116#define PERSISTENT_RESERVE_OUT 0x5f
116#define VARIABLE_LENGTH_CMD 0x7f 117#define VARIABLE_LENGTH_CMD 0x7f
117#define REPORT_LUNS 0xa0 118#define REPORT_LUNS 0xa0
119#define SECURITY_PROTOCOL_IN 0xa2
118#define MAINTENANCE_IN 0xa3 120#define MAINTENANCE_IN 0xa3
119#define MAINTENANCE_OUT 0xa4 121#define MAINTENANCE_OUT 0xa4
120#define MOVE_MEDIUM 0xa5 122#define MOVE_MEDIUM 0xa5
121#define EXCHANGE_MEDIUM 0xa6 123#define EXCHANGE_MEDIUM 0xa6
122#define READ_12 0xa8 124#define READ_12 0xa8
123#define WRITE_12 0xaa 125#define WRITE_12 0xaa
126#define READ_MEDIA_SERIAL_NUMBER 0xab
124#define WRITE_VERIFY_12 0xae 127#define WRITE_VERIFY_12 0xae
125#define VERIFY_12 0xaf 128#define VERIFY_12 0xaf
126#define SEARCH_HIGH_12 0xb0 129#define SEARCH_HIGH_12 0xb0
127#define SEARCH_EQUAL_12 0xb1 130#define SEARCH_EQUAL_12 0xb1
128#define SEARCH_LOW_12 0xb2 131#define SEARCH_LOW_12 0xb2
132#define SECURITY_PROTOCOL_OUT 0xb5
129#define READ_ELEMENT_STATUS 0xb8 133#define READ_ELEMENT_STATUS 0xb8
130#define SEND_VOLUME_TAG 0xb6 134#define SEND_VOLUME_TAG 0xb6
131#define WRITE_LONG_2 0xea 135#define WRITE_LONG_2 0xea
136#define EXTENDED_COPY 0x83
137#define RECEIVE_COPY_RESULTS 0x84
138#define ACCESS_CONTROL_IN 0x86
139#define ACCESS_CONTROL_OUT 0x87
132#define READ_16 0x88 140#define READ_16 0x88
133#define WRITE_16 0x8a 141#define WRITE_16 0x8a
142#define READ_ATTRIBUTE 0x8c
143#define WRITE_ATTRIBUTE 0x8d
134#define VERIFY_16 0x8f 144#define VERIFY_16 0x8f
135#define WRITE_SAME_16 0x93 145#define WRITE_SAME_16 0x93
136#define SERVICE_ACTION_IN 0x9e 146#define SERVICE_ACTION_IN 0x9e
137/* values for service action in */ 147/* values for service action in */
138#define SAI_READ_CAPACITY_16 0x10 148#define SAI_READ_CAPACITY_16 0x10
139#define SAI_GET_LBA_STATUS 0x12 149#define SAI_GET_LBA_STATUS 0x12
150/* values for VARIABLE_LENGTH_CMD service action codes
151 * see spc4r17 Section D.3.5, table D.7 and D.8 */
152#define VLC_SA_RECEIVE_CREDENTIAL 0x1800
140/* values for maintenance in */ 153/* values for maintenance in */
154#define MI_REPORT_IDENTIFYING_INFORMATION 0x05
141#define MI_REPORT_TARGET_PGS 0x0a 155#define MI_REPORT_TARGET_PGS 0x0a
156#define MI_REPORT_ALIASES 0x0b
157#define MI_REPORT_SUPPORTED_OPERATION_CODES 0x0c
158#define MI_REPORT_SUPPORTED_TASK_MANAGEMENT_FUNCTIONS 0x0d
159#define MI_REPORT_PRIORITY 0x0e
160#define MI_REPORT_TIMESTAMP 0x0f
161#define MI_MANAGEMENT_PROTOCOL_IN 0x10
142/* values for maintenance out */ 162/* values for maintenance out */
163#define MO_SET_IDENTIFYING_INFORMATION 0x06
143#define MO_SET_TARGET_PGS 0x0a 164#define MO_SET_TARGET_PGS 0x0a
165#define MO_CHANGE_ALIASES 0x0b
166#define MO_SET_PRIORITY 0x0e
167#define MO_SET_TIMESTAMP 0x0f
168#define MO_MANAGEMENT_PROTOCOL_OUT 0x10
144/* values for variable length command */ 169/* values for variable length command */
170#define XDREAD_32 0x03
171#define XDWRITE_32 0x04
172#define XPWRITE_32 0x06
173#define XDWRITEREAD_32 0x07
145#define READ_32 0x09 174#define READ_32 0x09
146#define VERIFY_32 0x0a 175#define VERIFY_32 0x0a
147#define WRITE_32 0x0b 176#define WRITE_32 0x0b