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


Ignore:
Timestamp:
2016-07-22T08:24:47Z (8 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f76d2c2
Parents:
5b18137 (diff), 8351f9a4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge from lp:~jan.vesely/helenos/usb

File:
1 edited

Legend:

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

    r5b18137 rb4b534ac  
    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.