SCSI protocol definitions for USBUS.
More...
SCSI protocol definitions for USBUS.
- Author
- Dylan Laduranty dylan.nosp@m..lad.nosp@m.urant.nosp@m.y@me.nosp@m.sotic.nosp@m..com
Definition in file scsi.h.
Go to the source code of this file.
◆ SCCI_READ12
SCSI Read12.
Definition at line 59 of file scsi.h.
◆ SCSI_CBW_SIGNATURE
#define SCSI_CBW_SIGNATURE 0x43425355 |
Command Block Wrapper signature.
Definition at line 72 of file scsi.h.
◆ SCSI_CSW_SIGNATURE
#define SCSI_CSW_SIGNATURE 0x53425355 |
Command Status Wrapper signature.
Definition at line 77 of file scsi.h.
◆ SCSI_FORMAT_UNIT
#define SCSI_FORMAT_UNIT 0x04 |
SCSI Format Unit.
Definition at line 50 of file scsi.h.
◆ SCSI_INQUIRY
#define SCSI_INQUIRY 0x12 |
SCSI Inquiry.
Definition at line 51 of file scsi.h.
◆ SCSI_MEDIA_REMOVAL
#define SCSI_MEDIA_REMOVAL 0x1E |
SCSI Media Removal.
Definition at line 55 of file scsi.h.
◆ SCSI_MODE_SELECT10
#define SCSI_MODE_SELECT10 0x55 |
SCSI Mode Select10.
Definition at line 65 of file scsi.h.
◆ SCSI_MODE_SELECT6
#define SCSI_MODE_SELECT6 0x15 |
SCSI Mode Select6.
Definition at line 52 of file scsi.h.
◆ SCSI_MODE_SENSE10
#define SCSI_MODE_SENSE10 0x5A |
SCSI Mode Sense10.
Definition at line 66 of file scsi.h.
◆ SCSI_MODE_SENSE6
#define SCSI_MODE_SENSE6 0x1A |
SCSI Mode Sense6.
Definition at line 53 of file scsi.h.
◆ SCSI_READ10
SCSI Read10.
Definition at line 58 of file scsi.h.
◆ SCSI_READ_CAPACITY
#define SCSI_READ_CAPACITY 0x25 |
SCSI Read Capacity.
Definition at line 57 of file scsi.h.
◆ SCSI_READ_FMT_CAPA_TYPE_FORMATTED
#define SCSI_READ_FMT_CAPA_TYPE_FORMATTED 0x02 |
◆ SCSI_READ_FMT_CAPA_TYPE_NO_MEDIA
#define SCSI_READ_FMT_CAPA_TYPE_NO_MEDIA 0x03 |
◆ SCSI_READ_FMT_CAPA_TYPE_RESERVED
#define SCSI_READ_FMT_CAPA_TYPE_RESERVED 0x00 |
◆ SCSI_READ_FMT_CAPA_TYPE_UNFORMATTED
#define SCSI_READ_FMT_CAPA_TYPE_UNFORMATTED 0x01 |
◆ SCSI_READ_FORMAT_CAPACITIES
#define SCSI_READ_FORMAT_CAPACITIES 0x23 |
SCSI Read Format Capacities.
Definition at line 56 of file scsi.h.
◆ SCSI_REQUEST_SENSE
#define SCSI_REQUEST_SENSE 0x03 |
SCSI Request Sense.
Definition at line 49 of file scsi.h.
◆ SCSI_REQUEST_SENSE_ERROR
#define SCSI_REQUEST_SENSE_ERROR 0x70 |
SCSI Request Sense error type.
Definition at line 103 of file scsi.h.
◆ SCSI_SEEK
SCSI Seek.
Definition at line 62 of file scsi.h.
◆ SCSI_SENSE_KEY_ABORTED_COMMAND
#define SCSI_SENSE_KEY_ABORTED_COMMAND 0x0B |
◆ SCSI_SENSE_KEY_BLANK_CHECK
#define SCSI_SENSE_KEY_BLANK_CHECK 0x08 |
◆ SCSI_SENSE_KEY_DATA_PROTECT
#define SCSI_SENSE_KEY_DATA_PROTECT 0x07 |
◆ SCSI_SENSE_KEY_HARDWARE_ERROR
#define SCSI_SENSE_KEY_HARDWARE_ERROR 0x04 |
◆ SCSI_SENSE_KEY_ILLEGAL_REQUEST
#define SCSI_SENSE_KEY_ILLEGAL_REQUEST 0x05 |
◆ SCSI_SENSE_KEY_MEDIUM_ERROR
#define SCSI_SENSE_KEY_MEDIUM_ERROR 0x03 |
◆ SCSI_SENSE_KEY_MISCOMPARE
#define SCSI_SENSE_KEY_MISCOMPARE 0x0E |
◆ SCSI_SENSE_KEY_NO_SENSE
#define SCSI_SENSE_KEY_NO_SENSE 0x00 |
◆ SCSI_SENSE_KEY_NOT_READY
#define SCSI_SENSE_KEY_NOT_READY 0x02 |
◆ SCSI_SENSE_KEY_RECOVERED_ERROR
#define SCSI_SENSE_KEY_RECOVERED_ERROR 0x01 |
◆ SCSI_SENSE_KEY_UNIT_ATTENTION
#define SCSI_SENSE_KEY_UNIT_ATTENTION 0x06 |
◆ SCSI_SENSE_KEY_VENDOR_SPECIFIC
#define SCSI_SENSE_KEY_VENDOR_SPECIFIC 0x09 |
◆ SCSI_SENSE_KEY_VOLUME_OVERFLOW
#define SCSI_SENSE_KEY_VOLUME_OVERFLOW 0x0D |
◆ SCSI_START_STOP_UNIT
#define SCSI_START_STOP_UNIT 0x1B |
SCSI Start Stop Unit.
Definition at line 54 of file scsi.h.
◆ SCSI_TEST_UNIT_READY
#define SCSI_TEST_UNIT_READY 0x00 |
SCSI Test Unit Ready.
Definition at line 48 of file scsi.h.
◆ SCSI_VERIFY10
#define SCSI_VERIFY10 0x2F |
SCSI Verify10.
Definition at line 64 of file scsi.h.
◆ SCSI_VERSION_NONE
#define SCSI_VERSION_NONE 0x0000 |
◆ SCSI_VERSION_SCSI1
#define SCSI_VERSION_SCSI1 0x0001 |
◆ SCSI_VERSION_SCSI2
#define SCSI_VERSION_SCSI2 0x0002 |
◆ SCSI_WRITE10
#define SCSI_WRITE10 0x2A |
SCSI Write10.
Definition at line 60 of file scsi.h.
◆ SCSI_WRITE12
#define SCSI_WRITE12 0xAA |
SCSI Write12.
Definition at line 61 of file scsi.h.
◆ SCSI_WRITE_AND_VERIFY
#define SCSI_WRITE_AND_VERIFY 0x2E |
SCSI Write and Verify.
Definition at line 63 of file scsi.h.
◆ USBUS_MSC_PRODUCT_ID
#define USBUS_MSC_PRODUCT_ID "RIOT_MSC_DISK " |
◆ USBUS_MSC_PRODUCT_REV
#define USBUS_MSC_PRODUCT_REV " 1.0" |
◆ USBUS_MSC_VENDOR_ID
#define USBUS_MSC_VENDOR_ID "RIOT-OS" |
◆ scsi_gen_csw()
Generate Command Status Wrapper and send it to the host.
- Parameters
-
handler | MSC device struct |
cmd | struct containing needed information to generate CBW response |
◆ usbus_msc_scsi_process_cmd()
Process incoming Command Block Wrapper buffer.
- Parameters
-
usbus | USBUS thread to use |
handler | MSC device struct |
ep | Endpoint pointer to read CBW from |
len | Size of the received CBW buffer |