Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset ce25903 in mainline for uspace/lib/scsi/include/scsi/spc.h


Ignore:
Timestamp:
2015-07-03T20:02:58Z (7 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial
Children:
34c9cfc
Parents:
8fc61c8
Message:

ubsmast: Add Test Unit Ready command

Fixes my two flash drive

File:
1 edited

Legend:

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

    r8fc61c8 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.