diskcmd.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. enum { /* SCSI command codes */
  2. ScmdTur = 0x00, /* test unit ready */
  3. ScmdRewind = 0x01, /* rezero/rewind */
  4. ScmdRsense = 0x03, /* request sense */
  5. ScmdFormat = 0x04, /* format unit */
  6. ScmdRblimits = 0x05, /* read block limits */
  7. ScmdRead = 0x08, /* read */
  8. ScmdWrite = 0x0A, /* write */
  9. ScmdSeek = 0x0B, /* seek */
  10. ScmdFmark = 0x10, /* write filemarks */
  11. ScmdSpace = 0x11, /* space forward/backward */
  12. ScmdInq = 0x12, /* inquiry */
  13. ScmdMselect6 = 0x15, /* mode select */
  14. ScmdMselect10 = 0x55, /* mode select */
  15. ScmdMsense6 = 0x1A, /* mode sense */
  16. ScmdMsense10 = 0x5A, /* mode sense */
  17. ScmdStart = 0x1B, /* start/stop unit */
  18. ScmdRcapacity = 0x25, /* read capacity */
  19. ScmdRcapacity16 = 0x9e, /* long read capacity */
  20. ScmdRformatcap = 0x23, /* read format capacity */
  21. ScmdExtread = 0x28, /* extended read (10 bytes) */
  22. ScmdRead16 = 0x88, /* long read (16 bytes) */
  23. ScmdExtwrite = 0x2A, /* extended write (10 bytes) */
  24. ScmdExtwritever = 0x2E, /* extended write and verify (10) */
  25. ScmdWrite16 = 0x8A, /* long write (16 bytes) */
  26. ScmdExtseek = 0x2B, /* extended seek */
  27. ScmdSynccache = 0x35, /* flush cache */
  28. ScmdSynccache16 = 0x91, /* flush cache (16) */
  29. ScmdRTOC = 0x43, /* read TOC data */
  30. ScmdRdiscinfo = 0x51, /* read disc information */
  31. ScmdRtrackinfo = 0x52, /* read track information */
  32. ScmdReserve = 0x53, /* reserve track */
  33. ScmdBlank = 0xA1, /* blank *-RW media */
  34. ScmdCDpause = 0x4B, /* pause/resume */
  35. ScmdCDstop = 0x4E, /* stop play/scan */
  36. ScmdCDplay = 0xA5, /* play audio */
  37. ScmdCDload = 0xA6, /* load/unload */
  38. ScmdCDscan = 0xBA, /* fast forward/reverse */
  39. ScmdCDstatus = 0xBD, /* mechanism status */
  40. Scmdgetconf = 0x46, /* get configuration */
  41. ScmdEInitialise = 0x07, /* initialise element status */
  42. ScmdMMove = 0xA5, /* move medium */
  43. ScmdEStatus = 0xB8, /* read element status */
  44. ScmdMExchange = 0xA6, /* exchange medium */
  45. ScmdEposition = 0x2B, /* position to element */
  46. ScmdReadDVD = 0xAD, /* read dvd structure */
  47. ScmdReportKey = 0xA4, /* read dvd key */
  48. ScmdSendKey = 0xA3, /* write dvd key */
  49. ScmdClosetracksess= 0x5B,
  50. ScmdRead12 = 0xA8,
  51. ScmdSetcdspeed = 0xBB,
  52. ScmdReadcd = 0xBE,
  53. /* vendor-specific */
  54. ScmdFwaddr = 0xE2, /* first writeable address */
  55. ScmdTreserve = 0xE4, /* reserve track */
  56. ScmdTinfo = 0xE5, /* read track info */
  57. ScmdTwrite = 0xE6, /* write track */
  58. ScmdMload = 0xE7, /* medium load/unload */
  59. ScmdFixation = 0xE9, /* fixation */
  60. };