scsi_cmds.h 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. #ifndef __SCSI_CMDS_H__
  2. #define __SCSI_CMDS_H__
  3. // defines for SCSI commands
  4. #define SCSI_TEST_UNIT_READY 0
  5. #define SCSI_REZERO_UNIT 0x1
  6. #define SCSI_REQUEST_SENSE 0x3
  7. #define SCSI_FORMAT_UNIT4 0x4
  8. #define SCSI_FORMAT_UNIT6 0x6
  9. #define SCSI_REASSIGN_BLOCKS 0x7
  10. #define SCSI_READ6 0x8
  11. #define SCSI_WRITE6 0xA
  12. #define SCSI_SEEK6 0xB
  13. #define SCSI_INQUIRY 0x12
  14. #define SCSI_MODE_SELECT6 0x15
  15. #define SCSI_RESERVE 0x16
  16. #define SCSI_RELEASE 0x17
  17. #define SCSI_COPY 0x18
  18. #define SCSI_MODE_SENSE6 0x1A
  19. #define SCSI_START_STOP_UNIT 0x1B
  20. #define SCSI_RECV_DIAG_RESULTS 0x1C
  21. #define SCSI_SEND_DIAG 0x1D
  22. #define SCSI_PREVENT_ALLOW_REMOVAL 0x1E
  23. #define SCSI_ICD_EXTENDED_CMD 0x1F
  24. #define SCSI_READ_CAPACITY 0x25
  25. #define SCSI_READ10 0x28
  26. #define SCSI_WRITE10 0x2A
  27. #define SCSI_SEEK10 0x2B
  28. #define SCSI_WRITE_AND_VERIFY 0x2E
  29. #define SCSI_VERIFY10 0x2F
  30. #define SCSI_SEARCH_DATA_HIGH 0x30
  31. #define SCSI_SEARCH_DATA_EQUAL 0x31
  32. #define SCSI_SEARCH_DATA_LOW 0x32
  33. #define SCSI_SET_LIMITS 0x33
  34. #define SCSI_PREFETCH 0x34
  35. #define SCSI_SYNCHRONIZE_CACHE 0x35
  36. #define SCSI_LOCK_UNLOCK_CACHE 0x36
  37. #define SCSI_READ_DEFECT_DATA 0x37
  38. #define SCSI_COMPARE 0x39
  39. #define SCSI_COPY_AND_VERIFY 0x3A
  40. #define SCSI_WRITE_BUFFER 0x3B
  41. #define SCSI_READ_BUFFER 0x3C
  42. #define SCSI_READ_LONG 0x3E
  43. #define SCSI_WRITE_LONG 0x3F
  44. #define SCSI_CHANGE_DEFINITION 0x40
  45. #define SCSI_WRITE_SAME 0x41
  46. #define SCSI_LOG_SELECT 0x4C
  47. #define SCSI_LOG_SENSE 0x4D
  48. #define SCSI_MODE_SELECT10 0x55
  49. #define SCSI_MODE_SENSE10 0x5A
  50. #define SCSI_READ12 0xA8
  51. #define SCSI_VERIFY12 0xAF
  52. #define SCSI_TOC_LENGTH 20 // length for default CDROM TOC
  53. // SCSI CDROM commands
  54. #define SCSI_AUDIO_SCAN1 0xBA
  55. #define SCSI_AUDIO_SCAN2 0xCD
  56. #define SCSI_PAUSE_RESUME 0x4B
  57. #define SCSI_PLAY_AUDIO10 0x45
  58. #define SCSI_PLAY_AUDIO12 0xA5
  59. #define SCSI_PLAY_AUDIO_MSF 0x47
  60. #define SCSI_PLAY_AUDIO_TRACK_IDX 0x48
  61. #define SCSI_PLAY_TRACK_RELATIVE10 0x49
  62. #define SCSI_PLAY_TRACK_RELATIVE12 0xA9
  63. #define SCSI_READ_CD 0xBE
  64. #define SCSI_READ_CD_DD 0xD8
  65. #define SCSI_READ_CD_MSF 0xB9
  66. #define SCSI_READ_CDDA_MSF 0xD9
  67. #define SCSI_READ_CDXA 0xDB
  68. #define SCSI_READ_ALL_SUBCODE 0xDF
  69. #define SCSI_READ_HEADER 0x44
  70. #define SCSI_READ_SUBCHANNEL 0x42
  71. #define SCSI_READ_TOC 0x43
  72. #define SCSI_READ_DISC_INFORMATION 0x51
  73. #define SCSI_READ_DVD_STRUCTURE 0xAD
  74. #define SCSI_SET_CDROM_SPEED1 0xBB
  75. #define SCSI_SET_CDROM_SPEED2 0xDA
  76. #define SCSI_STOP_PLAY_SCAN 0x4E
  77. #define SCSI_READ_CDP 0xE4
  78. #define SCSI_READ_DRIVE_STATUS 0xE0
  79. #define SCSI_WRITE_CDP 0xE3
  80. #endif // __SCSI_CMDS_H__