scsi_cmds.h 3.3 KB

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