Modules | |
SCSI Block Commands protocol definitions | |
SCSI Primary Commands protocol definitions | |
Data Structures | |
struct | usb_msc_cbw |
struct | usb_msc_csw |
Enumerations | |
enum | usb_reqid_msc { USB_REQ_MSC_BULK_RESET = 0xFF, USB_REQ_MSC_GET_MAX_LUN = 0xFE } |
MSC USB requests (bRequest) More... | |
Possible Class value | |
#define | MSC_CLASS 0x08 |
Possible SubClass value | |
| |
#define | MSC_SUBCLASS_RBC 0x01 |
Reduced Block Commands. More... | |
#define | MSC_SUBCLASS_ATAPI 0x02 |
CD/DVD devices. More... | |
#define | MSC_SUBCLASS_QIC_157 0x03 |
Tape devices. More... | |
#define | MSC_SUBCLASS_UFI 0x04 |
Floppy disk drives. More... | |
#define | MSC_SUBCLASS_SFF_8070I 0x05 |
Floppy disk drives. More... | |
#define | MSC_SUBCLASS_TRANSPARENT 0x06 |
Determined by INQUIRY. More... | |
Possible protocol value | |
| |
#define | MSC_PROTOCOL_CBI 0x00 |
Command/Bulk/Interrupt. More... | |
#define | MSC_PROTOCOL_CBI_ALT 0x01 |
W/o command completion. More... | |
#define | MSC_PROTOCOL_BULK 0x50 |
Bulk-only. More... | |
A Command Block Wrapper (CBW). | |
#define | USB_CBW_SIGNATURE 0x55534243 |
dCBWSignature value More... | |
#define | USB_CBW_DIRECTION_IN (1<<7) |
Data from device to host. More... | |
#define | USB_CBW_DIRECTION_OUT (0<<7) |
Data from host to device. More... | |
#define | USB_CBW_LUN_MASK 0x0F |
Valid bits in bCBWLUN. More... | |
#define | USB_CBW_LEN_MASK 0x1F |
Valid bits in bCBWCBLength. More... | |
A Command Status Wrapper (CSW). | |
#define | USB_CSW_SIGNATURE 0x55534253 |
dCSWSignature value More... | |
#define | USB_CSW_STATUS_PASS 0x00 |
Command Passed. More... | |
#define | USB_CSW_STATUS_FAIL 0x01 |
Command Failed. More... | |
#define | USB_CSW_STATUS_PE 0x02 |
Phase Error. More... | |
#define MSC_CLASS 0x08 |
#define MSC_PROTOCOL_BULK 0x50 |
Bulk-only.
#define MSC_PROTOCOL_CBI 0x00 |
Command/Bulk/Interrupt.
#define MSC_PROTOCOL_CBI_ALT 0x01 |
W/o command completion.
#define MSC_SUBCLASS_ATAPI 0x02 |
CD/DVD devices.
#define MSC_SUBCLASS_QIC_157 0x03 |
Tape devices.
#define MSC_SUBCLASS_RBC 0x01 |
Reduced Block Commands.
#define MSC_SUBCLASS_SFF_8070I 0x05 |
Floppy disk drives.
#define MSC_SUBCLASS_TRANSPARENT 0x06 |
Determined by INQUIRY.
#define MSC_SUBCLASS_UFI 0x04 |
Floppy disk drives.
#define USB_CBW_DIRECTION_IN (1<<7) |
Data from device to host.
Referenced by udi_msc_cbw_validate(), udi_msc_csw_process(), udi_msc_sbc_read_capacity(), udi_msc_sbc_trans(), udi_msc_spc_inquiry(), udi_msc_spc_mode_sense(), and udi_msc_spc_requestsense().
#define USB_CBW_DIRECTION_OUT (0<<7) |
Data from host to device.
Referenced by udi_msc_sbc_trans().
#define USB_CBW_LEN_MASK 0x1F |
Valid bits in bCBWCBLength.
#define USB_CBW_LUN_MASK 0x0F |
Valid bits in bCBWLUN.
Referenced by udi_msc_cbw_received().
#define USB_CBW_SIGNATURE 0x55534243 |
dCBWSignature value
Referenced by udi_msc_cbw_received().
#define USB_CSW_SIGNATURE 0x55534253 |
dCSWSignature value
Referenced by UDC_BSS().
#define USB_CSW_STATUS_FAIL 0x01 |
Command Failed.
Referenced by udi_msc_sense_fail().
#define USB_CSW_STATUS_PASS 0x00 |
Command Passed.
Referenced by udi_msc_sense_pass().
#define USB_CSW_STATUS_PE 0x02 |
Phase Error.
enum usb_reqid_msc |