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


Ignore:
Timestamp:
2014-08-27T23:56:16Z (10 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
95fe55ca
Parents:
f27f3fd
Message:

Add synchronize cache operation to block layer and usbmast.

File:
1 edited

Legend:

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

    rf27f3fd rdd8b6a8  
    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.