Go to the source code of this file.
Data Structures | |
struct | _SBCInquiry |
struct | _SBCInquiryData |
struct | _SBCRead10 |
struct | SBCReadCapacity10 |
struct | SBCReadCapacity10Data |
struct | SBCRequestSense |
struct | SBCRequestSenseData |
struct | _SBCTestUnitReady |
SBCTestUnitReady Data structure for the TEST UNIT READY command. More... | |
struct | SBCWrite10 |
struct | _SBCMediumRemoval |
struct | _SBCModeSense6 |
struct | _SBCModeParameterHeader6 |
struct | _SBCInformationalExceptionsControl |
struct | _SBCReadWriteErrorRecovery |
union | SBCCommand |
Defines | |
#define | SBC_INQUIRY 0x12 |
#define | SBC_READ_10 0x28 |
#define | SBC_READ_CAPACITY_10 0x25 |
#define | SBC_REQUEST_SENSE 0x03 |
#define | SBC_TEST_UNIT_READY 0x00 |
#define | SBC_WRITE_10 0x2A |
#define | SBC_PREVENT_ALLOW_MEDIUM_REMOVAL 0x1E |
#define | SBC_MODE_SENSE_6 0x1A |
#define | SBC_VERIFY_10 0x2F |
#define | SBC_READ_FORMAT_CAPACITIES 0x23 |
#define | SBC_PERIPHERAL_DEVICE_CONNECTED 0x00 |
#define | SBC_PERIPHERAL_DEVICE_NOT_CONNECTED 0x01 |
#define | SBC_PERIPHERAL_DEVICE_NOT_SUPPORTED 0x03 |
#define | SBC_DIRECT_ACCESS_BLOCK_DEVICE 0x00 |
#define | SBC_SEQUENTIAL_ACCESS_DEVICE 0x01 |
#define | SBC_PRINTER_DEVICE 0x02 |
#define | SBC_PROCESSOR_DEVICE 0x03 |
#define | SBC_WRITE_ONCE_DEVICE 0x04 |
#define | SBC_CD_DVD_DEVICE 0x05 |
#define | SBC_SCANNER_DEVICE 0x06 |
#define | SBC_OPTICAL_MEMORY_DEVICE 0x07 |
#define | SBC_MEDIA_CHANGER_DEVICE 0x08 |
#define | SBC_COMMUNICATION_DEVICE 0x09 |
#define | SBC_STORAGE_ARRAY_CONTROLLER_DEVICE 0x0C |
#define | SBC_ENCLOSURE_SERVICES_DEVICE 0x0D |
#define | SBC_SIMPLIFIED_DIRECT_ACCESS_DEVICE 0x0E |
#define | SBC_OPTICAL_CARD_READER_WRITER_DEVICE 0x0F |
#define | SBC_BRIDGE_CONTROLLER_COMMANDS 0x10 |
#define | SBC_OBJECT_BASED_STORAGE_DEVICE 0x11 |
#define | SBC_SPC_VERSION_4 0x06 |
Version value for the SBC-3 specification. | |
#define | SBC_TPGS_NONE 0x0 |
Values for the TPGS field returned in INQUIRY data. | |
#define | SBC_TPGS_ASYMMETRIC 0x1 |
#define | SBC_TPGS_SYMMETRIC 0x2 |
#define | SBC_TPGS_BOTH 0x3 |
#define | SBC_VERSION_DESCRIPTOR_SBC_3 0x04C0 |
Version descriptor value for the SBC-3 specification. | |
#define | SBC_SENSE_DATA_FIXED_CURRENT 0x70 |
#define | SBC_SENSE_DATA_FIXED_DEFERRED 0x71 |
#define | SBC_SENSE_DATA_DESCRIPTOR_CURRENT 0x72 |
#define | SBC_SENSE_DATA_DESCRIPTOR_DEFERRED 0x73 |
#define | SBC_SENSE_RESPONSE_CODE_MASK 0x7F |
#define | SBC_SENSE_KEY_NO_SENSE 0x00 |
#define | SBC_SENSE_KEY_RECOVERED_ERROR 0x01 |
#define | SBC_SENSE_KEY_NOT_READY 0x02 |
#define | SBC_SENSE_KEY_MEDIUM_ERROR 0x03 |
#define | SBC_SENSE_KEY_HARDWARE_ERROR 0x04 |
#define | SBC_SENSE_KEY_ILLEGAL_REQUEST 0x05 |
#define | SBC_SENSE_KEY_UNIT_ATTENTION 0x06 |
#define | SBC_SENSE_KEY_DATA_PROTECT 0x07 |
#define | SBC_SENSE_KEY_BLANK_CHECK 0x08 |
#define | SBC_SENSE_KEY_VENDOR_SPECIFIC 0x09 |
#define | SBC_SENSE_KEY_COPY_ABORTED 0x0A |
#define | SBC_SENSE_KEY_ABORTED_COMMAND 0x0B |
#define | SBC_SENSE_KEY_VOLUME_OVERFLOW 0x0D |
#define | SBC_SENSE_KEY_MISCOMPARE 0x0E |
#define | SBC_ASC_LOGICAL_UNIT_NOT_READY 0x04 |
#define | SBC_ASC_LOGICAL_BLOCK_ADDRESS_OUT_OF_RANGE 0x21 |
#define | SBC_ASC_INVALID_FIELD_IN_CDB 0x24 |
#define | SBC_ASC_WRITE_PROTECTED 0x27 |
#define | SBC_ASC_FORMAT_CORRUPTED 0x31 |
#define | SBC_ASC_INVALID_COMMAND_OPERATION_CODE 0x20 |
#define | SBC_ASC_TOO_MUCH_WRITE_DATA 0x26 |
#define | SBC_ASC_NOT_READY_TO_READY_CHANGE 0x28 |
#define | SBC_ASC_MEDIUM_NOT_PRESENT 0x3A |
#define | SBC_MEDIUM_TYPE_DIRECT_ACCESS_BLOCK_DEVICE 0x00 |
MEDIUM TYPE field value for direct-access block devices. | |
#define | SBC_MRIE_NO_REPORTING 0x00 |
MRIE field values. | |
#define | SBC_MRIE_ASYNCHRONOUS 0x01 |
#define | SBC_MRIE_GENERATE_UNIT_ATTENTION 0x02 |
#define | SBC_MRIE_COND_GENERATE_RECOVERED_ERROR 0x03 |
#define | SBC_MRIE_UNCOND_GENERATE_RECOVERED_ERROR 0x04 |
#define | SBC_MRIE_GENERATE_NO_SENSE 0x05 |
#define | SBC_MRIE_ON_REQUEST 0x06 |
#define | SBC_PAGE_READ_WRITE_ERROR_RECOVERY 0x01 |
Supported mode pages. | |
#define | SBC_PAGE_INFORMATIONAL_EXCEPTIONS_CONTROL 0x1C |
#define | SBC_PAGE_RETURN_ALL 0x3F |
#define | SBC_PAGE_VENDOR_SPECIFIC 0x00 |
#define | WORDB(bytes) ((unsigned short) ((bytes[0] << 8) | bytes[1])) |
Converts a byte array to a word value using the big endian format. | |
#define | DWORDB(bytes) |
Converts a byte array to a dword value using the big endian format. | |
#define | STORE_DWORDB(dword, bytes) |
Stores a dword value in a byte array, in big endian format. | |
#define | STORE_WORDB(word, bytes) |
Stores a word value in a byte array, in big endian format. | |
Functions | |
struct _MSDConfigurationDescriptors | __attribute__ ((__packed__)) SBCTestUnitReady |
SBCTestUnitReady Data structure for the TEST UNIT READY command. | |
Variables | |
unsigned char | bOperationCode |
unsigned char | isEVPD |
unsigned char | bReserved1 |
unsigned char | bPageCode |
unsigned char | pAllocationLength [2] |
unsigned char | bControl |
unsigned char | bPeripheralDeviceType |
unsigned char | bPeripheralQualifier |
unsigned char | isRMB |
unsigned char | bVersion |
unsigned char | bResponseDataFormat |
unsigned char | isHIGHSUP |
unsigned char | isNORMACA |
unsigned char | bObsolete1 |
unsigned char | bAdditionalLength |
unsigned char | isSCCS |
unsigned char | isACC |
unsigned char | bTPGS |
unsigned char | is3PC |
unsigned char | bReserved2 |
unsigned char | isProtect |
unsigned char | bObsolete2 |
unsigned char | isEncServ |
unsigned char | isVS |
unsigned char | isMultiP |
unsigned char | bObsolete3 |
unsigned char | bUnused1 |
unsigned char | bUnused2 |
unsigned char | isCmdQue |
unsigned char | isVS2 |
unsigned char | pVendorID [8] |
unsigned char | pProductID [16] |
unsigned char | pProductRevisionLevel [4] |
unsigned char | pVendorSpecific [20] |
unsigned char | bUnused3 |
unsigned char | bReserved3 |
unsigned short | pVersionDescriptors [8] |
unsigned char | pReserved4 [22] |
unsigned char | isFUA_NV |
unsigned char | isFUA |
unsigned char | isDPO |
unsigned char | bRdProtect |
unsigned char | pLogicalBlockAddress [4] |
unsigned char | bGroupNumber |
unsigned char | pTransferLength [2] |
unsigned char | pReserved1 [4] |
unsigned char | bPrevent |
unsigned char | isDBD |
unsigned char | bPC |
unsigned char | bSubpageCode |
unsigned char | bAllocationLength |
unsigned char | bModeDataLength |
unsigned char | bMediumType |
unsigned char | isDPOFUA |
unsigned char | isWP |
unsigned char | bBlockDescriptorLength |
unsigned char | isSPF |
unsigned char | isPS |
unsigned char | bPageLength |
unsigned char | isLogErr |
unsigned char | isEBackErr |
unsigned char | isTest |
unsigned char | isDExcpt |
unsigned char | isEWasc |
unsigned char | isEBF |
unsigned char | isPerf |
unsigned char | bMRIE |
unsigned char | pIntervalTimer [4] |
unsigned char | pReportCount [4] |
unsigned char | isDCR |
unsigned char | isDTE |
unsigned char | isPER |
unsigned char | isEER |
unsigned char | isRC |
unsigned char | isTB |
unsigned char | isARRE |
unsigned char | isAWRE |
unsigned char | bReadRetryCount |
unsigned char | pObsolete1 [3] |
unsigned char | bWriteRetryCount |
unsigned char | pRecoveryTimeLimit [2] |
SCSI definitions.
Definition in file SBC.h.
unsigned char bAdditionalLength |
unsigned char bAllocationLength |
unsigned char bBlockDescriptorLength |
unsigned char bGroupNumber |
unsigned char bMediumType |
unsigned char bModeDataLength |
unsigned char bMRIE |
unsigned char bObsolete1 |
unsigned char bObsolete2 |
unsigned char bObsolete3 |
unsigned char bOperationCode |
unsigned char bPageCode |
unsigned char bPageLength |
unsigned char bPeripheralDeviceType |
unsigned char bPeripheralQualifier |
unsigned char bRdProtect |
unsigned char bReadRetryCount |
unsigned char bReserved1 |
unsigned char bReserved2 |
unsigned char bReserved3 |
unsigned char bResponseDataFormat |
unsigned char bSubpageCode |
unsigned char bWriteRetryCount |
unsigned char isEBackErr |
unsigned char isLogErr |
unsigned char isPerf |
unsigned char pAllocationLength[2] |
unsigned char pIntervalTimer[4] |
unsigned char pLogicalBlockAddress[4] |
unsigned char pObsolete1[3] |
unsigned char pProductID[16] |
unsigned char pProductRevisionLevel[4] |
unsigned char pRecoveryTimeLimit[2] |
unsigned char pReportCount[4] |
unsigned char pReserved1 |
unsigned char pReserved4[22] |
unsigned char pTransferLength[2] |
unsigned char pVendorSpecific[20] |
unsigned short pVersionDescriptors[8] |