Changeset 15d0046 in mainline for uspace/lib/scsi/include/scsi/sbc.h


Ignore:
Timestamp:
2014-09-12T13:22:33Z (10 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9b20126
Parents:
8db09e4 (diff), 105d8d6 (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 mainline changes

File:
1 edited

Legend:

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

    r8db09e4 r15d0046  
    5050        SCSI_CMD_READ_CAPACITY_16       = 0x9e,
    5151
     52        SCSI_CMD_SYNC_CACHE_10          = 0x35,
     53        SCSI_CMD_SYNC_CACHE_16          = 0x91,
     54
    5255        SCSI_CMD_WRITE_6                = 0x0a,
    5356        SCSI_CMD_WRITE_10               = 0x2a,
     
    131134} scsi_read_capacity_10_data_t;
    132135
     136/** SCSI Synchronize Cache (10) command */
     137typedef struct {
     138        /** Operation code (SCSI_CMD_SYNC_CACHE_10) */
     139        uint8_t op_code;
     140        /** Reserved, Sync_NV, Immed, Reserved */
     141        uint8_t flags;
     142        /** Logical block address */
     143        uint32_t lba;
     144        /** Reserved, Group Number */
     145        uint8_t group_no;
     146        /** Number of Logical Blocks */
     147        uint16_t numlb;
     148        /** Control */
     149        uint8_t control;
     150} __attribute__((packed)) scsi_cdb_sync_cache_10_t;
     151
     152/** SCSI Synchronize Cache (16) command */
     153typedef struct {
     154        /** Operation code (SCSI_CMD_SYNC_CACHE_16) */
     155        uint8_t op_code;
     156        /** Reserved, Sync_NV, Immed, Reserved */
     157        uint8_t flags;
     158        /** Logical block address */
     159        uint64_t lba;
     160        /** Number of Logical Blocks */
     161        uint32_t numlb;
     162        /** Reserved, Group Number */
     163        uint8_t group_no;
     164        /** Control */
     165        uint8_t control;
     166} __attribute__((packed)) scsi_cdb_sync_cache_16_t;
     167
    133168/** SCSI Write (10) command */
    134169typedef struct {
Note: See TracChangeset for help on using the changeset viewer.