Data Structures | |
struct | scsi_inquiry_data |
SCSI Standard Inquiry data structure. More... | |
struct | scsi_mode_page_0_header |
SCSI Page_0 Mode Page header (SPF not set) More... | |
struct | scsi_mode_param_header10 |
SCSI Mode Parameter Header used by MODE SELECT(10) and MODE SENSE(10) More... | |
struct | scsi_mode_param_header6 |
SCSI Mode Parameter Header used by MODE SELECT(6) and MODE SENSE(6) More... | |
struct | scsi_request_sense_data |
SCSI Standard Request sense data structure. More... | |
struct | spc_control_page_info_execpt |
SPC-2 Informational exceptions control page See chapter 8.3.8. More... | |
Macros | |
#define | SCSI_VPD_CODE_SET_ASCII 2 |
#define | SCSI_VPD_CODE_SET_BINARY 1 |
#define | SCSI_VPD_CODE_SET_UTF8 3 |
#define | SCSI_VPD_HEADER_SIZE 4 |
#define | SCSI_VPD_ID_HEADER_SIZE 4 |
#define | SCSI_VPD_ID_TYPE_T10 1 |
Functions | |
static bool | scsi_mode_sense_dbd_is_set (const uint8_t *cdb) |
static uint8_t | scsi_mode_sense_get_page_code (const uint8_t *cdb) |
static uint8_t | scsi_mode_sense_get_pc (const uint8_t *cdb) |
SCSI commands defined by SPC-2 | |
#define | SPC_TEST_UNIT_READY 0x00 |
#define | SPC_REQUEST_SENSE 0x03 |
#define | SPC_INQUIRY 0x12 |
#define | SPC_MODE_SELECT6 0x15 |
#define | SPC_MODE_SENSE6 0x1A |
#define | SPC_SEND_DIAGNOSTIC 0x1D |
#define | SPC_PREVENT_ALLOW_MEDIUM_REMOVAL 0x1E |
#define | SPC_MODE_SENSE10 0x5A |
#define | SPC_REPORT_LUNS 0xA0 |
#define | SCSI_INQ_REQ_EVPD 0x01 |
May be set in byte 0 of the INQUIRY CDB. More... | |
#define | SCSI_INQ_REQ_CMDT 0x02 |
Command Support Data specified by the PAGE OR OPERATION CODE field. More... | |
#define SCSI_INQ_REQ_CMDT 0x02 |
Command Support Data specified by the PAGE OR OPERATION CODE field.
Referenced by udi_msc_spc_inquiry().
#define SCSI_INQ_REQ_EVPD 0x01 |
May be set in byte 0 of the INQUIRY CDB.
Enable Vital Product Data
Referenced by udi_msc_spc_inquiry().
#define SCSI_VPD_CODE_SET_ASCII 2 |
#define SCSI_VPD_CODE_SET_BINARY 1 |
#define SCSI_VPD_CODE_SET_UTF8 3 |
#define SCSI_VPD_HEADER_SIZE 4 |
#define SCSI_VPD_ID_HEADER_SIZE 4 |
#define SCSI_VPD_ID_TYPE_T10 1 |
#define SPC_INQUIRY 0x12 |
Referenced by udi_msc_cbw_received().
#define SPC_MODE_SELECT6 0x15 |
#define SPC_MODE_SENSE10 0x5A |
Referenced by udi_msc_cbw_received().
#define SPC_MODE_SENSE6 0x1A |
Referenced by udi_msc_cbw_received().
#define SPC_PREVENT_ALLOW_MEDIUM_REMOVAL 0x1E |
Referenced by udi_msc_cbw_received().
#define SPC_REPORT_LUNS 0xA0 |
#define SPC_REQUEST_SENSE 0x03 |
Referenced by udi_msc_cbw_received().
#define SPC_SEND_DIAGNOSTIC 0x1D |
#define SPC_TEST_UNIT_READY 0x00 |
Referenced by udi_msc_cbw_received().
enum scsi_asc_ascq |
enum scsi_sense_key |
enum scsi_spc_mode |
enum scsi_vpd_page_code |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |