home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Special 6 / Sonderheft_6-96.iso / pd / disktools / scsi_list / source / scsi_cmd.h < prev    next >
C/C++ Source or Header  |  1996-11-03  |  3KB  |  81 lines

  1. /*
  2.  *    scsi_cmd.h
  3.  */
  4.  
  5. #include <devices/scsidisk.h> 
  6. #define SCSI_DEVICE "scsi.device"
  7.  
  8. /*------------------------------------------------------------------------*/
  9.  
  10. typedef struct
  11. {
  12.     BYTE    code;
  13.     UBYTE   *ptr;
  14. }   IDTOSTRING;
  15.  
  16.       
  17. static IDTOSTRING responseformat[] =
  18. {
  19.     0x00, "SCSI-1",
  20.     0x01, "CCS",
  21.     0x02, "SCSI-2",
  22.     -1, "",
  23. };
  24.  
  25. /*------------------------------------------------------------------------*/
  26.  
  27. /*  type used for 6 byte SCSI command                                     */
  28.  
  29. typedef struct
  30. {
  31.     UBYTE   opcode;
  32.     UBYTE   b1;
  33.     UBYTE   b2;
  34.     UBYTE   b3;
  35.     UBYTE   b4;
  36.     UBYTE   control;
  37. }   SCSICMD6;
  38.  
  39. /*------------------------------------------------------------------------*/
  40.  
  41. /* SCSI commands */
  42.  
  43. #define    SCSI_CMD_TUR            0x00    /* Test Unit Ready              */
  44. #define    SCSI_CMD_RZU            0x01    /* Rezero Unit                  */
  45. #define    SCSI_CMD_RQS            0x03    /* Request Sense              */
  46. #define    SCSI_CMD_FMU            0x04    /* Format unit                  */
  47. #define    SCSI_CMD_RAB            0x07    /* Reassign Block              */
  48. #define    SCSI_CMD_RD                0x08    /* Read                          */
  49. #define    SCSI_CMD_WR                0x0A    /* Write                      */
  50. #define    SCSI_CMD_SK                0x0B    /* Seek                          */
  51. #define    SCSI_CMD_INQ            0x12    /*  6B: Inquiry                  */
  52. #define    SCSI_CMD_MSL            0x15    /* Mode Select                  */
  53. #define    SCSI_CMD_RU                0x16    /* Reserve Unit                  */
  54. #define    SCSI_CMD_RLU            0x17    /* Release Unit                  */
  55. #define    SCSI_CMD_MSE            0x1A    /*  6B: Mode Sense              */
  56. #define    SCSI_CMD_SSU            0x1B    /*  6B: Start/Stop Unit          */
  57. #define    SCSI_CMD_RDI            0x1C    /* Receive Diagnostic          */
  58. #define    SCSI_CMD_SDI            0x1D    /* Send Diagnostic              */
  59. #define    SCSI_CMD_RCP            0x25    /* Read Capacity              */
  60. #define    SCSI_CMD_RXT            0x28    /* Read Extended              */
  61. #define    SCSI_CMD_WXT            0x2A    /* Write Extended              */
  62. #define    SCSI_CMD_SKX            0x2B    /* Seek Extended              */
  63. #define    SCSI_CMD_WVF            0x2E    /* Write & Verify              */
  64. #define    SCSI_CMD_VF                0x2F    /* Verify                      */
  65. #define    SCSI_CMD_RDD            0x37    /* Read Defect Data              */
  66. #define    SCSI_CMD_WDB            0x3B    /* Write Data Buffer          */
  67. #define    SCSI_CMD_RDB            0x3C    /* Read Data Buffer              */
  68. #define SCSI_CMD_COPY            0x18    /*  6B: Copy                  */
  69. #define SCSI_CMD_COMPARE        0x39    /* 10B: Compare               */
  70. #define SCSI_CMD_COPYANDVERIFY    0x3A    /* 10B: Copy and Verify       */
  71. #define SCSI_CMD_CHGEDEF        0x40    /* 10B: Change Definition     */
  72. #define SCSI_CMD_READSUBCHANNEL    0x42    /* 10B: Read Sub-Channel      */
  73. #define SCSI_CMD_READTOC        0x43    /* Read TOC from CD Audio     */
  74. #define SCSI_CMD_READHEADER        0x44    /* 10B: Read data block address header */
  75. #define SCSI_CMD_PLAYAUDIO10    0x45    /* Play CD Audio              */
  76. #define SCSI_CMD_PLAYAUDIOTRACKINDEX    0x48    /* Play CD Audio Track */
  77.  
  78. /* Sony CDU 561 / Sony CDU 8003 = Apple CD 300 specific commands      */
  79. #define SCSI_CMD_READCDDA        0xD8    /* 12B: read digital audio    */
  80. #define SCSI_CMD_READCDDAMSF    0xD9    /* 12B: read digital audio    */
  81.