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