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 28 ScmdSynccache = 0x35, /* flush cache */ 29 ScmdSynccache16 = 0x91, /* flush cache (16) */ 30 ScmdRTOC = 0x43, /* read TOC data */ 31 ScmdRdiscinfo = 0x51, /* read disc information */ 32 ScmdRtrackinfo = 0x52, /* read track information */ 33 ScmdReserve = 0x53, /* reserve track */ 34 ScmdBlank = 0xA1, /* blank *-RW media */ 35 36 ScmdCDpause = 0x4B, /* pause/resume */ 37 ScmdCDstop = 0x4E, /* stop play/scan */ 38 ScmdCDplay = 0xA5, /* play audio */ 39 ScmdCDload = 0xA6, /* load/unload */ 40 ScmdCDscan = 0xBA, /* fast forward/reverse */ 41 ScmdCDstatus = 0xBD, /* mechanism status */ 42 Scmdgetconf = 0x46, /* get configuration */ 43 44 ScmdEInitialise = 0x07, /* initialise element status */ 45 ScmdMMove = 0xA5, /* move medium */ 46 ScmdEStatus = 0xB8, /* read element status */ 47 ScmdMExchange = 0xA6, /* exchange medium */ 48 ScmdEposition = 0x2B, /* position to element */ 49 50 ScmdReadDVD = 0xAD, /* read dvd structure */ 51 ScmdReportKey = 0xA4, /* read dvd key */ 52 ScmdSendKey = 0xA3, /* write dvd key */ 53 54 ScmdClosetracksess= 0x5B, 55 ScmdRead12 = 0xA8, 56 ScmdSetcdspeed = 0xBB, 57 ScmdReadcd = 0xBE, 58 59 /* vendor-specific */ 60 ScmdFwaddr = 0xE2, /* first writeable address */ 61 ScmdTreserve = 0xE4, /* reserve track */ 62 ScmdTinfo = 0xE5, /* read track info */ 63 ScmdTwrite = 0xE6, /* write track */ 64 ScmdMload = 0xE7, /* medium load/unload */ 65 ScmdFixation = 0xE9, /* fixation */ 66 }; 67