312 /* media event code */
313 #define SD_GESN_MEDIA_EVENT_NOCHG 0
314 #define SD_GESN_MEDIA_EVENT_EJECTREQUEST 1
315 #define SD_GESN_MEDIA_EVENT_NEWMEDIA 2
316 #define SD_GESN_MEDIA_EVENT_MEDIAREMOVAL 3
317 #define SD_GESN_MEDIA_EVENT_MEDIACHANGED 4
318 #define SD_GESN_MEDIA_EVENT_BGFORMATCOMPLETED 5
319 #define SD_GESN_MEDIA_EVENT_BGFORMATRESTARTED 6
320
321
322 /*
323 * Group 3 Commands
324 */
325 #define SCMD_VAR_LEN 0x7f
326
327 /*
328 * Group 4 Commands, All Devices
329 */
330 #define SCMD_GROUP4 0x80
331 #define SCMD_EXTENDED_COPY 0x83
332 #define SCMD_VERIFY_G4 0x8f
333
334 /*
335 * Group 4 Commands, Direct Access Devices
336 */
337 #define SCMD_READ_G4 0x88
338 #define SCMD_WRITE_G4 0x8a
339 #define SCMD_WRITE_VERIFY_G4 0x8e
340 #define SCMD_WRITE_SAME_G4 0x93
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 /*
356 * Group 4 Commands, Sequential Access Devics
357 */
358 #define SCMD_WRITE_FILE_MARK_G4 0x80
359 #define SCMD_READ_REVERSE_G4 0x81
360 #define SCMD_READ_ATTRIBUTE 0x8c
361 #define SCMD_WRITE_ATTRIBUTE 0x8d
362 #define SCMD_SPACE_G4 0x91
363 #define SCMD_LOCATE_G4 0x92
364
365 /*
366 * Group 5 commands.
367 */
368 #define SCMD_GROUP5 0xA0
369 #define SCMD_REPORT_LUNS 0xA0
370 #define SCMD_SECURITY_PROTO_IN 0xA2
371 #define SCMD_MAINTENANCE_IN 0xA3
372 #define SCMD_MAINTENANCE_OUT 0xA4
373 #define SCMD_READ_G5 0xA8
374 #define SCMD_WRITE_G5 0xAA
375 #define SCMD_SVC_ACTION_OUT_G5 0xA9
376 #define SCMD_SVC_ACTION_IN_G5 0xAB
377 #define SCMD_GET_PERFORMANCE 0xAC
378 #define SCMD_WRITE_VERIFY_G5 0xAE
379 #define SCMD_VERIFY_G5 0xAF
|
312 /* media event code */
313 #define SD_GESN_MEDIA_EVENT_NOCHG 0
314 #define SD_GESN_MEDIA_EVENT_EJECTREQUEST 1
315 #define SD_GESN_MEDIA_EVENT_NEWMEDIA 2
316 #define SD_GESN_MEDIA_EVENT_MEDIAREMOVAL 3
317 #define SD_GESN_MEDIA_EVENT_MEDIACHANGED 4
318 #define SD_GESN_MEDIA_EVENT_BGFORMATCOMPLETED 5
319 #define SD_GESN_MEDIA_EVENT_BGFORMATRESTARTED 6
320
321
322 /*
323 * Group 3 Commands
324 */
325 #define SCMD_VAR_LEN 0x7f
326
327 /*
328 * Group 4 Commands, All Devices
329 */
330 #define SCMD_GROUP4 0x80
331 #define SCMD_EXTENDED_COPY 0x83
332 #define SCMD_RECV_COPY_RESULTS 0x84
333 #define SCMD_VERIFY_G4 0x8f
334
335 /*
336 * Group 4 Commands, Direct Access Devices
337 */
338 #define SCMD_READ_G4 0x88
339 #define SCMD_WRITE_G4 0x8a
340 #define SCMD_WRITE_VERIFY_G4 0x8e
341 #define SCMD_WRITE_SAME_G4 0x93
342 #define SCMD_SVC_ACTION_IN_G4 0x9e
343 #define SCMD_SVC_ACTION_OUT_G4 0x9f
344
345 /*
346 * Group 4 Service Actions for Service Action In (16)
347 */
348 #define SSVC_ACTION_READ_CAPACITY_G4 0x10
349 #define SSVC_ACTION_READ_LONG_G4 0x11
350
351 /*
352 * Group 4 Service Actions for Service Action Out (16)
353 */
354 #define SSVC_ACTION_WRITE_LONG_G4 0x11
355
356 /*
357 * Group 4 Commands, Sequential Access Devics
358 */
359 #define SCMD_WRITE_FILE_MARK_G4 0x80
360 #define SCMD_READ_REVERSE_G4 0x81
361 #define SCMD_COMPARE_AND_WRITE 0x89
362 #define SCMD_READ_ATTRIBUTE 0x8c
363 #define SCMD_WRITE_ATTRIBUTE 0x8d
364 #define SCMD_SPACE_G4 0x91
365 #define SCMD_LOCATE_G4 0x92
366
367 /*
368 * Group 5 commands.
369 */
370 #define SCMD_GROUP5 0xA0
371 #define SCMD_REPORT_LUNS 0xA0
372 #define SCMD_SECURITY_PROTO_IN 0xA2
373 #define SCMD_MAINTENANCE_IN 0xA3
374 #define SCMD_MAINTENANCE_OUT 0xA4
375 #define SCMD_READ_G5 0xA8
376 #define SCMD_WRITE_G5 0xAA
377 #define SCMD_SVC_ACTION_OUT_G5 0xA9
378 #define SCMD_SVC_ACTION_IN_G5 0xAB
379 #define SCMD_GET_PERFORMANCE 0xAC
380 #define SCMD_WRITE_VERIFY_G5 0xAE
381 #define SCMD_VERIFY_G5 0xAF
|