Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
SCSI Block Commands protocol definitions

Data Structures

struct  sbc_caching_mode_page
 SBC-2 Caching mode page. More...
 
struct  sbc_rdwr_error_recovery_mode_page
 SBC-2 Read-Write Error Recovery mode page. More...
 
struct  sbc_slba_block_desc
 SBC-2 Short LBA mode parameter block descriptor. More...
 

SCSI commands defined by SBC-2

#define SBC_FORMAT_UNIT   0x04
 
#define SBC_READ6   0x08
 
#define SBC_WRITE6   0x0A
 
#define SBC_START_STOP_UNIT   0x1B
 
#define SBC_READ_CAPACITY10   0x25
 
#define SBC_READ10   0x28
 
#define SBC_WRITE10   0x2A
 
#define SBC_VERIFY10   0x2F
 

SBC-2 Mode page definitions

enum  scsi_sbc_mode {
  SCSI_MS_MODE_RW_ERR_RECOV = 0x01,
  SCSI_MS_MODE_FORMAT_DEVICE = 0x03,
  SCSI_MS_MODE_FLEXIBLE_DISK = 0x05,
  SCSI_MS_MODE_CACHING = 0x08
}
 

SBC-2 Device-Specific Parameter

#define SCSI_MS_SBC_WP   0x80
 Write Protected. More...
 
#define SCSI_MS_SBC_DPOFUA   0x10
 DPO and FUA supported. More...
 

#define SBC_FORMAT_UNIT   0x04
#define SBC_READ10   0x28

Referenced by uhi_msc_scsi_read_10().

#define SBC_READ6   0x08
#define SBC_READ_CAPACITY10   0x25
#define SBC_START_STOP_UNIT   0x1B
#define SBC_VERIFY10   0x2F
#define SBC_WRITE10   0x2A

Referenced by uhi_msc_scsi_write_10().

#define SBC_WRITE6   0x0A
#define SCSI_MS_SBC_DPOFUA   0x10

DPO and FUA supported.

#define SCSI_MS_SBC_WP   0x80

Write Protected.

Referenced by uhi_msc_scsi_mode_sense6_done().

Enumerator
SCSI_MS_MODE_RW_ERR_RECOV 

Read-Write Error Recovery mode page.

SCSI_MS_MODE_FORMAT_DEVICE 

Format Device mode page.

SCSI_MS_MODE_FLEXIBLE_DISK 

Flexible Disk mode page.

SCSI_MS_MODE_CACHING 

Caching mode page.