xref: /titanic_50/usr/src/uts/common/sys/scsi/generic/commands.h (revision b5a2d8455dfa3190fc977c4bec53e91c99012767)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License (the "License").
6  * You may not use this file except in compliance with the License.
7  *
8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9  * or http://www.opensolaris.org/os/licensing.
10  * See the License for the specific language governing permissions
11  * and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL HEADER in each
14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15  * If applicable, add the following below this CDDL HEADER, with the
16  * fields enclosed by brackets "[]" replaced with your own identifying
17  * information: Portions Copyright [yyyy] [name of copyright owner]
18  *
19  * CDDL HEADER END
20  */
21 
22 /*
23  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 #ifndef	_SYS_SCSI_GENERIC_COMMANDS_H
28 #define	_SYS_SCSI_GENERIC_COMMANDS_H
29 
30 #ifdef	__cplusplus
31 extern "C" {
32 #endif
33 
34 /*
35  * Standard SCSI Command Definitions
36  *
37  * Macros to determine known command sizes
38  */
39 #define	CDB_GROUPID(cmd)	((cmd >> 5) & 0x7)
40 #define	CDB_GROUPID_0	0
41 #define	CDB_GROUPID_1	1
42 #define	CDB_GROUPID_2	2
43 #define	CDB_GROUPID_3	3
44 #define	CDB_GROUPID_4	4
45 #define	CDB_GROUPID_5	5
46 #define	CDB_GROUPID_6	6
47 #define	CDB_GROUPID_7	7
48 
49 #define	CDB_GROUP0	6	/*  6-byte cdb's */
50 #define	CDB_GROUP1	10	/* 10-byte cdb's */
51 #define	CDB_GROUP2	10	/* 10-byte cdb's */
52 #define	CDB_GROUP3	0	/* reserved */
53 #define	CDB_GROUP4	16	/* 16-byte cdb's */
54 #define	CDB_GROUP5	12	/* 12-byte cdb's */
55 #define	CDB_GROUP6	0	/* reserved */
56 #define	CDB_GROUP7	0	/* reserved */
57 
58 /*
59  * Generic Command Definitions
60  * NOTE: CDROM commands are defined in cdio.h
61  */
62 
63 /*
64  * Group 0 Commands (CDB range 0x00 - 0x1F)
65  */
66 #define	SCMD_GROUP0		0x00
67 
68 /*
69  * Group 0 commands, All Devices
70  */
71 #define	SCMD_TEST_UNIT_READY	0x00
72 #define	SCMD_REQUEST_SENSE	0x03
73 #define	SCMD_INQUIRY		0x12
74 #define	SCMD_COPY		0x18
75 #define	SCMD_GDIAG		0x1C	/* receive diagnostic results */
76 #define	SCMD_SDIAG		0x1D	/* send diagnostic results */
77 
78 /*
79  * Group 0 commands, Direct Access Devices
80  */
81 /*	SCMD_TEST_UNIT_READY	0x00	*/
82 #define	SCMD_REZERO_UNIT	0x01
83 /*	SCMD_REQUEST_SENSE	0x03	*/
84 #define	SCMD_FORMAT		0x04
85 #define	SCMD_REASSIGN_BLOCK	0x07
86 #define	SCMD_READ		0x08
87 #define	SCMD_WRITE		0x0a
88 #define	SCMD_SEEK		0x0b
89 /*	SCMD_INQUIRY		0x12	*/
90 #define	SCMD_MODE_SELECT	0x15
91 #define	SCMD_RESERVE		0x16
92 #define	SCMD_RELEASE		0x17
93 /*	SCMD_COPY		0x18	*/
94 #define	SCMD_MODE_SENSE		0x1a
95 #define	SCMD_START_STOP		0x1b
96 /*	SCMD_GDIAG		0x1C	*/
97 /*	SCMD_SDIAG		0x1D	*/
98 #define	SCMD_DOORLOCK		0x1E	/* Prevent/Allow Medium Removal */
99 
100 /*
101  * Group 0 commands, Sequential Access Devices
102  */
103 /*	SCMD_TEST_UNIT_READY	0x00	*/
104 #define	SCMD_REWIND		0x01	/* Note similarity to SCMD_REZERO */
105 /*	SCMD_REQUEST_SENSE	0x03	*/
106 #define	SCMD_READ_BLKLIM	0x05
107 /*	SCMD_READ		0x08	*/
108 /*	SCMD_WRITE		0x0a	*/
109 #define	SCMD_TRK_SEL		0x0b	/* Note similarity to SCMD_SEEK */
110 #define	SCMD_READ_REVERSE	0x0f
111 #define	SCMD_WRITE_FILE_MARK	0x10
112 #define	SCMD_SPACE		0x11
113 /*	SCMD_INQUIRY		0x12	*/
114 #define	SCMD_VERIFY_G0		0x13
115 #define	SCMD_RECOVER_BUF	0x14
116 /*	SCMD_MODE_SELECT	0x15	*/
117 /*	SCMD_RESERVE		0x16	*/
118 /*	SCMD_RELEASE		0x17	*/
119 /*	SCMD_COPY		0x18	*/
120 #define	SCMD_ERASE		0x19
121 /*	SCMD_MODE_SENSE		0x1a	*/
122 #define	SCMD_LOAD		0x1b	/* Note similarity to SCMD_START_STOP */
123 /*	SCMD_GDIAG		0x1c	*/
124 /*	SCMD_SDIAG		0x1d	*/
125 /*	SCMD_DOORLOCK		0x1e	*/
126 
127 
128 /*
129  * Group 0 commands, Printer Devices
130  */
131 /*	SCMD_TEST_UNIT_READY	0x00	*/
132 /*	SCMD_REQUEST_SENSE	0x03	*/
133 /*	SCMD_FORMAT		0x04	*/
134 #define	SCMD_PRINT		0x0a	/* Note similarity to SCMD_WRITE */
135 #define	SCMD_SLEW_PRINT		0x0b	/* ? similar to SCMD_SEEK ? */
136 #define	SCMD_FLUSH_PRINT_BUF	0x10	/* ? similar to SCMD_WRITE_FILE_MARK */
137 /*	SCMD_INQUIRY		0x12	*/
138 /*	SCMD_RECOVER_BUF	0x14	*/
139 /*	SCMD_MODE_SELECT	0x15	*/
140 /*	SCMD_RESERVE		0x16	*/
141 /*	SCMD_RELEASE		0x17	*/
142 /*	SCMD_COPY		0x18	*/
143 /*	SCMD_MODE_SENSE		0x1a	*/
144 #define	SCMD_STOP_PRINT		0x1b	/* Note similarity to SCMD_START_STOP */
145 /*	SCMD_GDIAG		0x1c	*/
146 /*	SCMD_SDIAG		0x1d	*/
147 
148 /*
149  * Group 0 commands, Processor Devices
150  */
151 /*	SCMD_TEST_UNIT_READY	0x00	*/
152 /*	SCMD_REQUEST_SENSE	0x03	*/
153 #define	SCMD_RECEIVE		0x08	/* Note similarity to SCMD_READ */
154 #define	SCMD_SEND		0x0a	/* Note similarity to SCMD_WRITE */
155 /*	SCMD_INQUIRY		0x12	*/
156 /*	SCMD_COPY		0x18	*/
157 /*	SCMD_MODE_SENSE		0x1a	*/
158 /*	SCMD_GDIAG		0x1c	*/
159 /*	SCMD_SDIAG		0x1d	*/
160 
161 /*
162  * Group 0 commands, WORM Devices
163  */
164 /*	SCMD_TEST_UNIT_READY	0x00	*/
165 /*	SCMD_REZERO_UNIT	0x01	*/
166 /*	SCMD_REQUEST_SENSE	0x03	*/
167 /*	SCMD_REASSIGN_BLOCK	0x07	*/
168 /*	SCMD_READ		0x08	*/
169 /*	SCMD_WRITE		0x0a	*/
170 /*	SCMD_SEEK		0x0b	*/
171 /*	SCMD_INQUIRY		0x12	*/
172 /*	SCMD_MODE_SELECT	0x15	*/
173 /*	SCMD_RESERVE		0x16	*/
174 /*	SCMD_RELEASE		0x17	*/
175 /*	SCMD_COPY		0x18	*/
176 /*	SCMD_MODE_SENSE		0x1a	*/
177 /*	SCMD_START_STOP		0x1b	*/
178 /*	SCMD_GDIAG		0x1C	*/
179 /*	SCMD_SDIAG		0x1D	*/
180 /*	SCMD_DOORLOCK		0x1E	*/
181 
182 /*
183  * Group 0 commands, Read Only Devices
184  */
185 /*	SCMD_TEST_UNIT_READY	0x00	*/
186 /*	SCMD_REZERO_UNIT	0x01	*/
187 /*	SCMD_REQUEST_SENSE	0x03	*/
188 /*	SCMD_REASSIGN_BLOCK	0x07	*/
189 /*	SCMD_READ		0x08	*/
190 /*	SCMD_SEEK		0x0b	*/
191 /*	SCMD_INQUIRY		0x12	*/
192 /*	SCMD_MODE_SELECT	0x15	*/
193 /*	SCMD_RESERVE		0x16	*/
194 /*	SCMD_RELEASE		0x17	*/
195 /*	SCMD_COPY		0x18	*/
196 /*	SCMD_MODE_SENSE		0x1a	*/
197 /*	SCMD_START_STOP		0x1b	*/
198 /*	SCMD_GDIAG		0x1C	*/
199 /*	SCMD_SDIAG		0x1D	*/
200 /*	SCMD_DOORLOCK		0x1E	*/
201 
202 /*
203  * Group 1 Commands (CDB range 0x20 - 0x3F)
204  */
205 #define	SCMD_GROUP1		0x20
206 
207 /*
208  * Group 1 Commands, All Devices
209  */
210 #define	SCMD_COMPARE		0x39
211 #define	SCMD_COPY_VERIFY	0x3A
212 #define	SCMD_PERSISTENT_RESERVE_IN		0x5E
213 #define	SCMD_PERSISTENT_RESERVE_OUT		0x5F
214 #define	SCMD_PRIN		SCMD_PERSISTENT_RESERVE_IN
215 #define	SCMD_PROUT		SCMD_PERSISTENT_RESERVE_OUT
216 
217 /*
218  * Group 1 Commands, Direct Access Devices
219  */
220 #define	SCMD_READ_FORMAT_CAP	0x23
221 #define	SCMD_READ_CAPACITY	0x25
222 #define	SCMD_READ_G1		0x28	/* Note that only the group changed */
223 #define	SCMD_WRITE_G1		0x2a	/* Note that only the group changed */
224 #define	SCMD_SEEK_G1		0x2b	/* Note that only the group changed */
225 #define	SCMD_WRITE_VERIFY	0x2e
226 #define	SCMD_VERIFY		0x2f
227 #define	SCMD_SEARCH_HIGH	0x30
228 #define	SCMD_SEARCH_EQUAL	0x31
229 #define	SCMD_SEARCH_LOW		0x32
230 #define	SCMD_SET_LIMITS		0x33
231 #define	SCMD_SYNCHRONIZE_CACHE	0x35
232 #define	SCMD_READ_DEFECT_LIST	0x37
233 #define	SCMD_WRITE_BUFFER	0x3B
234 #define	SCMD_READ_BUFFER	0x3c
235 #define	SCMD_READ_LONG		0x3E
236 #define	SCMD_WRITE_LONG		0x3F
237 #define	SCMD_RESERVE_G1		0x56
238 #define	SCMD_RELEASE_G1		0x57
239 #define	SCMD_MODE_SELECT_G1	0x55
240 #define	SCMD_MODE_SENSE_G1	0x5A
241 #define	SCMD_GET_CONFIGURATION	0x46
242 #define	SCMD_LOG_SELECT_G1	0x4C
243 #define	SCMD_LOG_SENSE_G1	0x4d
244 
245 
246 /*
247  * Group 1 Commands, Sequential Access Devices
248  */
249 #define	SCMD_LOCATE		0x2B	/* Note similarity to SCMD_SEEK_G1 */
250 #define	SCMD_READ_POSITION	0x34
251 #define	SCMD_REPORT_DENSITIES	0x44
252 
253 /*
254  * Group 1 Commands, Printer Devices
255  */
256 /* (None Defined) */
257 
258 /*
259  * Group 1 Commands, Processor Devices
260  */
261 /* (None Defined) */
262 
263 /*
264  * Group 1 Commands, WORM Devices
265  */
266 /*	SCMD_READ_CAPACITY	0x25	*/
267 /*	SCMD_READ_G1		0x28	*/
268 /*	SCMD_WRITE_G1		0x2a	*/
269 /*	SCMD_SEEK_G1		0x2b	*/
270 /*	SCMD_WRITE_VERIFY	0x2e	*/
271 /*	SCMD_VERIFY		0x2f	*/
272 /*	SCMD_SEARCH_HIGH	0x30	*/
273 /*	SCMD_SEARCH_EQUAL	0x31	*/
274 /*	SCMD_SEARCH_LOW		0x32	*/
275 /*	SCMD_SET_LIMITS		0x33	*/
276 
277 /*
278  * Group 1 Commands, Read Only Devices
279  */
280 /*	SCMD_READ_CAPACITY	0x25	*/
281 /*	SCMD_READ_G1		0x28	*/
282 /*	SCMD_SEEK_G1		0x2b	*/
283 /*	SCMD_VERIFY		0x2f	*/
284 /*	SCMD_SEARCH_HIGH	0x30	*/
285 /*	SCMD_SEARCH_EQUAL	0x31	*/
286 /*	SCMD_SEARCH_LOW		0x32	*/
287 /*	SCMD_SET_LIMITS		0x33	*/
288 
289 /*
290  * Group 1 Commands, MMC Devices
291  */
292 
293 /* GET EVENT STATUS NOTIFICATION, MMC-3 5.6 */
294 #define	SCMD_GET_EVENT_STATUS_NOTIFICATION	0x4a
295 
296 /* event header */
297 #define	SD_GESN_HEADER_LEN			4
298 #define	SD_GESN_HEADER_NEA			0x80	/* byte 2 */
299 #define	SD_GESN_HEADER_CLASS			0x07	/* byte 2 */
300 
301 /* media class event class and event data that follows the header */
302 #define	SD_GESN_MEDIA_CLASS			4
303 
304 #define	SD_GESN_MEDIA_DATA_LEN			4
305 #define	SD_GESN_MEDIA_EVENT_CODE		0x0f	/* byte 0 */
306 #define	SD_GESN_MEDIA_EVENT_STATUS_PRESENT	0x02	/* byte 1 */
307 #define	SD_GESN_MEDIA_EVENT_STATUS_TRAY_OPEN	0x01	/* byte 1 */
308 
309 /* media event code */
310 #define	SD_GESN_MEDIA_EVENT_NOCHG		0
311 #define	SD_GESN_MEDIA_EVENT_EJECTREQUEST	1
312 #define	SD_GESN_MEDIA_EVENT_NEWMEDIA		2
313 #define	SD_GESN_MEDIA_EVENT_MEDIAREMOVAL	3
314 #define	SD_GESN_MEDIA_EVENT_MEDIACHANGED	4
315 #define	SD_GESN_MEDIA_EVENT_BGFORMATCOMPLETED	5
316 #define	SD_GESN_MEDIA_EVENT_BGFORMATRESTARTED	6
317 
318 
319 /*
320  * Group 3 Commands
321  */
322 #define	SCMD_VAR_LEN		0x7f
323 
324 /*
325  * Group 4 Commands, All Devices
326  */
327 #define	SCMD_GROUP4		0x80
328 #define	SCMD_EXTENDED_COPY	0x83
329 #define	SCMD_VERIFY_G4		0x8f
330 
331 /*
332  * Group 4 Commands, Direct Access Devices
333  */
334 #define	SCMD_READ_G4		0x88
335 #define	SCMD_WRITE_G4		0x8a
336 #define	SCMD_SVC_ACTION_IN_G4	0x9e
337 #define	SCMD_SVC_ACTION_OUT_G4	0x9f
338 
339 /*
340  * Group 4 Service Actions for Service Action In (16)
341  */
342 #define	SSVC_ACTION_READ_CAPACITY_G4	0x10
343 #define	SSVC_ACTION_READ_LONG_G4	0x11
344 
345 /*
346  * Group 4 Service Actions for Service Action Out (16)
347  */
348 #define	SSVC_ACTION_WRITE_LONG_G4	0x11
349 
350 /*
351  * Group 4 Commands, Sequential Access Devics
352  */
353 #define	SCMD_WRITE_FILE_MARK_G4	0x80
354 #define	SCMD_READ_REVERSE_G4	0x81
355 #define	SCMD_READ_ATTRIBUTE	0x8c
356 #define	SCMD_WRITE_ATTRIBUTE	0x8d
357 #define	SCMD_SPACE_G4		0x91
358 #define	SCMD_LOCATE_G4		0x92
359 
360 /*
361  * Group 5 commands.
362  */
363 #define	SCMD_GROUP5		0xA0
364 #define	SCMD_REPORT_LUNS	0xA0
365 #define	SCMD_SECURITY_PROTO_IN	0xA2
366 #define	SCMD_MAINTENANCE_IN	0xA3
367 #define	SCMD_MAINTENANCE_OUT	0xA4
368 #define	SCMD_READ_G5		0xA8
369 #define	SCMD_WRITE_G5		0xAA
370 #define	SCMD_SVC_ACTION_OUT_G5	0xA9
371 #define	SCMD_SVC_ACTION_IN_G5	0xAB
372 #define	SCMD_GET_PERFORMANCE	0xAC
373 #define	SCMD_VERIFY_G5		0xAF
374 #define	SCMD_SECURITY_PROTO_OUT	0xB5
375 
376 /*
377  * Group 5 Service Actions for Maintenance In (12)
378  */
379 #define	SSVC_ACTION_GET_TARGET_PORT_GROUPS	0x0a
380 #define	SSVC_ACTION_GET_SUPPORTED_OPERATIONS	0x0c
381 #define	SSVC_SCTION_GET_SUPPORTED_MANAGEMENT	0x0d
382 #define	SSVC_ACTION_GET_TIMESTAMP		0x0f
383 
384 /*
385  * Group 5 Service Actions for Maintenance Out (12)
386  */
387 #define	SSVC_ACTION_SET_DEVICE_IDENTIFIER	0x06
388 #define	SSVC_ACTION_SET_PRIORITY		0x0e
389 #define	SSVC_ACTION_SET_TARGET_PORT_GROUPS	0x0a
390 #define	SSVC_ACTION_SET_TIMESTAMP		0x0f
391 
392 /*
393  * Group 5 Service Actions for Service Action In (12)
394  */
395 #define	SSVC_ACTION_READ_MEDIA_SERIAL		0x01
396 /*
397  * scsi_key_strings for SCMD_ definitions
398  *	NOTE: see SCSI_CMDS_KEY_STRINGS_CDIO in cdio.h for additional
399  *	command-to-string translations.
400  */
401 #define	SCSI_CMDS_KEY_STRINGS						\
402 /* 0x00 */ SCMD_TEST_UNIT_READY,	"test_unit_ready",		\
403 /* 0x01 */ SCMD_REWIND |						\
404 		SCMD_REZERO_UNIT,	"rezero/rewind",		\
405 /* 0x03 */ SCMD_REQUEST_SENSE,		"request_sense",		\
406 /* 0x04 */ SCMD_FORMAT,			"format",			\
407 /* 0x05 */ SCMD_READ_BLKLIM,		"read_block_limits",		\
408 /* 0x07 */ SCMD_REASSIGN_BLOCK,		"reassign",			\
409 /* 0x08 */ SCMD_READ |							\
410 		SCMD_RECEIVE,		"read",				\
411 /* 0x0a */ SCMD_PRINT |							\
412 		SCMD_SEND |						\
413 		SCMD_WRITE,		"write",			\
414 /* 0x0b */ SCMD_SEEK |							\
415 		SCMD_SLEW_PRINT |					\
416 		SCMD_TRK_SEL,		"seek",				\
417 /* 0x0f */ SCMD_READ_REVERSE,		"read_reverse",			\
418 /* 0x10 */ SCMD_WRITE_FILE_MARK |					\
419 		SCMD_FLUSH_PRINT_BUF,	"write_file_mark",		\
420 /* 0x11 */ SCMD_SPACE,			"space",			\
421 /* 0x12 */ SCMD_INQUIRY,		"inquiry",			\
422 /* 0x13 */ SCMD_VERIFY_G0,		"verify",			\
423 /* 0x14 */ SCMD_RECOVER_BUF,		"recover_buffer_data",		\
424 /* 0x15 */ SCMD_MODE_SELECT,		"mode_select",			\
425 /* 0x16 */ SCMD_RESERVE,		"reserve",			\
426 /* 0x17 */ SCMD_RELEASE,		"release",			\
427 /* 0x18 */ SCMD_COPY,			"copy",				\
428 /* 0x19 */ SCMD_ERASE,			"erase_tape",			\
429 /* 0x1a */ SCMD_MODE_SENSE,		"mode_sense",			\
430 /* 0x1b */ SCMD_LOAD |							\
431 		SCMD_START_STOP |					\
432 		SCMD_STOP_PRINT,	"load/start/stop",		\
433 /* 0x1c */ SCMD_GDIAG,			"get_diagnostic_results",	\
434 /* 0x1d */ SCMD_SDIAG,			"send_diagnostic_command",	\
435 /* 0x1e */ SCMD_DOORLOCK,		"door_lock",			\
436 /* 0x23 */ SCMD_READ_FORMAT_CAP,	"read_format_capacity",		\
437 /* 0x25 */ SCMD_READ_CAPACITY,		"read_capacity",		\
438 /* 0x28 */ SCMD_READ_G1,		"read(10)",			\
439 /* 0x2a */ SCMD_WRITE_G1,		"write(10)",			\
440 /* 0x2b */ SCMD_SEEK_G1 |						\
441 		SCMD_LOCATE,		"seek(10)",			\
442 /* 0x2e */ SCMD_WRITE_VERIFY,		"write_verify",			\
443 /* 0x2f */ SCMD_VERIFY,			"verify(10)",			\
444 /* 0x30 */ SCMD_SEARCH_HIGH,		"search_data_high",		\
445 /* 0x31 */ SCMD_SEARCH_EQUAL,		"search_data_equal",		\
446 /* 0x32 */ SCMD_SEARCH_LOW,		"search_data_low",		\
447 /* 0x33 */ SCMD_SET_LIMITS,		"set_limits",			\
448 /* 0x34 */ SCMD_READ_POSITION,		"read_position",		\
449 /* 0x35 */ SCMD_SYNCHRONIZE_CACHE,	"synchronize_cache",		\
450 /* 0x37 */ SCMD_READ_DEFECT_LIST,	"read_defect_data",		\
451 /* 0x39 */ SCMD_COMPARE,		"compare",			\
452 /* 0x3a */ SCMD_COPY_VERIFY,		"copy_verify",			\
453 /* 0x3b */ SCMD_WRITE_BUFFER,		"write_buffer",			\
454 /* 0x3c */ SCMD_READ_BUFFER,		"read_buffer",			\
455 /* 0x3e */ SCMD_READ_LONG,		"read_long",			\
456 /* 0x3f */ SCMD_WRITE_LONG,		"write_long",			\
457 /* 0x44 */ SCMD_REPORT_DENSITIES |					\
458 		/* SCMD_READ_HEADER (from cdio.h) | */			\
459 		0,			"report_densities/read_header",	\
460 /* 0x4c */ SCMD_LOG_SELECT_G1,		"log_select",			\
461 /* 0x4d */ SCMD_LOG_SENSE_G1,		"log_sense",			\
462 /* 0x55 */ SCMD_MODE_SELECT_G1,		"mode_select(10)",		\
463 /* 0x56 */ SCMD_RESERVE_G1,		"reserve(10)",			\
464 /* 0x57 */ SCMD_RELEASE_G1,		"release(10)",			\
465 /* 0x5a */ SCMD_MODE_SENSE_G1,		"mode_sense(10)",		\
466 /* 0x5e */ SCMD_PERSISTENT_RESERVE_IN,	"persistent_reserve_in",	\
467 /* 0x5f */ SCMD_PERSISTENT_RESERVE_OUT,	"persistent_reserve_out",	\
468 /* 0x80 */ SCMD_WRITE_FILE_MARK_G4,	"write_file_mark(16)",		\
469 /* 0x81 */ SCMD_READ_REVERSE_G4,	"read_reverse(16)",		\
470 /* 0x83 */ SCMD_EXTENDED_COPY,		"extended_copy",		\
471 /* 0x88 */ SCMD_READ_G4,		"read(16)",			\
472 /* 0x8a */ SCMD_WRITE_G4,		"write(16)",			\
473 /* 0x8c */ SCMD_READ_ATTRIBUTE,		"read_attribute",		\
474 /* 0x8d */ SCMD_WRITE_ATTRIBUTE,	"write_attribute",		\
475 /* 0x8f */ SCMD_VERIFY_G4,		"verify(16)",			\
476 /* 0x91 */ SCMD_SPACE_G4,		"space(16)",			\
477 /* 0x92 */ SCMD_LOCATE_G4,		"locate(16)",			\
478 /* 0x9e */ SCMD_SVC_ACTION_IN_G4,	"service_action_in(16)",	\
479 /* 0x9f */ SCMD_SVC_ACTION_OUT_G4,	"service_action_out(16)",	\
480 /* 0xa0 */ SCMD_REPORT_LUNS,		"report_luns",			\
481 /* 0xa2 */ SCMD_SECURITY_PROTO_IN,	"security_protocol_in",		\
482 /* 0xa3 */ SCMD_MAINTENANCE_IN,		"maintenance_in",		\
483 /* 0xa4 */ SCMD_MAINTENANCE_OUT,	"maintenance_out",		\
484 /* 0xa8 */ SCMD_READ_G5,		"read(12)",			\
485 /* 0xa9 */ SCMD_SVC_ACTION_OUT_G5,	"service_action_out(12)",	\
486 /* 0xaa */ SCMD_WRITE_G5,		"write(12)",			\
487 /* 0xab */ SCMD_SVC_ACTION_IN_G5,	"service_action_in(12)",	\
488 /* 0xac */ SCMD_GET_PERFORMANCE,	"get_performance",		\
489 /* 0xAF */ SCMD_VERIFY_G5,		"verify(12)",			\
490 /* 0xb5 */ SCMD_SECURITY_PROTO_OUT,	"security_protocol_out"		\
491 	/* see cdio.h for additional command-to-string translations */
492 
493 /* XXX not a command code, does not belong here */
494 #define	ATAPI_CAPABILITIES	0x2A
495 
496 #ifdef	__cplusplus
497 }
498 #endif
499 
500 /*
501  * Below are inclusions of files describing various command structures
502  * of interest.
503  */
504 #include <sys/scsi/generic/inquiry.h>
505 #include <sys/scsi/generic/sense.h>
506 
507 /*
508  * Private Vendor Unique Commands - Each implementation provides this.
509  */
510 #include <sys/scsi/impl/commands.h>
511 
512 #endif	/* _SYS_SCSI_GENERIC_COMMANDS_H */
513