SCSI Block Commands. More...
Go to the source code of this file.
Data Structures | |
| struct | sbc_slba_block_desc |
| SBC-2 Short LBA mode parameter block descriptor. More... | |
| struct | sbc_caching_mode_page |
| SBC-2 Caching mode page. More... | |
| struct | sbc_read_capacity10_data |
| SBC-2 READ CAPACITY (10) parameter data. More... | |
Defines | |
| #define | SBC_SLBA_BLOCK_LEN_MASK 0x00ffffffU |
| Mask reserved bits. | |
| #define | SBC_MP_CACHE_IC (1 << 7) |
| Initiator Control. | |
| #define | SBC_MP_CACHE_ABPF (1 << 6) |
| Abort Pre-Fetch. | |
| #define | SBC_MP_CACHE_CAP (1 << 5) |
| Caching Analysis Permitted. | |
| #define | SBC_MP_CACHE_DISC (1 << 4) |
| Discontinuity. | |
| #define | SBC_MP_CACHE_SIZE (1 << 3) |
| Size enable. | |
| #define | SBC_MP_CACHE_WCE (1 << 2) |
| Writeback Cache Enable. | |
| #define | SBC_MP_CACHE_MF (1 << 1) |
| Multiplication Factor. | |
| #define | SBC_MP_CACHE_RCD (1 << 0) |
| Read Cache Disable. | |
| #define | SBC_MP_CACHE_FSW (1 << 7) |
| Force Sequential Write. | |
| #define | SBC_MP_CACHE_LBCSS (1 << 6) |
| Logical Blk Cache Seg Sz. | |
| #define | SBC_MP_CACHE_DRA (1 << 5) |
| Disable Read-Ahead. | |
| #define | SBC_MP_CACHE_NV_DIS (1 << 0) |
| Non-Volatile Cache Disable. | |
SCSI commands defined by SBC-2 | |
| #define | SCSI_CMD_FORMAT_UNIT 0x04 |
| #define | SCSI_CMD_READ6 0x08 |
| #define | SCSI_CMD_WRITE6 0x0a |
| #define | SCSI_CMD_START_STOP_UNIT 0x1b |
| #define | SCSI_CMD_READ_CAPACITY10 0x25 |
| #define | SCSI_CMD_READ10 0x28 |
| #define | SCSI_CMD_WRITE10 0x2a |
| #define | SCSI_CMD_VERIFY10 0x2f |
SBC-2 Device-Specific Parameter | |
| #define | SCSI_MS_SBC_WP 0x80 |
| Write Protected. | |
| #define | SCSI_MS_SBC_DPOFUA 0x10 |
| DPO and FUA supported. | |
Enumerations | |
SBC-2 Mode page definitions | |
| enum | scsi_sbc_mode_page_code |
SCSI Block Commands.
This file contains definitions of some of the commands found in the SCSI SBC-2 standard.
Note that the SBC specification depends on several commands defined by the SCSI Primary Commands (SPC) standard. Each version of the SBC standard is meant to be used in conjunction with a specific version of the SPC standard, as follows:
Copyright (C) 2009 Atmel Corporation. All rights reserved.
Definition in file sbc_protocol.h.
| #define SBC_MP_CACHE_ABPF (1 << 6) |
Abort Pre-Fetch.
Definition at line 94 of file sbc_protocol.h.
| #define SBC_MP_CACHE_CAP (1 << 5) |
Caching Analysis Permitted.
Definition at line 95 of file sbc_protocol.h.
| #define SBC_MP_CACHE_DISC (1 << 4) |
Discontinuity.
Definition at line 96 of file sbc_protocol.h.
| #define SBC_MP_CACHE_DRA (1 << 5) |
Disable Read-Ahead.
Definition at line 109 of file sbc_protocol.h.
| #define SBC_MP_CACHE_FSW (1 << 7) |
Force Sequential Write.
Definition at line 107 of file sbc_protocol.h.
| #define SBC_MP_CACHE_IC (1 << 7) |
Initiator Control.
Definition at line 93 of file sbc_protocol.h.
| #define SBC_MP_CACHE_LBCSS (1 << 6) |
Logical Blk Cache Seg Sz.
Definition at line 108 of file sbc_protocol.h.
| #define SBC_MP_CACHE_MF (1 << 1) |
Multiplication Factor.
Definition at line 99 of file sbc_protocol.h.
| #define SBC_MP_CACHE_NV_DIS (1 << 0) |
Non-Volatile Cache Disable.
Definition at line 110 of file sbc_protocol.h.
| #define SBC_MP_CACHE_RCD (1 << 0) |
Read Cache Disable.
Definition at line 100 of file sbc_protocol.h.
| #define SBC_MP_CACHE_SIZE (1 << 3) |
Size enable.
Definition at line 97 of file sbc_protocol.h.
| #define SBC_MP_CACHE_WCE (1 << 2) |
Writeback Cache Enable.
Definition at line 98 of file sbc_protocol.h.
| #define SBC_SLBA_BLOCK_LEN_MASK 0x00ffffffU |
Mask reserved bits.
Definition at line 83 of file sbc_protocol.h.
| #define SCSI_MS_SBC_DPOFUA 0x10 |
DPO and FUA supported.
Definition at line 74 of file sbc_protocol.h.
| #define SCSI_MS_SBC_WP 0x80 |
Write Protected.
Definition at line 73 of file sbc_protocol.h.
1.6.3