Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/scsi/include/scsi/spc.h

    r35b8bfe rce25903  
    4242/** SCSI command codes defined in SCSI-SPC */
    4343enum scsi_cmd_spc {
    44         SCSI_CMD_INQUIRY        = 0x12,
    45         SCSI_CMD_REQUEST_SENSE  = 0x03
     44        SCSI_CMD_TEST_UNIT_READY = 0x00,
     45        SCSI_CMD_REQUEST_SENSE   = 0x03,
     46        SCSI_CMD_INQUIRY         = 0x12,
    4647};
    4748
     
    220221extern const char *scsi_get_sense_key_str(unsigned);
    221222
     223/** SCSI Test Unit Ready command */
     224typedef struct {
     225        /** Operation code (SCSI_CMD_TEST_UNIT_READY) */
     226        uint8_t op_code;
     227        /** Reserved */
     228        uint32_t reserved;
     229        /* Control */
     230        uint8_t control;
     231} __attribute__((packed)) scsi_cdb_test_unit_ready_t;
     232
    222233#endif
    223234
Note: See TracChangeset for help on using the changeset viewer.