FreeBSD kernel pms device code
smdefs.h File Reference
Include dependency graph for smdefs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  smScsiReportLun_s
 
struct  satSimpleSATAIdentifyData_s
 
struct  satReadLogExtPage10h_s
 
struct  satReadLogExtSelfTest_s
 
struct  satSmartReadLogSelfTest_s
 
struct  smpReqPhyControl_s
 
struct  smSMPFrameHeader_s
 

Macros

#define SM_ROOT_MEM_INDEX   0
 
#define SM_DEVICE_MEM_INDEX   1
 
#define SM_IO_MEM_INDEX   2
 
#define SM_MAX_DEV   256
 
#define SM_MAX_IO   1024
 
#define SM_USECS_PER_TICK   1000000
 
#define SATA_ATA_DEVICE   0x01
 
#define SATA_ATAPI_DEVICE   0x02
 
#define SATA_PM_DEVICE   0x03
 
#define SATA_SEMB_DEVICE   0x04
 
#define SATA_SEMB_WO_SEP_DEVICE   0x05
 
#define UNKNOWN_DEVICE   0xFF
 
#define PIO_SETUP_DEV_TO_HOST_FIS   0x5F
 
#define REG_DEV_TO_HOST_FIS   0x34
 
#define SET_DEV_BITS_FIS   0xA1
 
#define SAT_READ_FPDMA_QUEUED   0x60
 
#define SAT_READ_DMA_EXT   0x25
 
#define SAT_READ_DMA   0xC8
 
#define SAT_WRITE_FPDMA_QUEUED   0x61
 
#define SAT_WRITE_DMA_EXT   0x35
 
#define SAT_WRITE_DMA_FUA_EXT   0x3D
 
#define SAT_WRITE_DMA   0xCA
 
#define SAT_CHECK_POWER_MODE   0xE5
 
#define SAT_READ_LOG_EXT   0x2F
 
#define SAT_READ_VERIFY_SECTORS   0x40
 
#define SAT_READ_VERIFY_SECTORS_EXT   0x42
 
#define SAT_SMART   0xB0
 
#define SAT_SMART_EXEUTE_OFF_LINE_IMMEDIATE   0xD4
 
#define SAT_SMART_RETURN_STATUS   0xDA
 
#define SAT_SMART_READ_LOG   0xD5
 
#define SAT_SMART_ENABLE_OPERATIONS   0xD8
 
#define SAT_SMART_DISABLE_OPERATIONS   0xD9
 
#define SAT_FLUSH_CACHE   0xE7
 
#define SAT_FLUSH_CACHE_EXT   0xEA
 
#define SAT_STANDBY   0xE2
 
#define SAT_MEDIA_EJECT   0xED
 
#define SAT_WRITE_SECTORS   0x30
 
#define SAT_WRITE_SECTORS_EXT   0x34
 
#define SAT_READ_SECTORS   0x20
 
#define SAT_READ_SECTORS_EXT   0x24
 
#define SAT_GET_MEDIA_STATUS   0xDA
 
#define SAT_SET_FEATURES   0xEF
 
#define SAT_IDENTIFY_DEVICE   0xEC
 
#define SAT_READ_BUFFER   0xE4
 
#define SAT_WRITE_BUFFER   0xE8
 
#define SAT_IDENTIFY_PACKET_DEVICE   0xA1
 
#define SAT_PACKET   0xA0
 
#define SAT_DEVICE_RESET   0x08
 
#define SAT_EXECUTE_DEVICE_DIAGNOSTIC   0x90
 
#define ERR_ATA_STATUS_MASK   0x01 /* Error/check bit */
 
#define DRQ_ATA_STATUS_MASK   0x08 /* Data Request bit */
 
#define DF_ATA_STATUS_MASK   0x20 /* Device Fault bit */
 
#define DRDY_ATA_STATUS_MASK   0x40 /* Device Ready bit */
 
#define BSY_ATA_STATUS_MASK   0x80 /* Busy bit */
 
#define NM_ATA_ERROR_MASK   0x02 /* No media present bit */
 
#define ABRT_ATA_ERROR_MASK   0x04 /* Command aborted bit */
 
#define MCR_ATA_ERROR_MASK   0x08 /* Media change request bit */
 
#define IDNF_ATA_ERROR_MASK   0x10 /* Address not found bit */
 
#define MC_ATA_ERROR_MASK   0x20 /* Media has changed bit */
 
#define UNC_ATA_ERROR_MASK   0x40 /* Uncorrectable data error bit */
 
#define ICRC_ATA_ERROR_MASK   0x80 /* Interface CRC error bit */
 
#define SAT_TR_LBA_LIMIT   0x10000000
 
#define SAT_EXT_TR_LBA_LIMIT   0x1000000000000
 
#define SAT_NON_EXT_TYPE   0
 
#define SAT_EXT_TYPE   1
 
#define SAT_FP_TYPE   2
 
#define AG_SAT_VENDOR_ID_STRING   "ATA "
 
#define AG_SAT_INT_IO_FLAG_ORG_IO_COMPLETED   0x00000001
 
#define INQUIRY_SUPPORTED_VPD_PAGE   0x00
 
#define INQUIRY_UNIT_SERIAL_NUMBER_VPD_PAGE   0x80
 
#define INQUIRY_DEVICE_IDENTIFICATION_VPD_PAGE   0x83
 
#define INQUIRY_ATA_INFORMATION_VPD_PAGE   0x89
 
#define INQUIRY_BLOCK_DEVICE_CHARACTERISTICS_VPD_PAGE   0xB1
 
#define MODESENSE_CONTROL_PAGE   0x0A
 
#define MODESENSE_READ_WRITE_ERROR_RECOVERY_PAGE   0x01
 
#define MODESENSE_CACHING   0x08
 
#define MODESENSE_INFORMATION_EXCEPTION_CONTROL_PAGE   0x1C
 
#define MODESENSE_RETURN_ALL_PAGES   0x3F
 
#define MODESENSE_VENDOR_SPECIFIC_PAGE   0x00
 
#define MODESELECT_CONTROL_PAGE   0x0A
 
#define MODESELECT_READ_WRITE_ERROR_RECOVERY_PAGE   0x01
 
#define MODESELECT_CACHING   0x08
 
#define MODESELECT_INFORMATION_EXCEPTION_CONTROL_PAGE   0x1C
 
#define MODESELECT_RETURN_ALL_PAGES   0x3F
 
#define MODESELECT_VENDOR_SPECIFIC_PAGE   0x00
 
#define LOGSENSE_SUPPORTED_LOG_PAGES   0x00
 
#define LOGSENSE_SELFTEST_RESULTS_PAGE   0x10
 
#define LOGSENSE_INFORMATION_EXCEPTIONS_PAGE   0x2F
 
#define SCSI_EVPD_MASK   0x01
 
#define SCSI_IMMED_MASK   0x01
 
#define SCSI_NACA_MASK   0x04
 
#define SCSI_LINK_MASK   0x01
 
#define SCSI_PF_MASK   0x10
 
#define SCSI_DEVOFFL_MASK   0x02
 
#define SCSI_UNITOFFL_MASK   0x01
 
#define SCSI_START_MASK   0x01
 
#define SCSI_LOEJ_MASK   0x02
 
#define SCSI_NM_MASK   0x02
 
#define SCSI_FLUSH_CACHE_IMMED_MASK   0x02
 
#define SCSI_FUA_NV_MASK   0x02
 
#define SCSI_VERIFY_BYTCHK_MASK   0x02
 
#define SCSI_FORMAT_UNIT_IMMED_MASK   0x02
 
#define SCSI_FORMAT_UNIT_FOV_MASK   0x80
 
#define SCSI_FORMAT_UNIT_DCRT_MASK   0x20
 
#define SCSI_FORMAT_UNIT_IP_MASK   0x08
 
#define SCSI_WRITE_SAME_LBDATA_MASK   0x02
 
#define SCSI_WRITE_SAME_PBDATA_MASK   0x04
 
#define SCSI_SYNC_CACHE_IMMED_MASK   0x02
 
#define SCSI_WRITE_N_VERIFY_BYTCHK_MASK   0x02
 
#define SCSI_SEND_DIAGNOSTIC_SELFTEST_MASK   0x04
 
#define SCSI_FORMAT_UNIT_DEFECT_LIST_FORMAT_MASK   0x07
 
#define SCSI_FORMAT_UNIT_FMTDATA_MASK   0x10
 
#define SCSI_FORMAT_UNIT_DCRT_MASK   0x20
 
#define SCSI_FORMAT_UNIT_CMPLIST_MASK   0x08
 
#define SCSI_FORMAT_UNIT_LONGLIST_MASK   0x20
 
#define SCSI_READ10_FUA_MASK   0x08
 
#define SCSI_READ12_FUA_MASK   0x08
 
#define SCSI_READ16_FUA_MASK   0x08
 
#define SCSI_WRITE10_FUA_MASK   0x08
 
#define SCSI_WRITE12_FUA_MASK   0x08
 
#define SCSI_WRITE16_FUA_MASK   0x08
 
#define SCSI_READ_CAPACITY10_PMI_MASK   0x01
 
#define SCSI_READ_CAPACITY16_PMI_MASK   0x01
 
#define SCSI_MODE_SENSE6_PC_MASK   0xC0
 
#define SCSI_MODE_SENSE6_PAGE_CODE_MASK   0x3F
 
#define SCSI_MODE_SENSE10_PC_MASK   0xC0
 
#define SCSI_MODE_SENSE10_LLBAA_MASK   0x10
 
#define SCSI_MODE_SENSE10_PAGE_CODE_MASK   0x3F
 
#define SCSI_SEND_DIAGNOSTIC_TEST_CODE_MASK   0xE0
 
#define SCSI_LOG_SENSE_PAGE_CODE_MASK   0x3F
 
#define SCSI_MODE_SELECT6_PF_MASK   0x10
 
#define SCSI_MODE_SELECT6_AWRE_MASK   0x80
 
#define SCSI_MODE_SELECT6_RC_MASK   0x10
 
#define SCSI_MODE_SELECT6_EER_MASK   0x08
 
#define SCSI_MODE_SELECT6_PER_MASK   0x04
 
#define SCSI_MODE_SELECT6_DTE_MASK   0x02
 
#define SCSI_MODE_SELECT6_DCR_MASK   0x01
 
#define SCSI_MODE_SELECT6_WCE_MASK   0x04
 
#define SCSI_MODE_SELECT6_DRA_MASK   0x20
 
#define SCSI_MODE_SELECT6_PERF_MASK   0x80
 
#define SCSI_MODE_SELECT6_TEST_MASK   0x04
 
#define SCSI_MODE_SELECT6_DEXCPT_MASK   0x08
 
#define SCSI_MODE_SELECT10_PF_MASK   0x10
 
#define SCSI_MODE_SELECT10_LONGLBA_MASK   0x01
 
#define SCSI_MODE_SELECT10_AWRE_MASK   0x80
 
#define SCSI_MODE_SELECT10_RC_MASK   0x10
 
#define SCSI_MODE_SELECT10_EER_MASK   0x08
 
#define SCSI_MODE_SELECT10_PER_MASK   0x04
 
#define SCSI_MODE_SELECT10_DTE_MASK   0x02
 
#define SCSI_MODE_SELECT10_DCR_MASK   0x01
 
#define SCSI_MODE_SELECT10_WCE_MASK   0x04
 
#define SCSI_MODE_SELECT10_DRA_MASK   0x20
 
#define SCSI_MODE_SELECT10_PERF_MASK   0x80
 
#define SCSI_MODE_SELECT10_TEST_MASK   0x04
 
#define SCSI_MODE_SELECT10_DEXCPT_MASK   0x08
 
#define SCSI_WRITE_N_VERIFY10_FUA_MASK   0x08
 
#define SCSI_REQUEST_SENSE_DESC_MASK   0x01
 
#define SCSI_READ_BUFFER_MODE_MASK   0x1F
 
#define ATA_REMOVABLE_MEDIA_DEVICE_MASK   0x80
 
#define SCSI_REASSIGN_BLOCKS_LONGLIST_MASK   0x01
 
#define SCSI_REASSIGN_BLOCKS_LONGLBA_MASK   0x02
 
#define SENSE_DATA_LENGTH   0x12 /* 18 */
 
#define SELFTEST_RESULTS_LOG_PAGE_LENGTH   404
 
#define INFORMATION_EXCEPTIONS_LOG_PAGE_LENGTH   11
 
#define ZERO_MEDIA_SERIAL_NUMBER_LENGTH   8
 
#define LOG_SENSE_0   0
 
#define LOG_SENSE_1   1
 
#define LOG_SENSE_2   2
 
#define READ_BUFFER_DATA_MODE   0x02
 
#define READ_BUFFER_DESCRIPTOR_MODE   0x03
 
#define READ_BUFFER_DESCRIPTOR_MODE_DATA_LEN   0x04
 
#define WRITE_BUFFER_DATA_MODE   0x02
 
#define WRITE_BUFFER_DL_MICROCODE_SAVE_MODE   0x05
 
#define BIT0_MASK   0x01
 
#define BIT1_MASK   0x02
 
#define BIT2_MASK   0x04
 
#define BIT3_MASK   0x08
 
#define BIT4_MASK   0x10
 
#define BIT5_MASK   0x20
 
#define BIT6_MASK   0x40
 
#define BIT7_MASK   0x80
 
#define MODE_SENSE6_RETURN_ALL_PAGES_LEN   68
 
#define MODE_SENSE6_CONTROL_PAGE_LEN   24
 
#define MODE_SENSE6_READ_WRITE_ERROR_RECOVERY_PAGE_LEN   24
 
#define MODE_SENSE6_CACHING_LEN   32
 
#define MODE_SENSE6_INFORMATION_EXCEPTION_CONTROL_PAGE_LEN   24
 
#define MODE_SENSE10_RETURN_ALL_PAGES_LEN   68 + 4
 
#define MODE_SENSE10_CONTROL_PAGE_LEN   24 + 4
 
#define MODE_SENSE10_READ_WRITE_ERROR_RECOVERY_PAGE_LEN   24 + 4
 
#define MODE_SENSE10_CACHING_LEN   32 + 4
 
#define MODE_SENSE10_INFORMATION_EXCEPTION_CONTROL_PAGE_LEN   24 + 4
 
#define MODE_SENSE10_RETURN_ALL_PAGES_LLBAA_LEN   68 + 4 + 8
 
#define MODE_SENSE10_CONTROL_PAGE_LLBAA_LEN   24 + 4 + 8
 
#define MODE_SENSE10_READ_WRITE_ERROR_RECOVERY_PAGE_LLBAA_LEN   24 + 4 + 8
 
#define MODE_SENSE10_CACHING_LLBAA_LEN   32 + 4 + 8
 
#define MODE_SENSE10_INFORMATION_EXCEPTION_CONTROL_PAGE_LLBAA_LEN   24 + 4 + 8
 
#define SCSI_SNSKEY_NO_SENSE   0x00
 
#define SCSI_SNSKEY_RECOVERED_ERROR   0x01
 
#define SCSI_SNSKEY_NOT_READY   0x02
 
#define SCSI_SNSKEY_MEDIUM_ERROR   0x03
 
#define SCSI_SNSKEY_HARDWARE_ERROR   0x04
 
#define SCSI_SNSKEY_ILLEGAL_REQUEST   0x05
 
#define SCSI_SNSKEY_UNIT_ATTENTION   0x06
 
#define SCSI_SNSKEY_DATA_PROTECT   0x07
 
#define SCSI_SNSKEY_ABORTED_COMMAND   0x0B
 
#define SCSI_SNSKEY_MISCOMPARE   0x0E
 
#define SCSI_SNSCODE_NO_ADDITIONAL_INFO   0x0000
 
#define SCSI_SNSCODE_LUN_CRC_ERROR_DETECTED   0x0803
 
#define SCSI_SNSCODE_INVALID_COMMAND   0x2000
 
#define SCSI_SNSCODE_LOGICAL_BLOCK_OUT   0x2100
 
#define SCSI_SNSCODE_INVALID_FIELD_IN_CDB   0x2400
 
#define SCSI_SNSCODE_LOGICAL_NOT_SUPPORTED   0x2500
 
#define SCSI_SNSCODE_POWERON_RESET   0x2900
 
#define SCSI_SNSCODE_EVERLAPPED_CMDS   0x4e00
 
#define SCSI_SNSCODE_INTERNAL_TARGET_FAILURE   0x4400
 
#define SCSI_SNSCODE_MEDIUM_NOT_PRESENT   0x3a00
 
#define SCSI_SNSCODE_UNRECOVERED_READ_ERROR   0x1100
 
#define SCSI_SNSCODE_RECORD_NOT_FOUND   0x1401
 
#define SCSI_SNSCODE_NOT_READY_TO_READY_CHANGE   0x2800
 
#define SCSI_SNSCODE_OPERATOR_MEDIUM_REMOVAL_REQUEST   0x5a01
 
#define SCSI_SNSCODE_INFORMATION_UNIT_CRC_ERROR   0x4703
 
#define SCSI_SNSCODE_LOGICAL_UNIT_NOT_READY_FORMAT_IN_PROGRESS   0x0404
 
#define SCSI_SNSCODE_HARDWARE_IMPENDING_FAILURE   0x5d10
 
#define SCSI_SNSCODE_LOW_POWER_CONDITION_ON   0x5e00
 
#define SCSI_SNSCODE_LOGICAL_UNIT_NOT_READY_INIT_REQUIRED   0x0402
 
#define SCSI_SNSCODE_INVALID_FIELD_PARAMETER_LIST   0x2600
 
#define SCSI_SNSCODE_ATA_DEVICE_FAILED_SET_FEATURES   0x4471
 
#define SCSI_SNSCODE_ATA_DEVICE_FEATURE_NOT_ENABLED   0x670B
 
#define SCSI_SNSCODE_LOGICAL_UNIT_FAILED_SELF_TEST   0x3E03
 
#define SCSI_SNSCODE_COMMAND_SEQUENCE_ERROR   0x2C00
 
#define SCSI_SNSCODE_LOGICAL_BLOCK_ADDRESS_OUT_OF_RANGE   0x2100
 
#define SCSI_SNSCODE_LOGICAL_UNIT_FAILURE   0x3E01
 
#define SCSI_SNSCODE_MEDIA_LOAD_OR_EJECT_FAILED   0x5300
 
#define SCSI_SNSCODE_LOGICAL_UNIT_NOT_READY_INITIALIZING_COMMAND_REQUIRED   0x0402
 
#define SCSI_SNSCODE_LOGICAL_UNIT_NOT_READY_CAUSE_NOT_REPORTABLE   0x0400
 
#define SCSI_SNSCODE_LOGICAL_UNIT_DOES_NOT_RESPOND_TO_SELECTION   0x0500
 
#define SCSI_SNSCODE_DIAGNOSTIC_FAILURE_ON_COMPONENT_NN   0x4000
 
#define SCSI_SNSCODE_COMMANDS_CLEARED_BY_ANOTHER_INITIATOR   0x2F00
 
#define SCSI_SNSCODE_WRITE_ERROR_AUTO_REALLOCATION_FAILED   0x0C02
 
#define SCSI_SNSCODE_ATA_PASS_THROUGH_INFORMATION_AVAILABLE   0x001D
 
#define SCSI_ASC_NOTREADY_INIT_CMD_REQ   0x04
 
#define SCSI_ASCQ_NOTREADY_INIT_CMD_REQ   0x02
 
#define SCSIOP_INQUIRY_CMDDT   0x02
 
#define SCSIOP_INQUIRY_EVPD   0x01
 
#define STANDARD_INQUIRY_SIZE   36
 
#define SATA_PAGE83_INQUIRY_WWN_SIZE   16 /* SAT, revision8, Table81, p78, 12 + 4 */
 
#define SATA_PAGE83_INQUIRY_NO_WWN_SIZE   76 /* SAT, revision8, Table81, p78, 72 + 4 */
 
#define SATA_PAGE89_INQUIRY_SIZE   572 /* SAT, revision8, Table87, p84 */
 
#define SATA_PAGE0_INQUIRY_SIZE   9 /* SPC-4, 7.6.9 Table331, p345 */
 
#define SATA_PAGE80_INQUIRY_SIZE   24 /* SAT, revision8, Table79, p77 */
 
#define SATA_PAGEB1_INQUIRY_SIZE   64 /* SBC-3, revision31, Table193, p273 */
 
#define SCSIOPC_TEST_UNIT_READY   0x00
 
#define SCSIOPC_INQUIRY   0x12
 
#define SCSIOPC_MODE_SENSE_6   0x1A
 
#define SCSIOPC_MODE_SENSE_10   0x5A
 
#define SCSIOPC_MODE_SELECT_6   0x15
 
#define SCSIOPC_START_STOP_UNIT   0x1B
 
#define SCSIOPC_READ_CAPACITY_10   0x25
 
#define SCSIOPC_READ_CAPACITY_16   0x9E
 
#define SCSIOPC_READ_6   0x08
 
#define SCSIOPC_READ_10   0x28
 
#define SCSIOPC_READ_12   0xA8
 
#define SCSIOPC_READ_16   0x88
 
#define SCSIOPC_WRITE_6   0x0A
 
#define SCSIOPC_WRITE_10   0x2A
 
#define SCSIOPC_WRITE_12   0xAA
 
#define SCSIOPC_WRITE_16   0x8A
 
#define SCSIOPC_WRITE_VERIFY   0x2E
 
#define SCSIOPC_VERIFY_10   0x2F
 
#define SCSIOPC_VERIFY_12   0xAF
 
#define SCSIOPC_VERIFY_16   0x8F
 
#define SCSIOPC_REQUEST_SENSE   0x03
 
#define SCSIOPC_REPORT_LUN   0xA0
 
#define SCSIOPC_FORMAT_UNIT   0x04
 
#define SCSIOPC_SEND_DIAGNOSTIC   0x1D
 
#define SCSIOPC_WRITE_SAME_10   0x41
 
#define SCSIOPC_WRITE_SAME_16   0x93
 
#define SCSIOPC_READ_BUFFER   0x3C
 
#define SCSIOPC_WRITE_BUFFER   0x3B
 
#define SCSIOPC_LOG_SENSE   0x4D
 
#define SCSIOPC_LOG_SELECT   0x4C
 
#define SCSIOPC_MODE_SELECT_6   0x15
 
#define SCSIOPC_MODE_SELECT_10   0x55
 
#define SCSIOPC_SYNCHRONIZE_CACHE_10   0x35
 
#define SCSIOPC_SYNCHRONIZE_CACHE_16   0x91
 
#define SCSIOPC_WRITE_AND_VERIFY_10   0x2E
 
#define SCSIOPC_WRITE_AND_VERIFY_12   0xAE
 
#define SCSIOPC_WRITE_AND_VERIFY_16   0x8E
 
#define SCSIOPC_READ_MEDIA_SERIAL_NUMBER   0xAB
 
#define SCSIOPC_REASSIGN_BLOCKS   0x07
 
#define SCSIOPC_GET_CONFIG   0x46
 
#define SCSIOPC_GET_EVENT_STATUS_NOTIFICATION   0x4a
 
#define SCSIOPC_REPORT_KEY   0xA4
 
#define SCSIOPC_SEND_KEY   0xA3
 
#define SCSIOPC_READ_DVD_STRUCTURE   0xAD
 
#define SCSIOPC_TOC   0x43
 
#define SCSIOPC_PREVENT_ALLOW_MEDIUM_REMOVAL   0x1E
 
#define SCSIOPC_READ_VERIFY   0x42
 
#define SCSIOPC_ATA_PASS_THROUGH12   0xA1
 
#define SCSIOPC_ATA_PASS_THROUGH16   0x85
 
#define MIN(a, b)   ((a) < (b) ? (a) : (b))
 MIN macro. More...
 
#define MAX(a, b)   ((a) < (b) ? (b) : (a))
 MAX macro. More...
 
#define SM_DBG0(format)
 
#define SM_DBG1(format)
 
#define SM_DBG2(format)
 
#define SM_DBG3(format)
 
#define SM_DBG4(format)
 
#define SM_DBG5(format)
 
#define SM_DBG6(format)
 
#define SAT_NONNCQ_MAX   1
 
#define SAT_NCQ_MAX   32
 
#define SAT_MAX_INT_IO   16
 
#define SAT_APAPI_CMDQ_MAX   2
 
#define SAT_DEV_STATE_NORMAL   0 /* Normal */
 
#define SAT_DEV_STATE_IN_RECOVERY   1 /* SAT in recovery mode */
 
#define SAT_DEV_STATE_FORMAT_IN_PROGRESS   2 /* Format unit in progress */
 
#define SAT_DEV_STATE_SMART_THRESHOLD   3 /* SMART Threshold Exceeded Condition*/
 
#define SAT_DEV_STATE_LOW_POWER   4 /* Low Power State*/
 
#define agNULL   ((void *)0)
 
#define SM_SET_ESGL_EXTEND(val)    ((val) = (val) | 0x80000000)
 
#define SM_CLEAR_ESGL_EXTEND(val)    ((val) = (val) & 0x7FFFFFFF)
 
#define OPEN_RETRY_RETRIES   10
 
#define OSSA_OFFSET_OF(STRUCT_TYPE, FEILD)    (bitptr)&(((STRUCT_TYPE *)0)->FEILD)
 
#define SM_ABORT_TASK   1
 
#define SM_ABORT_TASK_SET   2
 
#define SM_CLEAR_ACA   3
 
#define SM_CLEAR_TASK_SET   4
 
#define SM_LOGICAL_UNIT_RESET   5
 
#define SM_TARGET_WARM_RESET   6 /* iSCSI only */
 
#define SM_TARGET_COLD_RESET   7 /* iSCSI only */
 
#define SM_TASK_REASSIGN   8 /* iSCSI only */
 
#define SM_QUERY_TASK   9 /* SAS only */
 
#define SMP_PHY_CONTROL_NOP   0x00
 
#define SMP_PHY_CONTROL_LINK_RESET   0x01
 
#define SMP_PHY_CONTROL_HARD_RESET   0x02
 
#define SMP_PHY_CONTROL_DISABLE   0x03
 
#define SMP_PHY_CONTROL_CLEAR_ERROR_LOG   0x05
 
#define SMP_PHY_CONTROL_CLEAR_AFFILIATION   0x06
 
#define SMP_PHY_CONTROL_XMIT_SATA_PS_SIGNAL   0x07
 
#define SMP_DIRECT_PAYLOAD_LIMIT   44
 
#define SMP_REQUEST   0x40
 
#define SMP_RESPONSE   0x41
 
#define SMP_PHY_CONTROL   0x91
 
#define SMP_FUNCTION_ACCEPTED   0x00
 
#define SM_GET_SAS_ADDRESSLO(sasAddressLo)    DMA_BEBIT32_TO_BIT32(*(bit32 *)sasAddressLo)
 
#define SM_GET_SAS_ADDRESSHI(sasAddressHi)    DMA_BEBIT32_TO_BIT32(*(bit32 *)sasAddressHi)
 
#define SATA_SECTOR_SIZE   0x200
 
#define NON_BIT48_ADDRESS_TL_LIMIT   0x100
 
#define BIT48_ADDRESS_TL_LIMIT   0xFFFF
 
#define VEN_DEV_SPC   0x800111f8
 
#define VEN_DEV_SPCv   0x800811f8
 
#define VEN_DEV_SPCve   0x800911f8
 
#define VEN_DEV_SPCvplus   0x801811f8
 
#define VEN_DEV_SPCveplus   0x801911f8
 
#define SMIsSPC(agr)   (VEN_DEV_SPC == ossaHwRegReadConfig32(agr,0 ) ? 1 : 0) /* returns true config space read is SPC */
 
#define SMIsSPCv(agr)   (VEN_DEV_SPCv == ossaHwRegReadConfig32(agr,0 ) ? 1 : 0) /* returns true config space read is SPCv */
 
#define SMIsSPCve(agr)   (VEN_DEV_SPCve == ossaHwRegReadConfig32(agr,0 ) ? 1 : 0) /* returns true config space read is SPCve */
 
#define SMIsSPCvplus(agr)   (VEN_DEV_SPCvplus == ossaHwRegReadConfig32(agr,0 ) ? 1 : 0) /* returns true config space read is SPCv+ */
 
#define SMIsSPCveplus(agr)   (VEN_DEV_SPCveplus == ossaHwRegReadConfig32(agr,0 ) ? 1 : 0) /* returns true config space read is SPCve+ */
 
#define DEFAULT_KEY_BUFFER_SIZE   64
 

Typedefs

typedef struct smScsiReportLun_s smScsiReportLun_t
 
typedef struct satSimpleSATAIdentifyData_s satSimpleSATAIdentifyData_t
 
typedef struct satReadLogExtPage10h_s satReadLogExtPage10h_t
 
typedef struct satReadLogExtSelfTest_s satReadLogExtSelfTest_t
 
typedef struct satSmartReadLogSelfTest_s satSmartReadLogSelfTest_t
 
typedef struct smpReqPhyControl_s smpReqPhyControl_t
 
typedef struct smSMPFrameHeader_s smSMPFrameHeader_t
 

Enumerations

enum  sm_locks_e {
  SM_TIMER_LOCK = 0 , SM_DEVICE_LOCK , SM_INTERNAL_IO_LOCK , SM_EXTERNAL_IO_LOCK ,
  SM_NCQ_TAG_LOCK , SM_TBD_LOCK , SM_MAX_LOCKS
}
 

Macro Definition Documentation

◆ ABRT_ATA_ERROR_MASK

#define ABRT_ATA_ERROR_MASK   0x04 /* Command aborted bit */

Definition at line 122 of file smdefs.h.

◆ AG_SAT_INT_IO_FLAG_ORG_IO_COMPLETED

#define AG_SAT_INT_IO_FLAG_ORG_IO_COMPLETED   0x00000001

Definition at line 212 of file smdefs.h.

◆ AG_SAT_VENDOR_ID_STRING

#define AG_SAT_VENDOR_ID_STRING   "ATA "

Definition at line 166 of file smdefs.h.

◆ agNULL

#define agNULL   ((void *)0)

Definition at line 561 of file smdefs.h.

◆ ATA_REMOVABLE_MEDIA_DEVICE_MASK

#define ATA_REMOVABLE_MEDIA_DEVICE_MASK   0x80

Definition at line 313 of file smdefs.h.

◆ BIT0_MASK

#define BIT0_MASK   0x01

Definition at line 335 of file smdefs.h.

◆ BIT1_MASK

#define BIT1_MASK   0x02

Definition at line 336 of file smdefs.h.

◆ BIT2_MASK

#define BIT2_MASK   0x04

Definition at line 337 of file smdefs.h.

◆ BIT3_MASK

#define BIT3_MASK   0x08

Definition at line 338 of file smdefs.h.

◆ BIT48_ADDRESS_TL_LIMIT

#define BIT48_ADDRESS_TL_LIMIT   0xFFFF

Definition at line 833 of file smdefs.h.

◆ BIT4_MASK

#define BIT4_MASK   0x10

Definition at line 339 of file smdefs.h.

◆ BIT5_MASK

#define BIT5_MASK   0x20

Definition at line 340 of file smdefs.h.

◆ BIT6_MASK

#define BIT6_MASK   0x40

Definition at line 341 of file smdefs.h.

◆ BIT7_MASK

#define BIT7_MASK   0x80

Definition at line 342 of file smdefs.h.

◆ BSY_ATA_STATUS_MASK

#define BSY_ATA_STATUS_MASK   0x80 /* Busy bit */

Definition at line 116 of file smdefs.h.

◆ DEFAULT_KEY_BUFFER_SIZE

#define DEFAULT_KEY_BUFFER_SIZE   64

Definition at line 847 of file smdefs.h.

◆ DF_ATA_STATUS_MASK

#define DF_ATA_STATUS_MASK   0x20 /* Device Fault bit */

Definition at line 114 of file smdefs.h.

◆ DRDY_ATA_STATUS_MASK

#define DRDY_ATA_STATUS_MASK   0x40 /* Device Ready bit */

Definition at line 115 of file smdefs.h.

◆ DRQ_ATA_STATUS_MASK

#define DRQ_ATA_STATUS_MASK   0x08 /* Data Request bit */

Definition at line 113 of file smdefs.h.

◆ ERR_ATA_STATUS_MASK

#define ERR_ATA_STATUS_MASK   0x01 /* Error/check bit */

Definition at line 112 of file smdefs.h.

◆ ICRC_ATA_ERROR_MASK

#define ICRC_ATA_ERROR_MASK   0x80 /* Interface CRC error bit */

Definition at line 127 of file smdefs.h.

◆ IDNF_ATA_ERROR_MASK

#define IDNF_ATA_ERROR_MASK   0x10 /* Address not found bit */

Definition at line 124 of file smdefs.h.

◆ INFORMATION_EXCEPTIONS_LOG_PAGE_LENGTH

#define INFORMATION_EXCEPTIONS_LOG_PAGE_LENGTH   11

Definition at line 320 of file smdefs.h.

◆ INQUIRY_ATA_INFORMATION_VPD_PAGE

#define INQUIRY_ATA_INFORMATION_VPD_PAGE   0x89

Definition at line 217 of file smdefs.h.

◆ INQUIRY_BLOCK_DEVICE_CHARACTERISTICS_VPD_PAGE

#define INQUIRY_BLOCK_DEVICE_CHARACTERISTICS_VPD_PAGE   0xB1

Definition at line 218 of file smdefs.h.

◆ INQUIRY_DEVICE_IDENTIFICATION_VPD_PAGE

#define INQUIRY_DEVICE_IDENTIFICATION_VPD_PAGE   0x83

Definition at line 216 of file smdefs.h.

◆ INQUIRY_SUPPORTED_VPD_PAGE

#define INQUIRY_SUPPORTED_VPD_PAGE   0x00

Definition at line 214 of file smdefs.h.

◆ INQUIRY_UNIT_SERIAL_NUMBER_VPD_PAGE

#define INQUIRY_UNIT_SERIAL_NUMBER_VPD_PAGE   0x80

Definition at line 215 of file smdefs.h.

◆ LOG_SENSE_0

#define LOG_SENSE_0   0

Definition at line 323 of file smdefs.h.

◆ LOG_SENSE_1

#define LOG_SENSE_1   1

Definition at line 324 of file smdefs.h.

◆ LOG_SENSE_2

#define LOG_SENSE_2   2

Definition at line 325 of file smdefs.h.

◆ LOGSENSE_INFORMATION_EXCEPTIONS_PAGE

#define LOGSENSE_INFORMATION_EXCEPTIONS_PAGE   0x2F

Definition at line 236 of file smdefs.h.

◆ LOGSENSE_SELFTEST_RESULTS_PAGE

#define LOGSENSE_SELFTEST_RESULTS_PAGE   0x10

Definition at line 235 of file smdefs.h.

◆ LOGSENSE_SUPPORTED_LOG_PAGES

#define LOGSENSE_SUPPORTED_LOG_PAGES   0x00

Definition at line 234 of file smdefs.h.

◆ MAX

#define MAX (   a,
 
)    ((a) < (b) ? (b) : (a))

MAX macro.

use to find MAX of two values

Definition at line 511 of file smdefs.h.

◆ MC_ATA_ERROR_MASK

#define MC_ATA_ERROR_MASK   0x20 /* Media has changed bit */

Definition at line 125 of file smdefs.h.

◆ MCR_ATA_ERROR_MASK

#define MCR_ATA_ERROR_MASK   0x08 /* Media change request bit */

Definition at line 123 of file smdefs.h.

◆ MIN

#define MIN (   a,
 
)    ((a) < (b) ? (a) : (b))

MIN macro.

use to find MIN of two values

Definition at line 502 of file smdefs.h.

◆ MODE_SENSE10_CACHING_LEN

#define MODE_SENSE10_CACHING_LEN   32 + 4

Definition at line 354 of file smdefs.h.

◆ MODE_SENSE10_CACHING_LLBAA_LEN

#define MODE_SENSE10_CACHING_LLBAA_LEN   32 + 4 + 8

Definition at line 360 of file smdefs.h.

◆ MODE_SENSE10_CONTROL_PAGE_LEN

#define MODE_SENSE10_CONTROL_PAGE_LEN   24 + 4

Definition at line 352 of file smdefs.h.

◆ MODE_SENSE10_CONTROL_PAGE_LLBAA_LEN

#define MODE_SENSE10_CONTROL_PAGE_LLBAA_LEN   24 + 4 + 8

Definition at line 358 of file smdefs.h.

◆ MODE_SENSE10_INFORMATION_EXCEPTION_CONTROL_PAGE_LEN

#define MODE_SENSE10_INFORMATION_EXCEPTION_CONTROL_PAGE_LEN   24 + 4

Definition at line 355 of file smdefs.h.

◆ MODE_SENSE10_INFORMATION_EXCEPTION_CONTROL_PAGE_LLBAA_LEN

#define MODE_SENSE10_INFORMATION_EXCEPTION_CONTROL_PAGE_LLBAA_LEN   24 + 4 + 8

Definition at line 361 of file smdefs.h.

◆ MODE_SENSE10_READ_WRITE_ERROR_RECOVERY_PAGE_LEN

#define MODE_SENSE10_READ_WRITE_ERROR_RECOVERY_PAGE_LEN   24 + 4

Definition at line 353 of file smdefs.h.

◆ MODE_SENSE10_READ_WRITE_ERROR_RECOVERY_PAGE_LLBAA_LEN

#define MODE_SENSE10_READ_WRITE_ERROR_RECOVERY_PAGE_LLBAA_LEN   24 + 4 + 8

Definition at line 359 of file smdefs.h.

◆ MODE_SENSE10_RETURN_ALL_PAGES_LEN

#define MODE_SENSE10_RETURN_ALL_PAGES_LEN   68 + 4

Definition at line 351 of file smdefs.h.

◆ MODE_SENSE10_RETURN_ALL_PAGES_LLBAA_LEN

#define MODE_SENSE10_RETURN_ALL_PAGES_LLBAA_LEN   68 + 4 + 8

Definition at line 357 of file smdefs.h.

◆ MODE_SENSE6_CACHING_LEN

#define MODE_SENSE6_CACHING_LEN   32

Definition at line 347 of file smdefs.h.

◆ MODE_SENSE6_CONTROL_PAGE_LEN

#define MODE_SENSE6_CONTROL_PAGE_LEN   24

Definition at line 345 of file smdefs.h.

◆ MODE_SENSE6_INFORMATION_EXCEPTION_CONTROL_PAGE_LEN

#define MODE_SENSE6_INFORMATION_EXCEPTION_CONTROL_PAGE_LEN   24

Definition at line 348 of file smdefs.h.

◆ MODE_SENSE6_READ_WRITE_ERROR_RECOVERY_PAGE_LEN

#define MODE_SENSE6_READ_WRITE_ERROR_RECOVERY_PAGE_LEN   24

Definition at line 346 of file smdefs.h.

◆ MODE_SENSE6_RETURN_ALL_PAGES_LEN

#define MODE_SENSE6_RETURN_ALL_PAGES_LEN   68

Definition at line 344 of file smdefs.h.

◆ MODESELECT_CACHING

#define MODESELECT_CACHING   0x08

Definition at line 229 of file smdefs.h.

◆ MODESELECT_CONTROL_PAGE

#define MODESELECT_CONTROL_PAGE   0x0A

Definition at line 227 of file smdefs.h.

◆ MODESELECT_INFORMATION_EXCEPTION_CONTROL_PAGE

#define MODESELECT_INFORMATION_EXCEPTION_CONTROL_PAGE   0x1C

Definition at line 230 of file smdefs.h.

◆ MODESELECT_READ_WRITE_ERROR_RECOVERY_PAGE

#define MODESELECT_READ_WRITE_ERROR_RECOVERY_PAGE   0x01

Definition at line 228 of file smdefs.h.

◆ MODESELECT_RETURN_ALL_PAGES

#define MODESELECT_RETURN_ALL_PAGES   0x3F

Definition at line 231 of file smdefs.h.

◆ MODESELECT_VENDOR_SPECIFIC_PAGE

#define MODESELECT_VENDOR_SPECIFIC_PAGE   0x00

Definition at line 232 of file smdefs.h.

◆ MODESENSE_CACHING

#define MODESENSE_CACHING   0x08

Definition at line 222 of file smdefs.h.

◆ MODESENSE_CONTROL_PAGE

#define MODESENSE_CONTROL_PAGE   0x0A

Definition at line 220 of file smdefs.h.

◆ MODESENSE_INFORMATION_EXCEPTION_CONTROL_PAGE

#define MODESENSE_INFORMATION_EXCEPTION_CONTROL_PAGE   0x1C

Definition at line 223 of file smdefs.h.

◆ MODESENSE_READ_WRITE_ERROR_RECOVERY_PAGE

#define MODESENSE_READ_WRITE_ERROR_RECOVERY_PAGE   0x01

Definition at line 221 of file smdefs.h.

◆ MODESENSE_RETURN_ALL_PAGES

#define MODESENSE_RETURN_ALL_PAGES   0x3F

Definition at line 224 of file smdefs.h.

◆ MODESENSE_VENDOR_SPECIFIC_PAGE

#define MODESENSE_VENDOR_SPECIFIC_PAGE   0x00

Definition at line 225 of file smdefs.h.

◆ NM_ATA_ERROR_MASK

#define NM_ATA_ERROR_MASK   0x02 /* No media present bit */

Definition at line 121 of file smdefs.h.

◆ NON_BIT48_ADDRESS_TL_LIMIT

#define NON_BIT48_ADDRESS_TL_LIMIT   0x100

Definition at line 831 of file smdefs.h.

◆ OPEN_RETRY_RETRIES

#define OPEN_RETRY_RETRIES   10

Definition at line 571 of file smdefs.h.

◆ OSSA_OFFSET_OF

#define OSSA_OFFSET_OF (   STRUCT_TYPE,
  FEILD 
)     (bitptr)&(((STRUCT_TYPE *)0)->FEILD)

Definition at line 579 of file smdefs.h.

◆ PIO_SETUP_DEV_TO_HOST_FIS

#define PIO_SETUP_DEV_TO_HOST_FIS   0x5F

Definition at line 62 of file smdefs.h.

◆ READ_BUFFER_DATA_MODE

#define READ_BUFFER_DATA_MODE   0x02

Definition at line 327 of file smdefs.h.

◆ READ_BUFFER_DESCRIPTOR_MODE

#define READ_BUFFER_DESCRIPTOR_MODE   0x03

Definition at line 328 of file smdefs.h.

◆ READ_BUFFER_DESCRIPTOR_MODE_DATA_LEN

#define READ_BUFFER_DESCRIPTOR_MODE_DATA_LEN   0x04

Definition at line 329 of file smdefs.h.

◆ REG_DEV_TO_HOST_FIS

#define REG_DEV_TO_HOST_FIS   0x34

Definition at line 63 of file smdefs.h.

◆ SAT_APAPI_CMDQ_MAX

#define SAT_APAPI_CMDQ_MAX   2

Definition at line 551 of file smdefs.h.

◆ SAT_CHECK_POWER_MODE

#define SAT_CHECK_POWER_MODE   0xE5

Definition at line 76 of file smdefs.h.

◆ SAT_DEV_STATE_FORMAT_IN_PROGRESS

#define SAT_DEV_STATE_FORMAT_IN_PROGRESS   2 /* Format unit in progress */

Definition at line 556 of file smdefs.h.

◆ SAT_DEV_STATE_IN_RECOVERY

#define SAT_DEV_STATE_IN_RECOVERY   1 /* SAT in recovery mode */

Definition at line 555 of file smdefs.h.

◆ SAT_DEV_STATE_LOW_POWER

#define SAT_DEV_STATE_LOW_POWER   4 /* Low Power State*/

Definition at line 558 of file smdefs.h.

◆ SAT_DEV_STATE_NORMAL

#define SAT_DEV_STATE_NORMAL   0 /* Normal */

Definition at line 554 of file smdefs.h.

◆ SAT_DEV_STATE_SMART_THRESHOLD

#define SAT_DEV_STATE_SMART_THRESHOLD   3 /* SMART Threshold Exceeded Condition*/

Definition at line 557 of file smdefs.h.

◆ SAT_DEVICE_RESET

#define SAT_DEVICE_RESET   0x08

Definition at line 105 of file smdefs.h.

◆ SAT_EXECUTE_DEVICE_DIAGNOSTIC

#define SAT_EXECUTE_DEVICE_DIAGNOSTIC   0x90

Definition at line 106 of file smdefs.h.

◆ SAT_EXT_TR_LBA_LIMIT

#define SAT_EXT_TR_LBA_LIMIT   0x1000000000000

Definition at line 144 of file smdefs.h.

◆ SAT_EXT_TYPE

#define SAT_EXT_TYPE   1

Definition at line 151 of file smdefs.h.

◆ SAT_FLUSH_CACHE

#define SAT_FLUSH_CACHE   0xE7

Definition at line 86 of file smdefs.h.

◆ SAT_FLUSH_CACHE_EXT

#define SAT_FLUSH_CACHE_EXT   0xEA

Definition at line 87 of file smdefs.h.

◆ SAT_FP_TYPE

#define SAT_FP_TYPE   2

Definition at line 152 of file smdefs.h.

◆ SAT_GET_MEDIA_STATUS

#define SAT_GET_MEDIA_STATUS   0xDA

Definition at line 94 of file smdefs.h.

◆ SAT_IDENTIFY_DEVICE

#define SAT_IDENTIFY_DEVICE   0xEC

Definition at line 96 of file smdefs.h.

◆ SAT_IDENTIFY_PACKET_DEVICE

#define SAT_IDENTIFY_PACKET_DEVICE   0xA1

Definition at line 103 of file smdefs.h.

◆ SAT_MAX_INT_IO

#define SAT_MAX_INT_IO   16

Definition at line 550 of file smdefs.h.

◆ SAT_MEDIA_EJECT

#define SAT_MEDIA_EJECT   0xED

Definition at line 89 of file smdefs.h.

◆ SAT_NCQ_MAX

#define SAT_NCQ_MAX   32

Definition at line 549 of file smdefs.h.

◆ SAT_NON_EXT_TYPE

#define SAT_NON_EXT_TYPE   0

Definition at line 150 of file smdefs.h.

◆ SAT_NONNCQ_MAX

#define SAT_NONNCQ_MAX   1

Definition at line 548 of file smdefs.h.

◆ SAT_PACKET

#define SAT_PACKET   0xA0

Definition at line 104 of file smdefs.h.

◆ SAT_READ_BUFFER

#define SAT_READ_BUFFER   0xE4

Definition at line 97 of file smdefs.h.

◆ SAT_READ_DMA

#define SAT_READ_DMA   0xC8

Definition at line 71 of file smdefs.h.

◆ SAT_READ_DMA_EXT

#define SAT_READ_DMA_EXT   0x25

Definition at line 70 of file smdefs.h.

◆ SAT_READ_FPDMA_QUEUED

#define SAT_READ_FPDMA_QUEUED   0x60

Definition at line 69 of file smdefs.h.

◆ SAT_READ_LOG_EXT

#define SAT_READ_LOG_EXT   0x2F

Definition at line 77 of file smdefs.h.

◆ SAT_READ_SECTORS

#define SAT_READ_SECTORS   0x20

Definition at line 92 of file smdefs.h.

◆ SAT_READ_SECTORS_EXT

#define SAT_READ_SECTORS_EXT   0x24

Definition at line 93 of file smdefs.h.

◆ SAT_READ_VERIFY_SECTORS

#define SAT_READ_VERIFY_SECTORS   0x40

Definition at line 78 of file smdefs.h.

◆ SAT_READ_VERIFY_SECTORS_EXT

#define SAT_READ_VERIFY_SECTORS_EXT   0x42

Definition at line 79 of file smdefs.h.

◆ SAT_SET_FEATURES

#define SAT_SET_FEATURES   0xEF

Definition at line 95 of file smdefs.h.

◆ SAT_SMART

#define SAT_SMART   0xB0

Definition at line 80 of file smdefs.h.

◆ SAT_SMART_DISABLE_OPERATIONS

#define SAT_SMART_DISABLE_OPERATIONS   0xD9

Definition at line 85 of file smdefs.h.

◆ SAT_SMART_ENABLE_OPERATIONS

#define SAT_SMART_ENABLE_OPERATIONS   0xD8

Definition at line 84 of file smdefs.h.

◆ SAT_SMART_EXEUTE_OFF_LINE_IMMEDIATE

#define SAT_SMART_EXEUTE_OFF_LINE_IMMEDIATE   0xD4

Definition at line 81 of file smdefs.h.

◆ SAT_SMART_READ_LOG

#define SAT_SMART_READ_LOG   0xD5

Definition at line 83 of file smdefs.h.

◆ SAT_SMART_RETURN_STATUS

#define SAT_SMART_RETURN_STATUS   0xDA

Definition at line 82 of file smdefs.h.

◆ SAT_STANDBY

#define SAT_STANDBY   0xE2

Definition at line 88 of file smdefs.h.

◆ SAT_TR_LBA_LIMIT

#define SAT_TR_LBA_LIMIT   0x10000000

Definition at line 137 of file smdefs.h.

◆ SAT_WRITE_BUFFER

#define SAT_WRITE_BUFFER   0xE8

Definition at line 98 of file smdefs.h.

◆ SAT_WRITE_DMA

#define SAT_WRITE_DMA   0xCA

Definition at line 75 of file smdefs.h.

◆ SAT_WRITE_DMA_EXT

#define SAT_WRITE_DMA_EXT   0x35

Definition at line 73 of file smdefs.h.

◆ SAT_WRITE_DMA_FUA_EXT

#define SAT_WRITE_DMA_FUA_EXT   0x3D

Definition at line 74 of file smdefs.h.

◆ SAT_WRITE_FPDMA_QUEUED

#define SAT_WRITE_FPDMA_QUEUED   0x61

Definition at line 72 of file smdefs.h.

◆ SAT_WRITE_SECTORS

#define SAT_WRITE_SECTORS   0x30

Definition at line 90 of file smdefs.h.

◆ SAT_WRITE_SECTORS_EXT

#define SAT_WRITE_SECTORS_EXT   0x34

Definition at line 91 of file smdefs.h.

◆ SATA_ATA_DEVICE

#define SATA_ATA_DEVICE   0x01

ATA ATA device type

Definition at line 52 of file smdefs.h.

◆ SATA_ATAPI_DEVICE

#define SATA_ATAPI_DEVICE   0x02

ATA ATAPI device type

Definition at line 53 of file smdefs.h.

◆ SATA_PAGE0_INQUIRY_SIZE

#define SATA_PAGE0_INQUIRY_SIZE   9 /* SPC-4, 7.6.9 Table331, p345 */

Definition at line 434 of file smdefs.h.

◆ SATA_PAGE80_INQUIRY_SIZE

#define SATA_PAGE80_INQUIRY_SIZE   24 /* SAT, revision8, Table79, p77 */

Definition at line 435 of file smdefs.h.

◆ SATA_PAGE83_INQUIRY_NO_WWN_SIZE

#define SATA_PAGE83_INQUIRY_NO_WWN_SIZE   76 /* SAT, revision8, Table81, p78, 72 + 4 */

Definition at line 432 of file smdefs.h.

◆ SATA_PAGE83_INQUIRY_WWN_SIZE

#define SATA_PAGE83_INQUIRY_WWN_SIZE   16 /* SAT, revision8, Table81, p78, 12 + 4 */

Definition at line 431 of file smdefs.h.

◆ SATA_PAGE89_INQUIRY_SIZE

#define SATA_PAGE89_INQUIRY_SIZE   572 /* SAT, revision8, Table87, p84 */

Definition at line 433 of file smdefs.h.

◆ SATA_PAGEB1_INQUIRY_SIZE

#define SATA_PAGEB1_INQUIRY_SIZE   64 /* SBC-3, revision31, Table193, p273 */

Definition at line 436 of file smdefs.h.

◆ SATA_PM_DEVICE

#define SATA_PM_DEVICE   0x03

ATA PM device type

Definition at line 54 of file smdefs.h.

◆ SATA_SECTOR_SIZE

#define SATA_SECTOR_SIZE   0x200

Definition at line 828 of file smdefs.h.

◆ SATA_SEMB_DEVICE

#define SATA_SEMB_DEVICE   0x04

ATA SEMB device type

Definition at line 55 of file smdefs.h.

◆ SATA_SEMB_WO_SEP_DEVICE

#define SATA_SEMB_WO_SEP_DEVICE   0x05

ATA SEMB without SEP device type

Definition at line 56 of file smdefs.h.

◆ SCSI_ASC_NOTREADY_INIT_CMD_REQ

#define SCSI_ASC_NOTREADY_INIT_CMD_REQ   0x04

Definition at line 421 of file smdefs.h.

◆ SCSI_ASCQ_NOTREADY_INIT_CMD_REQ

#define SCSI_ASCQ_NOTREADY_INIT_CMD_REQ   0x02

Definition at line 422 of file smdefs.h.

◆ SCSI_DEVOFFL_MASK

#define SCSI_DEVOFFL_MASK   0x02

Definition at line 247 of file smdefs.h.

◆ SCSI_EVPD_MASK

#define SCSI_EVPD_MASK   0x01

Definition at line 242 of file smdefs.h.

◆ SCSI_FLUSH_CACHE_IMMED_MASK

#define SCSI_FLUSH_CACHE_IMMED_MASK   0x02

Definition at line 252 of file smdefs.h.

◆ SCSI_FORMAT_UNIT_CMPLIST_MASK

#define SCSI_FORMAT_UNIT_CMPLIST_MASK   0x08

Definition at line 267 of file smdefs.h.

◆ SCSI_FORMAT_UNIT_DCRT_MASK [1/2]

#define SCSI_FORMAT_UNIT_DCRT_MASK   0x20

Definition at line 266 of file smdefs.h.

◆ SCSI_FORMAT_UNIT_DCRT_MASK [2/2]

#define SCSI_FORMAT_UNIT_DCRT_MASK   0x20

Definition at line 266 of file smdefs.h.

◆ SCSI_FORMAT_UNIT_DEFECT_LIST_FORMAT_MASK

#define SCSI_FORMAT_UNIT_DEFECT_LIST_FORMAT_MASK   0x07

Definition at line 264 of file smdefs.h.

◆ SCSI_FORMAT_UNIT_FMTDATA_MASK

#define SCSI_FORMAT_UNIT_FMTDATA_MASK   0x10

Definition at line 265 of file smdefs.h.

◆ SCSI_FORMAT_UNIT_FOV_MASK

#define SCSI_FORMAT_UNIT_FOV_MASK   0x80

Definition at line 256 of file smdefs.h.

◆ SCSI_FORMAT_UNIT_IMMED_MASK

#define SCSI_FORMAT_UNIT_IMMED_MASK   0x02

Definition at line 255 of file smdefs.h.

◆ SCSI_FORMAT_UNIT_IP_MASK

#define SCSI_FORMAT_UNIT_IP_MASK   0x08

Definition at line 258 of file smdefs.h.

◆ SCSI_FORMAT_UNIT_LONGLIST_MASK

#define SCSI_FORMAT_UNIT_LONGLIST_MASK   0x20

Definition at line 268 of file smdefs.h.

◆ SCSI_FUA_NV_MASK

#define SCSI_FUA_NV_MASK   0x02

Definition at line 253 of file smdefs.h.

◆ SCSI_IMMED_MASK

#define SCSI_IMMED_MASK   0x01

Definition at line 243 of file smdefs.h.

◆ SCSI_LINK_MASK

#define SCSI_LINK_MASK   0x01

Definition at line 245 of file smdefs.h.

◆ SCSI_LOEJ_MASK

#define SCSI_LOEJ_MASK   0x02

Definition at line 250 of file smdefs.h.

◆ SCSI_LOG_SENSE_PAGE_CODE_MASK

#define SCSI_LOG_SENSE_PAGE_CODE_MASK   0x3F

Definition at line 283 of file smdefs.h.

◆ SCSI_MODE_SELECT10_AWRE_MASK

#define SCSI_MODE_SELECT10_AWRE_MASK   0x80

Definition at line 298 of file smdefs.h.

◆ SCSI_MODE_SELECT10_DCR_MASK

#define SCSI_MODE_SELECT10_DCR_MASK   0x01

Definition at line 303 of file smdefs.h.

◆ SCSI_MODE_SELECT10_DEXCPT_MASK

#define SCSI_MODE_SELECT10_DEXCPT_MASK   0x08

Definition at line 308 of file smdefs.h.

◆ SCSI_MODE_SELECT10_DRA_MASK

#define SCSI_MODE_SELECT10_DRA_MASK   0x20

Definition at line 305 of file smdefs.h.

◆ SCSI_MODE_SELECT10_DTE_MASK

#define SCSI_MODE_SELECT10_DTE_MASK   0x02

Definition at line 302 of file smdefs.h.

◆ SCSI_MODE_SELECT10_EER_MASK

#define SCSI_MODE_SELECT10_EER_MASK   0x08

Definition at line 300 of file smdefs.h.

◆ SCSI_MODE_SELECT10_LONGLBA_MASK

#define SCSI_MODE_SELECT10_LONGLBA_MASK   0x01

Definition at line 297 of file smdefs.h.

◆ SCSI_MODE_SELECT10_PER_MASK

#define SCSI_MODE_SELECT10_PER_MASK   0x04

Definition at line 301 of file smdefs.h.

◆ SCSI_MODE_SELECT10_PERF_MASK

#define SCSI_MODE_SELECT10_PERF_MASK   0x80

Definition at line 306 of file smdefs.h.

◆ SCSI_MODE_SELECT10_PF_MASK

#define SCSI_MODE_SELECT10_PF_MASK   0x10

Definition at line 296 of file smdefs.h.

◆ SCSI_MODE_SELECT10_RC_MASK

#define SCSI_MODE_SELECT10_RC_MASK   0x10

Definition at line 299 of file smdefs.h.

◆ SCSI_MODE_SELECT10_TEST_MASK

#define SCSI_MODE_SELECT10_TEST_MASK   0x04

Definition at line 307 of file smdefs.h.

◆ SCSI_MODE_SELECT10_WCE_MASK

#define SCSI_MODE_SELECT10_WCE_MASK   0x04

Definition at line 304 of file smdefs.h.

◆ SCSI_MODE_SELECT6_AWRE_MASK

#define SCSI_MODE_SELECT6_AWRE_MASK   0x80

Definition at line 285 of file smdefs.h.

◆ SCSI_MODE_SELECT6_DCR_MASK

#define SCSI_MODE_SELECT6_DCR_MASK   0x01

Definition at line 290 of file smdefs.h.

◆ SCSI_MODE_SELECT6_DEXCPT_MASK

#define SCSI_MODE_SELECT6_DEXCPT_MASK   0x08

Definition at line 295 of file smdefs.h.

◆ SCSI_MODE_SELECT6_DRA_MASK

#define SCSI_MODE_SELECT6_DRA_MASK   0x20

Definition at line 292 of file smdefs.h.

◆ SCSI_MODE_SELECT6_DTE_MASK

#define SCSI_MODE_SELECT6_DTE_MASK   0x02

Definition at line 289 of file smdefs.h.

◆ SCSI_MODE_SELECT6_EER_MASK

#define SCSI_MODE_SELECT6_EER_MASK   0x08

Definition at line 287 of file smdefs.h.

◆ SCSI_MODE_SELECT6_PER_MASK

#define SCSI_MODE_SELECT6_PER_MASK   0x04

Definition at line 288 of file smdefs.h.

◆ SCSI_MODE_SELECT6_PERF_MASK

#define SCSI_MODE_SELECT6_PERF_MASK   0x80

Definition at line 293 of file smdefs.h.

◆ SCSI_MODE_SELECT6_PF_MASK

#define SCSI_MODE_SELECT6_PF_MASK   0x10

Definition at line 284 of file smdefs.h.

◆ SCSI_MODE_SELECT6_RC_MASK

#define SCSI_MODE_SELECT6_RC_MASK   0x10

Definition at line 286 of file smdefs.h.

◆ SCSI_MODE_SELECT6_TEST_MASK

#define SCSI_MODE_SELECT6_TEST_MASK   0x04

Definition at line 294 of file smdefs.h.

◆ SCSI_MODE_SELECT6_WCE_MASK

#define SCSI_MODE_SELECT6_WCE_MASK   0x04

Definition at line 291 of file smdefs.h.

◆ SCSI_MODE_SENSE10_LLBAA_MASK

#define SCSI_MODE_SENSE10_LLBAA_MASK   0x10

Definition at line 280 of file smdefs.h.

◆ SCSI_MODE_SENSE10_PAGE_CODE_MASK

#define SCSI_MODE_SENSE10_PAGE_CODE_MASK   0x3F

Definition at line 281 of file smdefs.h.

◆ SCSI_MODE_SENSE10_PC_MASK

#define SCSI_MODE_SENSE10_PC_MASK   0xC0

Definition at line 279 of file smdefs.h.

◆ SCSI_MODE_SENSE6_PAGE_CODE_MASK

#define SCSI_MODE_SENSE6_PAGE_CODE_MASK   0x3F

Definition at line 278 of file smdefs.h.

◆ SCSI_MODE_SENSE6_PC_MASK

#define SCSI_MODE_SENSE6_PC_MASK   0xC0

Definition at line 277 of file smdefs.h.

◆ SCSI_NACA_MASK

#define SCSI_NACA_MASK   0x04

Definition at line 244 of file smdefs.h.

◆ SCSI_NM_MASK

#define SCSI_NM_MASK   0x02

Definition at line 251 of file smdefs.h.

◆ SCSI_PF_MASK

#define SCSI_PF_MASK   0x10

Definition at line 246 of file smdefs.h.

◆ SCSI_READ10_FUA_MASK

#define SCSI_READ10_FUA_MASK   0x08

Definition at line 269 of file smdefs.h.

◆ SCSI_READ12_FUA_MASK

#define SCSI_READ12_FUA_MASK   0x08

Definition at line 270 of file smdefs.h.

◆ SCSI_READ16_FUA_MASK

#define SCSI_READ16_FUA_MASK   0x08

Definition at line 271 of file smdefs.h.

◆ SCSI_READ_BUFFER_MODE_MASK

#define SCSI_READ_BUFFER_MODE_MASK   0x1F

Definition at line 311 of file smdefs.h.

◆ SCSI_READ_CAPACITY10_PMI_MASK

#define SCSI_READ_CAPACITY10_PMI_MASK   0x01

Definition at line 275 of file smdefs.h.

◆ SCSI_READ_CAPACITY16_PMI_MASK

#define SCSI_READ_CAPACITY16_PMI_MASK   0x01

Definition at line 276 of file smdefs.h.

◆ SCSI_REASSIGN_BLOCKS_LONGLBA_MASK

#define SCSI_REASSIGN_BLOCKS_LONGLBA_MASK   0x02

Definition at line 315 of file smdefs.h.

◆ SCSI_REASSIGN_BLOCKS_LONGLIST_MASK

#define SCSI_REASSIGN_BLOCKS_LONGLIST_MASK   0x01

Definition at line 314 of file smdefs.h.

◆ SCSI_REQUEST_SENSE_DESC_MASK

#define SCSI_REQUEST_SENSE_DESC_MASK   0x01

Definition at line 310 of file smdefs.h.

◆ SCSI_SEND_DIAGNOSTIC_SELFTEST_MASK

#define SCSI_SEND_DIAGNOSTIC_SELFTEST_MASK   0x04

Definition at line 263 of file smdefs.h.

◆ SCSI_SEND_DIAGNOSTIC_TEST_CODE_MASK

#define SCSI_SEND_DIAGNOSTIC_TEST_CODE_MASK   0xE0

Definition at line 282 of file smdefs.h.

◆ SCSI_SNSCODE_ATA_DEVICE_FAILED_SET_FEATURES

#define SCSI_SNSCODE_ATA_DEVICE_FAILED_SET_FEATURES   0x4471

Definition at line 402 of file smdefs.h.

◆ SCSI_SNSCODE_ATA_DEVICE_FEATURE_NOT_ENABLED

#define SCSI_SNSCODE_ATA_DEVICE_FEATURE_NOT_ENABLED   0x670B

Definition at line 403 of file smdefs.h.

◆ SCSI_SNSCODE_ATA_PASS_THROUGH_INFORMATION_AVAILABLE

#define SCSI_SNSCODE_ATA_PASS_THROUGH_INFORMATION_AVAILABLE   0x001D

Definition at line 415 of file smdefs.h.

◆ SCSI_SNSCODE_COMMAND_SEQUENCE_ERROR

#define SCSI_SNSCODE_COMMAND_SEQUENCE_ERROR   0x2C00

Definition at line 405 of file smdefs.h.

◆ SCSI_SNSCODE_COMMANDS_CLEARED_BY_ANOTHER_INITIATOR

#define SCSI_SNSCODE_COMMANDS_CLEARED_BY_ANOTHER_INITIATOR   0x2F00

Definition at line 413 of file smdefs.h.

◆ SCSI_SNSCODE_DIAGNOSTIC_FAILURE_ON_COMPONENT_NN

#define SCSI_SNSCODE_DIAGNOSTIC_FAILURE_ON_COMPONENT_NN   0x4000

Definition at line 412 of file smdefs.h.

◆ SCSI_SNSCODE_EVERLAPPED_CMDS

#define SCSI_SNSCODE_EVERLAPPED_CMDS   0x4e00

Definition at line 389 of file smdefs.h.

◆ SCSI_SNSCODE_HARDWARE_IMPENDING_FAILURE

#define SCSI_SNSCODE_HARDWARE_IMPENDING_FAILURE   0x5d10

Definition at line 398 of file smdefs.h.

◆ SCSI_SNSCODE_INFORMATION_UNIT_CRC_ERROR

#define SCSI_SNSCODE_INFORMATION_UNIT_CRC_ERROR   0x4703

Definition at line 396 of file smdefs.h.

◆ SCSI_SNSCODE_INTERNAL_TARGET_FAILURE

#define SCSI_SNSCODE_INTERNAL_TARGET_FAILURE   0x4400

Definition at line 390 of file smdefs.h.

◆ SCSI_SNSCODE_INVALID_COMMAND

#define SCSI_SNSCODE_INVALID_COMMAND   0x2000

Definition at line 384 of file smdefs.h.

◆ SCSI_SNSCODE_INVALID_FIELD_IN_CDB

#define SCSI_SNSCODE_INVALID_FIELD_IN_CDB   0x2400

Definition at line 386 of file smdefs.h.

◆ SCSI_SNSCODE_INVALID_FIELD_PARAMETER_LIST

#define SCSI_SNSCODE_INVALID_FIELD_PARAMETER_LIST   0x2600

Definition at line 401 of file smdefs.h.

◆ SCSI_SNSCODE_LOGICAL_BLOCK_ADDRESS_OUT_OF_RANGE

#define SCSI_SNSCODE_LOGICAL_BLOCK_ADDRESS_OUT_OF_RANGE   0x2100

Definition at line 406 of file smdefs.h.

◆ SCSI_SNSCODE_LOGICAL_BLOCK_OUT

#define SCSI_SNSCODE_LOGICAL_BLOCK_OUT   0x2100

Definition at line 385 of file smdefs.h.

◆ SCSI_SNSCODE_LOGICAL_NOT_SUPPORTED

#define SCSI_SNSCODE_LOGICAL_NOT_SUPPORTED   0x2500

Definition at line 387 of file smdefs.h.

◆ SCSI_SNSCODE_LOGICAL_UNIT_DOES_NOT_RESPOND_TO_SELECTION

#define SCSI_SNSCODE_LOGICAL_UNIT_DOES_NOT_RESPOND_TO_SELECTION   0x0500

Definition at line 411 of file smdefs.h.

◆ SCSI_SNSCODE_LOGICAL_UNIT_FAILED_SELF_TEST

#define SCSI_SNSCODE_LOGICAL_UNIT_FAILED_SELF_TEST   0x3E03

Definition at line 404 of file smdefs.h.

◆ SCSI_SNSCODE_LOGICAL_UNIT_FAILURE

#define SCSI_SNSCODE_LOGICAL_UNIT_FAILURE   0x3E01

Definition at line 407 of file smdefs.h.

◆ SCSI_SNSCODE_LOGICAL_UNIT_NOT_READY_CAUSE_NOT_REPORTABLE

#define SCSI_SNSCODE_LOGICAL_UNIT_NOT_READY_CAUSE_NOT_REPORTABLE   0x0400

Definition at line 410 of file smdefs.h.

◆ SCSI_SNSCODE_LOGICAL_UNIT_NOT_READY_FORMAT_IN_PROGRESS

#define SCSI_SNSCODE_LOGICAL_UNIT_NOT_READY_FORMAT_IN_PROGRESS   0x0404

Definition at line 397 of file smdefs.h.

◆ SCSI_SNSCODE_LOGICAL_UNIT_NOT_READY_INIT_REQUIRED

#define SCSI_SNSCODE_LOGICAL_UNIT_NOT_READY_INIT_REQUIRED   0x0402

Definition at line 400 of file smdefs.h.

◆ SCSI_SNSCODE_LOGICAL_UNIT_NOT_READY_INITIALIZING_COMMAND_REQUIRED

#define SCSI_SNSCODE_LOGICAL_UNIT_NOT_READY_INITIALIZING_COMMAND_REQUIRED   0x0402

Definition at line 409 of file smdefs.h.

◆ SCSI_SNSCODE_LOW_POWER_CONDITION_ON

#define SCSI_SNSCODE_LOW_POWER_CONDITION_ON   0x5e00

Definition at line 399 of file smdefs.h.

◆ SCSI_SNSCODE_LUN_CRC_ERROR_DETECTED

#define SCSI_SNSCODE_LUN_CRC_ERROR_DETECTED   0x0803

Definition at line 383 of file smdefs.h.

◆ SCSI_SNSCODE_MEDIA_LOAD_OR_EJECT_FAILED

#define SCSI_SNSCODE_MEDIA_LOAD_OR_EJECT_FAILED   0x5300

Definition at line 408 of file smdefs.h.

◆ SCSI_SNSCODE_MEDIUM_NOT_PRESENT

#define SCSI_SNSCODE_MEDIUM_NOT_PRESENT   0x3a00

Definition at line 391 of file smdefs.h.

◆ SCSI_SNSCODE_NO_ADDITIONAL_INFO

#define SCSI_SNSCODE_NO_ADDITIONAL_INFO   0x0000

Definition at line 382 of file smdefs.h.

◆ SCSI_SNSCODE_NOT_READY_TO_READY_CHANGE

#define SCSI_SNSCODE_NOT_READY_TO_READY_CHANGE   0x2800

Definition at line 394 of file smdefs.h.

◆ SCSI_SNSCODE_OPERATOR_MEDIUM_REMOVAL_REQUEST

#define SCSI_SNSCODE_OPERATOR_MEDIUM_REMOVAL_REQUEST   0x5a01

Definition at line 395 of file smdefs.h.

◆ SCSI_SNSCODE_POWERON_RESET

#define SCSI_SNSCODE_POWERON_RESET   0x2900

Definition at line 388 of file smdefs.h.

◆ SCSI_SNSCODE_RECORD_NOT_FOUND

#define SCSI_SNSCODE_RECORD_NOT_FOUND   0x1401

Definition at line 393 of file smdefs.h.

◆ SCSI_SNSCODE_UNRECOVERED_READ_ERROR

#define SCSI_SNSCODE_UNRECOVERED_READ_ERROR   0x1100

Definition at line 392 of file smdefs.h.

◆ SCSI_SNSCODE_WRITE_ERROR_AUTO_REALLOCATION_FAILED

#define SCSI_SNSCODE_WRITE_ERROR_AUTO_REALLOCATION_FAILED   0x0C02

Definition at line 414 of file smdefs.h.

◆ SCSI_SNSKEY_ABORTED_COMMAND

#define SCSI_SNSKEY_ABORTED_COMMAND   0x0B

Definition at line 375 of file smdefs.h.

◆ SCSI_SNSKEY_DATA_PROTECT

#define SCSI_SNSKEY_DATA_PROTECT   0x07

Definition at line 374 of file smdefs.h.

◆ SCSI_SNSKEY_HARDWARE_ERROR

#define SCSI_SNSKEY_HARDWARE_ERROR   0x04

Definition at line 371 of file smdefs.h.

◆ SCSI_SNSKEY_ILLEGAL_REQUEST

#define SCSI_SNSKEY_ILLEGAL_REQUEST   0x05

Definition at line 372 of file smdefs.h.

◆ SCSI_SNSKEY_MEDIUM_ERROR

#define SCSI_SNSKEY_MEDIUM_ERROR   0x03

Definition at line 370 of file smdefs.h.

◆ SCSI_SNSKEY_MISCOMPARE

#define SCSI_SNSKEY_MISCOMPARE   0x0E

Definition at line 376 of file smdefs.h.

◆ SCSI_SNSKEY_NO_SENSE

#define SCSI_SNSKEY_NO_SENSE   0x00

Definition at line 367 of file smdefs.h.

◆ SCSI_SNSKEY_NOT_READY

#define SCSI_SNSKEY_NOT_READY   0x02

Definition at line 369 of file smdefs.h.

◆ SCSI_SNSKEY_RECOVERED_ERROR

#define SCSI_SNSKEY_RECOVERED_ERROR   0x01

Definition at line 368 of file smdefs.h.

◆ SCSI_SNSKEY_UNIT_ATTENTION

#define SCSI_SNSKEY_UNIT_ATTENTION   0x06

Definition at line 373 of file smdefs.h.

◆ SCSI_START_MASK

#define SCSI_START_MASK   0x01

Definition at line 249 of file smdefs.h.

◆ SCSI_SYNC_CACHE_IMMED_MASK

#define SCSI_SYNC_CACHE_IMMED_MASK   0x02

Definition at line 261 of file smdefs.h.

◆ SCSI_UNITOFFL_MASK

#define SCSI_UNITOFFL_MASK   0x01

Definition at line 248 of file smdefs.h.

◆ SCSI_VERIFY_BYTCHK_MASK

#define SCSI_VERIFY_BYTCHK_MASK   0x02

Definition at line 254 of file smdefs.h.

◆ SCSI_WRITE10_FUA_MASK

#define SCSI_WRITE10_FUA_MASK   0x08

Definition at line 272 of file smdefs.h.

◆ SCSI_WRITE12_FUA_MASK

#define SCSI_WRITE12_FUA_MASK   0x08

Definition at line 273 of file smdefs.h.

◆ SCSI_WRITE16_FUA_MASK

#define SCSI_WRITE16_FUA_MASK   0x08

Definition at line 274 of file smdefs.h.

◆ SCSI_WRITE_N_VERIFY10_FUA_MASK

#define SCSI_WRITE_N_VERIFY10_FUA_MASK   0x08

Definition at line 309 of file smdefs.h.

◆ SCSI_WRITE_N_VERIFY_BYTCHK_MASK

#define SCSI_WRITE_N_VERIFY_BYTCHK_MASK   0x02

Definition at line 262 of file smdefs.h.

◆ SCSI_WRITE_SAME_LBDATA_MASK

#define SCSI_WRITE_SAME_LBDATA_MASK   0x02

Definition at line 259 of file smdefs.h.

◆ SCSI_WRITE_SAME_PBDATA_MASK

#define SCSI_WRITE_SAME_PBDATA_MASK   0x04

Definition at line 260 of file smdefs.h.

◆ SCSIOP_INQUIRY_CMDDT

#define SCSIOP_INQUIRY_CMDDT   0x02

Definition at line 428 of file smdefs.h.

◆ SCSIOP_INQUIRY_EVPD

#define SCSIOP_INQUIRY_EVPD   0x01

Definition at line 429 of file smdefs.h.

◆ SCSIOPC_ATA_PASS_THROUGH12

#define SCSIOPC_ATA_PASS_THROUGH12   0xA1

Definition at line 492 of file smdefs.h.

◆ SCSIOPC_ATA_PASS_THROUGH16

#define SCSIOPC_ATA_PASS_THROUGH16   0x85

Definition at line 493 of file smdefs.h.

◆ SCSIOPC_FORMAT_UNIT

#define SCSIOPC_FORMAT_UNIT   0x04

Definition at line 465 of file smdefs.h.

◆ SCSIOPC_GET_CONFIG

#define SCSIOPC_GET_CONFIG   0x46

Definition at line 484 of file smdefs.h.

◆ SCSIOPC_GET_EVENT_STATUS_NOTIFICATION

#define SCSIOPC_GET_EVENT_STATUS_NOTIFICATION   0x4a

Definition at line 485 of file smdefs.h.

◆ SCSIOPC_INQUIRY

#define SCSIOPC_INQUIRY   0x12

Definition at line 444 of file smdefs.h.

◆ SCSIOPC_LOG_SELECT

#define SCSIOPC_LOG_SELECT   0x4C

Definition at line 473 of file smdefs.h.

◆ SCSIOPC_LOG_SENSE

#define SCSIOPC_LOG_SENSE   0x4D

Definition at line 472 of file smdefs.h.

◆ SCSIOPC_MODE_SELECT_10

#define SCSIOPC_MODE_SELECT_10   0x55

Definition at line 475 of file smdefs.h.

◆ SCSIOPC_MODE_SELECT_6 [1/2]

#define SCSIOPC_MODE_SELECT_6   0x15

Definition at line 474 of file smdefs.h.

◆ SCSIOPC_MODE_SELECT_6 [2/2]

#define SCSIOPC_MODE_SELECT_6   0x15

Definition at line 474 of file smdefs.h.

◆ SCSIOPC_MODE_SENSE_10

#define SCSIOPC_MODE_SENSE_10   0x5A

Definition at line 446 of file smdefs.h.

◆ SCSIOPC_MODE_SENSE_6

#define SCSIOPC_MODE_SENSE_6   0x1A

Definition at line 445 of file smdefs.h.

◆ SCSIOPC_PREVENT_ALLOW_MEDIUM_REMOVAL

#define SCSIOPC_PREVENT_ALLOW_MEDIUM_REMOVAL   0x1E

Definition at line 490 of file smdefs.h.

◆ SCSIOPC_READ_10

#define SCSIOPC_READ_10   0x28

Definition at line 452 of file smdefs.h.

◆ SCSIOPC_READ_12

#define SCSIOPC_READ_12   0xA8

Definition at line 453 of file smdefs.h.

◆ SCSIOPC_READ_16

#define SCSIOPC_READ_16   0x88

Definition at line 454 of file smdefs.h.

◆ SCSIOPC_READ_6

#define SCSIOPC_READ_6   0x08

Definition at line 451 of file smdefs.h.

◆ SCSIOPC_READ_BUFFER

#define SCSIOPC_READ_BUFFER   0x3C

Definition at line 469 of file smdefs.h.

◆ SCSIOPC_READ_CAPACITY_10

#define SCSIOPC_READ_CAPACITY_10   0x25

Definition at line 449 of file smdefs.h.

◆ SCSIOPC_READ_CAPACITY_16

#define SCSIOPC_READ_CAPACITY_16   0x9E

Definition at line 450 of file smdefs.h.

◆ SCSIOPC_READ_DVD_STRUCTURE

#define SCSIOPC_READ_DVD_STRUCTURE   0xAD

Definition at line 488 of file smdefs.h.

◆ SCSIOPC_READ_MEDIA_SERIAL_NUMBER

#define SCSIOPC_READ_MEDIA_SERIAL_NUMBER   0xAB

Definition at line 481 of file smdefs.h.

◆ SCSIOPC_READ_VERIFY

#define SCSIOPC_READ_VERIFY   0x42

Definition at line 491 of file smdefs.h.

◆ SCSIOPC_REASSIGN_BLOCKS

#define SCSIOPC_REASSIGN_BLOCKS   0x07

Definition at line 482 of file smdefs.h.

◆ SCSIOPC_REPORT_KEY

#define SCSIOPC_REPORT_KEY   0xA4

Definition at line 486 of file smdefs.h.

◆ SCSIOPC_REPORT_LUN

#define SCSIOPC_REPORT_LUN   0xA0

Definition at line 464 of file smdefs.h.

◆ SCSIOPC_REQUEST_SENSE

#define SCSIOPC_REQUEST_SENSE   0x03

Definition at line 463 of file smdefs.h.

◆ SCSIOPC_SEND_DIAGNOSTIC

#define SCSIOPC_SEND_DIAGNOSTIC   0x1D

Definition at line 466 of file smdefs.h.

◆ SCSIOPC_SEND_KEY

#define SCSIOPC_SEND_KEY   0xA3

Definition at line 487 of file smdefs.h.

◆ SCSIOPC_START_STOP_UNIT

#define SCSIOPC_START_STOP_UNIT   0x1B

Definition at line 448 of file smdefs.h.

◆ SCSIOPC_SYNCHRONIZE_CACHE_10

#define SCSIOPC_SYNCHRONIZE_CACHE_10   0x35

Definition at line 476 of file smdefs.h.

◆ SCSIOPC_SYNCHRONIZE_CACHE_16

#define SCSIOPC_SYNCHRONIZE_CACHE_16   0x91

Definition at line 477 of file smdefs.h.

◆ SCSIOPC_TEST_UNIT_READY

#define SCSIOPC_TEST_UNIT_READY   0x00

Definition at line 443 of file smdefs.h.

◆ SCSIOPC_TOC

#define SCSIOPC_TOC   0x43

Definition at line 489 of file smdefs.h.

◆ SCSIOPC_VERIFY_10

#define SCSIOPC_VERIFY_10   0x2F

Definition at line 460 of file smdefs.h.

◆ SCSIOPC_VERIFY_12

#define SCSIOPC_VERIFY_12   0xAF

Definition at line 461 of file smdefs.h.

◆ SCSIOPC_VERIFY_16

#define SCSIOPC_VERIFY_16   0x8F

Definition at line 462 of file smdefs.h.

◆ SCSIOPC_WRITE_10

#define SCSIOPC_WRITE_10   0x2A

Definition at line 456 of file smdefs.h.

◆ SCSIOPC_WRITE_12

#define SCSIOPC_WRITE_12   0xAA

Definition at line 457 of file smdefs.h.

◆ SCSIOPC_WRITE_16

#define SCSIOPC_WRITE_16   0x8A

Definition at line 458 of file smdefs.h.

◆ SCSIOPC_WRITE_6

#define SCSIOPC_WRITE_6   0x0A

Definition at line 455 of file smdefs.h.

◆ SCSIOPC_WRITE_AND_VERIFY_10

#define SCSIOPC_WRITE_AND_VERIFY_10   0x2E

Definition at line 478 of file smdefs.h.

◆ SCSIOPC_WRITE_AND_VERIFY_12

#define SCSIOPC_WRITE_AND_VERIFY_12   0xAE

Definition at line 479 of file smdefs.h.

◆ SCSIOPC_WRITE_AND_VERIFY_16

#define SCSIOPC_WRITE_AND_VERIFY_16   0x8E

Definition at line 480 of file smdefs.h.

◆ SCSIOPC_WRITE_BUFFER

#define SCSIOPC_WRITE_BUFFER   0x3B

Definition at line 470 of file smdefs.h.

◆ SCSIOPC_WRITE_SAME_10

#define SCSIOPC_WRITE_SAME_10   0x41

Definition at line 467 of file smdefs.h.

◆ SCSIOPC_WRITE_SAME_16

#define SCSIOPC_WRITE_SAME_16   0x93

Definition at line 468 of file smdefs.h.

◆ SCSIOPC_WRITE_VERIFY

#define SCSIOPC_WRITE_VERIFY   0x2E

Definition at line 459 of file smdefs.h.

◆ SELFTEST_RESULTS_LOG_PAGE_LENGTH

#define SELFTEST_RESULTS_LOG_PAGE_LENGTH   404

Definition at line 319 of file smdefs.h.

◆ SENSE_DATA_LENGTH

#define SENSE_DATA_LENGTH   0x12 /* 18 */

Definition at line 318 of file smdefs.h.

◆ SET_DEV_BITS_FIS

#define SET_DEV_BITS_FIS   0xA1

Definition at line 64 of file smdefs.h.

◆ SM_ABORT_TASK

#define SM_ABORT_TASK   1

Definition at line 755 of file smdefs.h.

◆ SM_ABORT_TASK_SET

#define SM_ABORT_TASK_SET   2

Definition at line 756 of file smdefs.h.

◆ SM_CLEAR_ACA

#define SM_CLEAR_ACA   3

Definition at line 757 of file smdefs.h.

◆ SM_CLEAR_ESGL_EXTEND

#define SM_CLEAR_ESGL_EXTEND (   val)     ((val) = (val) & 0x7FFFFFFF)

Definition at line 567 of file smdefs.h.

◆ SM_CLEAR_TASK_SET

#define SM_CLEAR_TASK_SET   4

Definition at line 758 of file smdefs.h.

◆ SM_DBG0

#define SM_DBG0 (   format)

Definition at line 532 of file smdefs.h.

◆ SM_DBG1

#define SM_DBG1 (   format)

Definition at line 533 of file smdefs.h.

◆ SM_DBG2

#define SM_DBG2 (   format)

Definition at line 534 of file smdefs.h.

◆ SM_DBG3

#define SM_DBG3 (   format)

Definition at line 535 of file smdefs.h.

◆ SM_DBG4

#define SM_DBG4 (   format)

Definition at line 536 of file smdefs.h.

◆ SM_DBG5

#define SM_DBG5 (   format)

Definition at line 537 of file smdefs.h.

◆ SM_DBG6

#define SM_DBG6 (   format)

Definition at line 538 of file smdefs.h.

◆ SM_DEVICE_MEM_INDEX

#define SM_DEVICE_MEM_INDEX   1

the index of Device descriptors memory

Definition at line 31 of file smdefs.h.

◆ SM_GET_SAS_ADDRESSHI

#define SM_GET_SAS_ADDRESSHI (   sasAddressHi)     DMA_BEBIT32_TO_BIT32(*(bit32 *)sasAddressHi)

Definition at line 824 of file smdefs.h.

◆ SM_GET_SAS_ADDRESSLO

#define SM_GET_SAS_ADDRESSLO (   sasAddressLo)     DMA_BEBIT32_TO_BIT32(*(bit32 *)sasAddressLo)

Definition at line 821 of file smdefs.h.

◆ SM_IO_MEM_INDEX

#define SM_IO_MEM_INDEX   2

the index of IO command descriptors memory

Definition at line 32 of file smdefs.h.

◆ SM_LOGICAL_UNIT_RESET

#define SM_LOGICAL_UNIT_RESET   5

Definition at line 759 of file smdefs.h.

◆ SM_MAX_DEV

#define SM_MAX_DEV   256

Definition at line 35 of file smdefs.h.

◆ SM_MAX_IO

#define SM_MAX_IO   1024

Definition at line 36 of file smdefs.h.

◆ SM_QUERY_TASK

#define SM_QUERY_TASK   9 /* SAS only */

Definition at line 763 of file smdefs.h.

◆ SM_ROOT_MEM_INDEX

#define SM_ROOT_MEM_INDEX   0

the index of dm root memory

Definition at line 30 of file smdefs.h.

◆ SM_SET_ESGL_EXTEND

#define SM_SET_ESGL_EXTEND (   val)     ((val) = (val) | 0x80000000)

Definition at line 564 of file smdefs.h.

◆ SM_TARGET_COLD_RESET

#define SM_TARGET_COLD_RESET   7 /* iSCSI only */

Definition at line 761 of file smdefs.h.

◆ SM_TARGET_WARM_RESET

#define SM_TARGET_WARM_RESET   6 /* iSCSI only */

Definition at line 760 of file smdefs.h.

◆ SM_TASK_REASSIGN

#define SM_TASK_REASSIGN   8 /* iSCSI only */

Definition at line 762 of file smdefs.h.

◆ SM_USECS_PER_TICK

#define SM_USECS_PER_TICK   1000000

defines the heart beat of the LL layer 10ms

Definition at line 38 of file smdefs.h.

◆ SMIsSPC

#define SMIsSPC (   agr)    (VEN_DEV_SPC == ossaHwRegReadConfig32(agr,0 ) ? 1 : 0) /* returns true config space read is SPC */

Definition at line 841 of file smdefs.h.

◆ SMIsSPCv

#define SMIsSPCv (   agr)    (VEN_DEV_SPCv == ossaHwRegReadConfig32(agr,0 ) ? 1 : 0) /* returns true config space read is SPCv */

Definition at line 842 of file smdefs.h.

◆ SMIsSPCve

#define SMIsSPCve (   agr)    (VEN_DEV_SPCve == ossaHwRegReadConfig32(agr,0 ) ? 1 : 0) /* returns true config space read is SPCve */

Definition at line 843 of file smdefs.h.

◆ SMIsSPCveplus

#define SMIsSPCveplus (   agr)    (VEN_DEV_SPCveplus == ossaHwRegReadConfig32(agr,0 ) ? 1 : 0) /* returns true config space read is SPCve+ */

Definition at line 845 of file smdefs.h.

◆ SMIsSPCvplus

#define SMIsSPCvplus (   agr)    (VEN_DEV_SPCvplus == ossaHwRegReadConfig32(agr,0 ) ? 1 : 0) /* returns true config space read is SPCv+ */

Definition at line 844 of file smdefs.h.

◆ SMP_DIRECT_PAYLOAD_LIMIT

#define SMP_DIRECT_PAYLOAD_LIMIT   44

Definition at line 810 of file smdefs.h.

◆ SMP_FUNCTION_ACCEPTED

#define SMP_FUNCTION_ACCEPTED   0x00

Definition at line 818 of file smdefs.h.

◆ SMP_PHY_CONTROL

#define SMP_PHY_CONTROL   0x91

Definition at line 815 of file smdefs.h.

◆ SMP_PHY_CONTROL_CLEAR_AFFILIATION

#define SMP_PHY_CONTROL_CLEAR_AFFILIATION   0x06

Definition at line 771 of file smdefs.h.

◆ SMP_PHY_CONTROL_CLEAR_ERROR_LOG

#define SMP_PHY_CONTROL_CLEAR_ERROR_LOG   0x05

Definition at line 770 of file smdefs.h.

◆ SMP_PHY_CONTROL_DISABLE

#define SMP_PHY_CONTROL_DISABLE   0x03

Definition at line 769 of file smdefs.h.

◆ SMP_PHY_CONTROL_HARD_RESET

#define SMP_PHY_CONTROL_HARD_RESET   0x02

Definition at line 768 of file smdefs.h.

◆ SMP_PHY_CONTROL_LINK_RESET

#define SMP_PHY_CONTROL_LINK_RESET   0x01

Definition at line 767 of file smdefs.h.

◆ SMP_PHY_CONTROL_NOP

#define SMP_PHY_CONTROL_NOP   0x00

Definition at line 766 of file smdefs.h.

◆ SMP_PHY_CONTROL_XMIT_SATA_PS_SIGNAL

#define SMP_PHY_CONTROL_XMIT_SATA_PS_SIGNAL   0x07

Definition at line 772 of file smdefs.h.

◆ SMP_REQUEST

#define SMP_REQUEST   0x40

Definition at line 812 of file smdefs.h.

◆ SMP_RESPONSE

#define SMP_RESPONSE   0x41

Definition at line 813 of file smdefs.h.

◆ STANDARD_INQUIRY_SIZE

#define STANDARD_INQUIRY_SIZE   36

Definition at line 430 of file smdefs.h.

◆ UNC_ATA_ERROR_MASK

#define UNC_ATA_ERROR_MASK   0x40 /* Uncorrectable data error bit */

Definition at line 126 of file smdefs.h.

◆ UNKNOWN_DEVICE

#define UNKNOWN_DEVICE   0xFF

Definition at line 57 of file smdefs.h.

◆ VEN_DEV_SPC

#define VEN_DEV_SPC   0x800111f8

Definition at line 835 of file smdefs.h.

◆ VEN_DEV_SPCv

#define VEN_DEV_SPCv   0x800811f8

Definition at line 836 of file smdefs.h.

◆ VEN_DEV_SPCve

#define VEN_DEV_SPCve   0x800911f8

Definition at line 837 of file smdefs.h.

◆ VEN_DEV_SPCveplus

#define VEN_DEV_SPCveplus   0x801911f8

Definition at line 839 of file smdefs.h.

◆ VEN_DEV_SPCvplus

#define VEN_DEV_SPCvplus   0x801811f8

Definition at line 838 of file smdefs.h.

◆ WRITE_BUFFER_DATA_MODE

#define WRITE_BUFFER_DATA_MODE   0x02

Definition at line 331 of file smdefs.h.

◆ WRITE_BUFFER_DL_MICROCODE_SAVE_MODE

#define WRITE_BUFFER_DL_MICROCODE_SAVE_MODE   0x05

Definition at line 332 of file smdefs.h.

◆ ZERO_MEDIA_SERIAL_NUMBER_LENGTH

#define ZERO_MEDIA_SERIAL_NUMBER_LENGTH   8

Definition at line 321 of file smdefs.h.

Typedef Documentation

◆ satReadLogExtPage10h_t

◆ satReadLogExtSelfTest_t

◆ satSimpleSATAIdentifyData_t

◆ satSmartReadLogSelfTest_t

◆ smpReqPhyControl_t

◆ smScsiReportLun_t

◆ smSMPFrameHeader_t

Enumeration Type Documentation

◆ sm_locks_e

enum sm_locks_e
Enumerator
SM_TIMER_LOCK 
SM_DEVICE_LOCK 
SM_INTERNAL_IO_LOCK 
SM_EXTERNAL_IO_LOCK 
SM_NCQ_TAG_LOCK 
SM_TBD_LOCK 
SM_MAX_LOCKS 

Definition at line 40 of file smdefs.h.