aboutsummaryrefslogtreecommitdiffstats
path: root/tools/ioemu/iodev/scsi_commands.h
blob: c516fde31c76c6f0eeb5462c574aa370cd5d7ebd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
/////////////////////////////////////////////////////////////////////////
// $Id: scsi_commands.h,v 1.3 2001/10/03 13:10:38 bdenney Exp $
/////////////////////////////////////////////////////////////////////////
//
/* scsi/commands.h
   Used only in cdrom_amigaos.cc.

	Operation codes for SCSI-2 commands

   30 Nov 94   Peter Urbanec    Created file
   10 Jan 95   Peter Urbanec    Added SCSI_ prefix to all commands
   31 Jan 95   Peter Urbanec    Released to public

*/


/* All device types */

#define SCSI_CHANGE_DEFINITION			0x40
#define SCSI_COMPARE				0x39
#define SCSI_COPY				0x18
#define SCSI_COPY_AND_VERIFY			0x3a
#define SCSI_INQUIRY				0x12
#define SCSI_LOG_SELECT				0x4c
#define SCSI_LOG_SENSE				0x4d
#define SCSI_MODE_SELECT_6			0x15
#define SCSI_MODE_SELECT_10			0x55
#define SCSI_MODE_SENSE_6			0x1a
#define SCSI_MODE_SENSE_10			0x5a
#define SCSI_READ_BUFFER			0x3c
#define SCSI_RECEIVE_DIAGNOSTIC_RESULTS		0x1c
#define SCSI_REQUEST_SENSE			0x03
#define SCSI_SEND_DIAGNOSTIC			0x1d
#define SCSI_TEST_UNIT_READY			0x00
#define SCSI_WRITE_BUFFER			0x3b


/* Direct Access devices */

#define SCSI_DA_CHANGE_DEFINITION		0x40
#define SCSI_DA_COMPARE				0x39
#define SCSI_DA_COPY				0x18
#define SCSI_DA_COPY_AND_VERIFY			0x3a
#define SCSI_DA_FORMAT_UNIT			0x04
#define SCSI_DA_INQUIRY				0x12
#define SCSI_DA_LOCK_UNLOCK_CACHE		0x36
#define SCSI_DA_LOG_SELECT			0x4c
#define SCSI_DA_LOG_SENSE			0x4d
#define SCSI_DA_MODE_SELECT_6			0x15
#define SCSI_DA_MODE_SELECT_10			0x55
#define SCSI_DA_MODE_SENSE_6			0x1a
#define SCSI_DA_MODE_SENSE_10			0x5a
#define SCSI_DA_PRE_FETCH			0x34
#define SCSI_DA_PREVENT_ALLOW_MEDIUM_REMOVAL	0x1e
#define SCSI_DA_READ_6				0x08
#define SCSI_DA_READ_10				0x28
#define SCSI_DA_READ_BUFFER			0x3c
#define SCSI_DA_READ_CAPACITY			0x25
#define SCSI_DA_READ_DEFECT_DATA		0x37
#define SCSI_DA_READ_LONG			0x3e
#define SCSI_DA_REASSIGN_BLOCKS			0x07
#define SCSI_DA_RECEIVE_DIAGNOSTIC_RESULTS	0x1c
#define SCSI_DA_RELEASE				0x17
#define SCSI_DA_REQUEST_SENSE			0x03
#define SCSI_DA_RESERVE				0x16
#define SCSI_DA_REZERO_UNIT			0x01
#define SCSI_DA_SEARCH_DATA_EQUAL		0x31
#define SCSI_DA_SEARCH_DATA_HIGH		0x30
#define SCSI_DA_SEARCH_DATA_LOW			0x32
#define SCSI_DA_SEEK_6				0x0b
#define SCSI_DA_SEEK_10				0x2b
#define SCSI_DA_SEND_DIAGNOSTIC			0x1d
#define SCSI_DA_SET_LIMITS			0x33
#define SCSI_DA_START_STOP_UNIT			0x1b
#define SCSI_DA_SYNCHRONIZE_CACHE		0x35
#define SCSI_DA_TEST_UNIT_READY			0x00
#define SCSI_DA_VERIFY				0x2f


/* Sequential access devices */

#define SCSI_SA_CHANGE_DEFINITION		0x40
#define SCSI_SA_COMPARE				0x39
#define SCSI_SA_COPY				0x18
#define SCSI_SA_COPY_AND_VERIFY			0x3a
#define SCSI_SA_ERASE				0x19
#define SCSI_SA_INQUIRY				0x12
#define SCSI_SA_LOAD_UNLOAD			0x1b
#define SCSI_SA_LOCATE				0x2b
#define SCSI_SA_LOG_SELECT			0x4c
#define SCSI_SA_LOG_SENSE			0x4d
#define SCSI_SA_MODE_SELECT_6			0x15
#define SCSI_SA_MODE_SELECT_10			0x55
#define SCSI_SA_MODE_SENSE_6			0x1a
#define SCSI_SA_MODE_SENSE_10			0x5a
#define SCSI_SA_PREVENT_ALLOW_MEDIUM_REMOVAL	0x1e
#define SCSI_SA_READ				0x08
#define SCSI_SA_READ_BLOCK_LIMITS		0x05
#define SCSI_SA_READ_BUFFER			0x3c
#define SCSI_SA_READ_POSITION			0x34
#define SCSI_SA_READ_REVERSE			0x0f
#define SCSI_SA_RECEIVE_DIAGNOSTIC_RESULTS	0x1c
#define SCSI_SA_RECOVER_BUFFERED_DATA		0x14
#define SCSI_SA_RELEASE_UNIT			0x17
#define SCSI_SA_REQUEST_SENSE			0x03
#define SCSI_SA_RESERVE_UNIT			0x16
#define SCSI_SA_REWIND				0x01
#define SCSI_SA_SEND_DIAGNOSTIC			0x1d
#define SCSI_SA_SPACE				0x11
#define SCSI_SA_TEST_UNIT_READY			0x00
#define SCSI_SA_VERIFY				0x13
#define SCSI_SA_WRITE				0x0a
#define SCSI_SA_WRITE_BUFFER			0x3b
#define SCSI_SA_WRITE_FILEMARKS			0x10


/* Printer devices */

#define SCSI_PRT_CHANGE_DEFINITION		0x40
#define SCSI_PRT_COMPARE			0x39
#define SCSI_PRT_COPY				0x18
#define SCSI_PRT_COPY_AND_VERIFY		0x3a
#define SCSI_PRT_FORMAT				0x04
#define SCSI_PRT_INQUIRY			0x12
#define SCSI_PRT_LOG_SELECT			0x4c
#define SCSI_PRT_LOG_SENSE			0x4d
#define SCSI_PRT_MODE_SELECT_6			0x15
#define SCSI_PRT_MODE_SELECT_10			0x55
#define SCSI_PRT_MODE_SENSE_6			0x1a
#define SCSI_PRT_MODE_SENSE_10			0x5a
#define SCSI_PRT_PRINT				0x0a
#define SCSI_PRT_READ_BUFFER			0x3c
#define SCSI_PRT_RECEIVE_DIAGNOSTIC_RESULTS	0x1c
#define SCSI_PRT_RECOVER_BUFFERED_DATA		0x14
#define SCSI_PRT_RELEASE_UNIT			0x17
#define SCSI_PRT_REQUEST_SENSE			0x03
#define SCSI_PRT_RESERVE_UNIT			0x16
#define SCSI_PRT_SEND_DIAGNOSTIC		0x1d
#define SCSI_PRT_SLEW_AND_PRINT			0x0b
#define SCSI_PRT_STOP_PRINT			0x1b
#define SCSI_PRT_SYNCHRONIZE_BUFFER		0x10
#define SCSI_PRT_TEST_UNIT_READY		0x00
#define SCSI_PRT_WRITE_BUFFER			0x3b


/* Processor devices */

#define SCSI_CPU_CHANGE_DEFINITION		0x40
#define SCSI_CPU_COMPARE			0x39
#define SCSI_CPU_COPY				0x18
#define SCSI_CPU_COPY_AND_VERIFY		0x3a
#define SCSI_CPU_INQUIRY			0x12
#define SCSI_CPU_LOG_SELECT			0x4c
#define SCSI_CPU_LOG_SENSE			0x4d
#define SCSI_CPU_READ_BUFFER			0x3c
#define SCSI_CPU_RECEIVE			0x08
#define SCSI_CPU_RECEIVE_DIAGNOSTIC_RESULTS	0x1c
#define SCSI_CPU_REQUEST_SENSE			0x03
#define SCSI_CPU_SEND				0x0a
#define SCSI_CPU_SEND_DIAGNOSTIC		0x1d
#define SCSI_CPU_TEST_UNIT_READY		0x00
#define SCSI_CPU_WRITE_BUFFER			0x3b


/* Write Once devices */

#define SCSI_WO_CHANGE_DEFINITION		0x40
#define SCSI_WO_COMPARE				0x39
#define SCSI_WO_COPY				0x18
#define SCSI_WO_COPY_AND_VERIFY			0x3a
#define SCSI_WO_INQUIRY				0x12
#define SCSI_WO_LOCK_UNLOCK_CACHE		0x36
#define SCSI_WO_LOG_SELECT			0x4c
#define SCSI_WO_LOG_SENSE			0x4d
#define SCSI_WO_MEDIUM_SCAN			0x38
#define SCSI_WO_MODE_SELECT_6			0x15
#define SCSI_WO_MODE_SELECT_10			0x55
#define SCSI_WO_MODE_SENSE_6			0x1a
#define SCSI_WO_MODE_SENSE_10			0x5a
#define SCSI_WO_PRE_FETCH			0x34
#define SCSI_WO_PREVENT_ALLOW_MEDIUM_REMOVAL	0x1e
#define SCSI_WO_READ_6				0x08
#define SCSI_WO_READ_10				0x28
#define SCSI_WO_READ_12				0xa8
#define SCSI_WO_READ_BUFFER			0x3c
#define SCSI_WO_READ_CAPACITY			0x25
#define SCSI_WO_READ_LONG			0x3e
#define SCSI_WO_REASSIGN_BLOCKS			0x07
#define SCSI_WO_RECEIVE_DIAGNOSTIC_RESULTS	0x1c
#define SCSI_WO_RELEASE				0x17
#define SCSI_WO_REQUEST_SENSE			0x03
#define SCSI_WO_RESERVE				0x16
#define SCSI_WO_REZERO_UNIT			0x01
#define SCSI_WO_SEARCH_DATA_EQUAL_10		0x31
#define SCSI_WO_SEARCH_DATA_EQUAL_12		0xb1
#define SCSI_WO_SEARCH_DATA_HIGH_10		0x30
#define SCSI_WO_SEARCH_DATA_HIGH_12		0xb0
#define SCSI_WO_SEARCH_DATA_LOW_10		0x32
#define SCSI_WO_SEARCH_DATA_LOW_12		0xb2
#define SCSI_WO_SEEK_6				0x0b
#define SCSI_WO_SEEK_10				0x2b
#define SCSI_WO_SEND_DIAGNOSTIC			0x1d
#define SCSI_WO_SET_LIMITS_10			0x33
#define SCSI_WO_SET_LIMITS_12			0xb3
#define SCSI_WO_START_STOP_UNIT			0x1b
#define SCSI_WO_SYNCHRONIZE_CACHE		0x35
#define SCSI_WO_TEST_UNIT_READY			0x00
#define SCSI_WO_VERIFY_10			0x2f
#define SCSI_WO_VERIFY_12			0xaf
#define SCSI_WO_WRITE_6				0x0a
#define SCSI_WO_WRITE_10			0x2a
#define SCSI_WO_WRITE_12			0xaa
#define SCSI_WO_WRITE_AND_VERIFY_10		0x2e
#define SCSI_WO_WRITE_AND_VERIFY_12		0xae
#define SCSI_WO_WRITE_BUFFER			0x3b
#define SCSI_WO_WRITE_LONG			0x3f


/* CD-ROM devices */

#define SCSI_CD_CHANGE_DEFINITION		0x40
#define SCSI_CD_COMPARE				0x39
#define SCSI_CD_COPY				0x18
#define SCSI_CD_COPY_AND_VERIFY			0x3a
#define SCSI_CD_INQUIRY				0x12
#define SCSI_CD_LOCK_UNLOCK_CACHE		0x36
#define SCSI_CD_LOG_SELECT			0x4c
#define SCSI_CD_LOG_SENSE			0x4d
#define SCSI_CD_MODE_SELECT_6			0x15
#define SCSI_CD_MODE_SELECT_10			0x55
#define SCSI_CD_MODE_SENSE_6			0x1a
#define SCSI_CD_MODE_SENSE_10			0x5a
#define SCSI_CD_PAUSE_RESUME			0x4b
#define SCSI_CD_PLAY_AUDIO_10			0x45
#define SCSI_CD_PLAY_AUDIO_12			0xa5
#define SCSI_CD_PLAY_AUDIO_MSF			0x47
#define SCSI_CD_PLAY_AUDIO_TRACK_INDEX		0x48
#define SCSI_CD_PLAY_TRACK_RELATIVE_10		0x49
#define SCSI_CD_PLAY_TRACK_RELATIVE_12		0xa9
#define SCSI_CD_PRE_FETCH			0x34
#define SCSI_CD_PREVENT_ALLOW_MEDIUM_REMOVAL	0x1e
#define SCSI_CD_READ_6				0x08
#define SCSI_CD_READ_10				0x28
#define SCSI_CD_READ_12				0xa8
#define SCSI_CD_READ_BUFFER			0x3c
#define SCSI_CD_READ_CD_ROM_CAPACITY		0x25
#define SCSI_CD_READ_HEADER			0x44
#define SCSI_CD_READ_LONG			0x3e
#define SCSI_CD_READ_SUB_CHANNEL		0x42
#define SCSI_CD_READ_TOC			0x43
#define SCSI_CD_RECEIVE_DIAGNOSTIC_RESULT	0x1c
#define SCSI_CD_RELEASE				0x17
#define SCSI_CD_REQUEST_SENSE			0x03
#define SCSI_CD_RESERVE				0x16
#define SCSI_CD_REZERO_UNIT			0x01
#define SCSI_CD_SEARCH_DATA_EQUAL_10		0x31
#define SCSI_CD_SEARCH_DATA_EQUAL_12		0xb1
#define SCSI_CD_SEARCH_DATA_HIGH_10		0x30
#define SCSI_CD_SEARCH_DATA_HIGH_12		0xb0
#define SCSI_CD_SEARCH_DATA_LOW_10		0x32
#define SCSI_CD_SEARCH_DATA_LOW_12		0xb2
#define SCSI_CD_SEEK_6				0x0b
#define SCSI_CD_SEEK_10				0x2b
#define SCSI_CD_SEND_DIAGNOSTIC			0x1d
#define SCSI_CD_SET_LIMITS_10			0x33
#define SCSI_CD_SET_LIMITS_12			0xb3
#define SCSI_CD_START_STOP_UNIT			0x1b
#define SCSI_CD_SYNCHRONIZE_CACHE		0x35
#define SCSI_CD_TEST_UNIT_READY			0x00
#define SCSI_CD_VERIFY_10			0x2f
#define SCSI_CD_VERIFY_12			0xaf
#define SCSI_CD_WRITE_BUFFER			0x3b


/* Scanner devices */

#define SCSI_SC_CHANGE_DEFINITION		0x40
#define SCSI_SC_COMPARE				0x39
#define SCSI_SC_COPY				0x18
#define SCSI_SC_COPY_AND_VERIFY			0x3a
#define SCSI_SC_GET_DATA_BUFFER_STATUS		0x34
#define SCSI_SC_GET_WINDOW			0x25
#define SCSI_SC_INQUIRY				0x12
#define SCSI_SC_LOG_SELECT			0x4c
#define SCSI_SC_LOG_SENSE			0x4d
#define SCSI_SC_MODE_SELECT_6			0x15
#define SCSI_SC_MODE_SELECT_10			0x55
#define SCSI_SC_MODE_SENSE_6			0x1a
#define SCSI_SC_MODE_SENSE_10			0x5a
#define SCSI_SC_OBJECT_POSITION			0x31
#define SCSI_SC_READ				0x28
#define SCSI_SC_READ_BUFFER			0x3c
#define SCSI_SC_RECEIVE_DIAGNOSTIC_RESULTS	0x1c
#define SCSI_SC_RELEASE_UNIT			0x17
#define SCSI_SC_REQUEST_SENSE			0x03
#define SCSI_SC_RESERVE_UNIT			0x16
#define SCSI_SC_SCAN				0x1b
#define SCSI_SC_SET_WINDOW			0x24
#define SCSI_SC_SEND				0x2a
#define SCSI_SC_SEND_DIAGNOSTIC			0x1d
#define SCSI_SC_TEST_UNIT_READY			0x00
#define SCSI_SC_WRITE_BUFFER			0x3b


/* Optical memory devices */

#define SCSI_OM_CHANGE_DEFINITION		0x40
#define SCSI_OM_COMPARE				0x39
#define SCSI_OM_COPY				0x18
#define SCSI_OM_COPY_AND_VERIFY			0x3a
#define SCSI_OM_ERASE_10			0x2c
#define SCSI_OM_ERASE_12			0xac
#define SCSI_OM_FORMAT_UNIT			0x04
#define SCSI_OM_INQUIRY				0x12
#define SCSI_OM_LOCK_UNLOCK_CACHE		0x36
#define SCSI_OM_LOG_SELECT			0x4c
#define SCSI_OM_LOG_SENSE			0x4d
#define SCSI_OM_MEDIUM_SCAN			0x38
#define SCSI_OM_MODE_SELECT_6			0x15
#define SCSI_OM_MODE_SELECT_10			0x55
#define SCSI_OM_MODE_SENSE_6			0x1a
#define SCSI_OM_MODE_SENSE_10			0x5a
#define SCSI_OM_PRE_FETCH			0x34
#define SCSI_OM_PREVENT_ALLOW_MEDIUM_REMOVAL	0x1e
#define SCSI_OM_READ_6				0x08
#define SCSI_OM_READ_10				0x28
#define SCSI_OM_READ_12				0xa8
#define SCSI_OM_READ_BUFFER			0x3c
#define SCSI_OM_READ_CAPACITY			0x25
#define SCSI_OM_READ_DEFECT_DATA_10		0x37
#define SCSI_OM_READ_DEFECT_DATA_12		0xb7
#define SCSI_OM_READ_GENERATION			0x29
#define SCSI_OM_READ_LONG			0x3e
#define SCSI_OM_READ_UPDATED_BLOCK		0x2d
#define SCSI_OM_REASSIGN_BLOCKS			0x07
#define SCSI_OM_RECEIVE_DIAGNOSTIC_RESULTS	0x1c
#define SCSI_OM_RELEASE				0x17
#define SCSI_OM_REQUEST_SENSE			0x03
#define SCSI_OM_RESERVE				0x16
#define SCSI_OM_REZERO_UNIT			0x01
#define SCSI_OM_SEARCH_DATA_EQUAL_10		0x31
#define SCSI_OM_SEARCH_DATA_EQUAL_12		0xb1
#define SCSI_OM_SEARCH_DATA_HIGH_10		0x30
#define SCSI_OM_SEARCH_DATA_HIGH_12		0xb0
#define SCSI_OM_SEARCH_DATA_LOW_10		0x32
#define SCSI_OM_SEARCH_DATA_LOW_12		0xb2
#define SCSI_OM_SEEK_6				0x0b
#define SCSI_OM_SEEK_10				0x2b
#define SCSI_OM_SEND_DIAGNOSTIC			0x1d
#define SCSI_OM_SET_LIMITS_10			0x33
#define SCSI_OM_SET_LIMITS_12			0xb3
#define SCSI_OM_START_STOP_UNIT			0x1b
#define SCSI_OM_SYNCHRONIZE_CACHE		0x35
#define SCSI_OM_TEST_UNIT_READY			0x00
#define SCSI_OM_UPDATE_BLOCK			0x3d
#define SCSI_OM_VERIFY_10			0x2f
#define SCSI_OM_VERIFY_12			0xaf
#define SCSI_OM_WRITE_6				0x0a
#define SCSI_OM_WRITE_10			0x2a
#define SCSI_OM_WRITE_12			0xaa
#define SCSI_OM_WRITE_AND_VERIFY_10		0x2e
#define SCSI_OM_WRITE_AND_VERIFY_12		0xae
#define SCSI_OM_WRITE_BUFFER			0x3b
#define SCSI_OM_WRITE_LONG			0x3f


/* Medium changer devices */

#define SCSI_MC_CHANGE_DEFINITION		0x40
#define SCSI_MC_EXCHANGE_MEDIUM			0xa6
#define SCSI_MC_INITIALIZE_ELEMENT_STATUS	0x07
#define SCSI_MC_INQUIRY				0x12
#define SCSI_MC_LOG_SELECT			0x4c
#define SCSI_MC_LOG_SENSE			0x4d
#define SCSI_MC_MODE_SELECT_6			0x15
#define SCSI_MC_MODE_SELECT_10			0x55
#define SCSI_MC_MODE_SENSE_6			0x1a
#define SCSI_MC_MODE_SENSE_10			0x5a
#define SCSI_MC_MOVE_MEDIUM			0xa5
#define SCSI_MC_POSITION_TO_ELEMENT		0x2b
#define SCSI_MC_PREVENT_ALLOW_MEDIUM_REMOVAL	0x1e
#define SCSI_MC_READ_BUFFER			0x3c
#define SCSI_MC_READ_ELEMENT_STATUS		0xb8
#define SCSI_MC_RECEIVE_DIAGNOSTIC_RESULTS	0x1c
#define SCSI_MC_RELEASE				0x17
#define SCSI_MC_REQUEST_VOLUME_ELEMENT_ADDRESS	0xb5
#define SCSI_MC_REQUEST_SENSE			0x03
#define SCSI_MC_RESERVE				0x16
#define SCSI_MC_REZERO_UNIT			0x01
#define SCSI_MC_SEND_DIAGNOSTIC			0x1d
#define SCSI_MC_SEND_VOLUME_TAG			0xb6
#define SCSI_MC_TEST_UNIT_READY			0x00
#define SCSI_MC_WRITE_BUFFER			0x3b


/* Communications devices */

#define SCSI_COM_CHANGE_DEFINITION		0x40
#define SCSI_COM_GET_MESSAGE_6			0x08
#define SCSI_COM_GET_MESSAGE_10			0x28
#define SCSI_COM_GET_MESSAGE_12			0xa8
#define SCSI_COM_INQUIRY			0x12
#define SCSI_COM_LOG_SELECT			0x4c
#define SCSI_COM_LOG_SENSE			0x4d
#define SCSI_COM_MODE_SELECT_6			0x15
#define SCSI_COM_MODE_SELECT_10			0x55
#define SCSI_COM_MODE_SENSE_6			0x1a
#define SCSI_COM_MODE_SENSE_10			0x5a
#define SCSI_COM_READ_BUFFER			0x3c
#define SCSI_COM_RECEIVE_DIAGNOSTIC_RESULTS	0x1c
#define SCSI_COM_REQUEST_SENSE			0x03
#define SCSI_COM_SEND_DIAGNOSTIC		0x1d
#define SCSI_COM_SEND_MESSAGE_6			0x0a
#define SCSI_COM_SEND_MESSAGE_10		0x2a
#define SCSI_COM_SEND_MESSAGE_12		0xaa
#define SCSI_COM_TEST_UNIT_READY		0x00
#define SCSI_COM_WRITE_BUFFER			0x3b