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