# include/scsi/sbc_protocol.h File Reference

SCSI Block Commands. More...

This graph shows which files directly or indirectly include this file:

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

## Detailed Description

SCSI Block Commands.

This file contains definitions of some of the commands found in the SCSI SBC-2 standard.

- Compiler: IAR EWAVR32 and GNU GCC for AVR32
- Supported devices: All devices
- AppNote:

Author:
  Atmel Corporation: http://www.atmel.com
  Support and FAQ: http://support.atmel.no/

Definition in file sbc_protocol.h.

## Define Documentation

#define SBC_MP_CACHE_ABPF (1 << 6)

Abort Pre-Fetch.

Definition at line 89 of file sbc_protocol.h.

#define SBC_MP_CACHE_CAP (1 << 5)

Caching Analysis Permitted.

Definition at line 90 of file sbc_protocol.h.

#define SBC_MP_CACHE_DISC (1 << 4)

Discontinuity.

Definition at line 91 of file sbc_protocol.h.

#define SBC_MP_CACHE_DRA (1 << 5)

Disable Read-Ahead.

Definition at line 104 of file sbc_protocol.h.

#define SBC_MP_CACHE_FSW (1 << 7)

Force Sequential Write.

Definition at line 102 of file sbc_protocol.h.

#define SBC_MP_CACHE_IC (1 << 7)

Initiator Control.

Definition at line 88 of file sbc_protocol.h.

#define SBC_MP_CACHE_LBCSS (1 << 6)

Logical Blk Cache Seg Sz.

Definition at line 103 of file sbc_protocol.h.

#define SBC_MP_CACHE_MF (1 << 1)

Multiplication Factor.

Definition at line 94 of file sbc_protocol.h.

#define SBC_MP_CACHE_NV_DIS (1 << 0)

Non-Volatile Cache Disable.

Definition at line 105 of file sbc_protocol.h.

#define SBC_MP_CACHE_RCD (1 << 0)

Read Cache Disable.

Definition at line 95 of file sbc_protocol.h.

#define SBC_MP_CACHE_SIZE (1 << 3)

Size enable.

Definition at line 92 of file sbc_protocol.h.

#define SBC_MP_CACHE_WCE (1 << 2)

Writeback Cache Enable.

Definition at line 93 of file sbc_protocol.h.

#define SBC_SLBA_BLOCK_LEN_MASK 0x00ffffffU

Mask reserved bits.

Definition at line 78 of file sbc_protocol.h.

#define SCSI_MS_SBC_DPOFUA 0x10

DPO and FUA supported.

Definition at line 69 of file sbc_protocol.h.

#define SCSI_MS_SBC_WP 0x80

Write Protected.

Definition at line 68 of file sbc_protocol.h.