FreeBSD kernel pms device code
sa.h File Reference

The file defines the constants, data structure, and functions defined by LL API. More...

Include dependency graph for sa.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  agsaContext_s
 data structure stores OS specific and LL specific context More...
 
struct  agsaSASReconfig_s
 describe a SAS ReCofiguration structure in the SAS/SATA hardware More...
 
struct  agsaPhyAnalogSetupRegisters_s
 describe a Phy Analog Setup registers for a Controller in the SAS/SATA hardware More...
 
struct  agsaPhyAnalogSetupTable_s
 
struct  agsaPhyAnalogSettingsPage_s
 describe a Phy Analog Setting More...
 
struct  agsaSASPhyOpenRejectRetryBackOffThresholdPage_s
 describe a Open reject retry backoff threshold page More...
 
struct  agsaPhyRateControlPage_s
 describe a Phy Rate Control 4.56 agsaPhyRateControlPage_t Description This profile page is used to read or set several rate control parameters. The page code for this profile page is 0x07. This page can be READ by issuing saGetPhyProfile(). It can be read anytime and there is no need to quiesce the I/O to the controller. Related parameters can be modified by issuing saSetPhyProfile() before calling saPhyStart() to the PHY. Note: This page is applicable only to the SPCv controller. Usage Initiator and target. More...
 
struct  agsaRegDumpInfo_s
 describe a Register Dump information for a Controller in the SAS/SATA hardware More...
 
struct  agsaForensicData_t
 
struct  agsaNVMDData_s
 describe a NVMData for a Controller in the SAS/SATA hardware More...
 
struct  agsaPCIeDiagExecute_s
 
struct  agsaPCIeDiagResponse_s
 agsaPCIeDiagResponse_t More...
 
struct  agsaFatalErrorInfo_s
 describe a fatal error information for a Controller in the SAS/SATA hardware More...
 
struct  agsaEventSource_s
 describe a information for a Event in the SAS/SATA hardware More...
 
struct  agsaControllerInfo_s
 describe a information for a Controller in the SAS/SATA hardware More...
 
struct  agsaControllerStatus_s
 describe a status for a Controller in the SAS/SATA hardware More...
 
struct  agsaGpioEventSetupInfo_s
 describe a GPIO Event Setup Infomation in the SAS/SATA hardware More...
 
struct  agsaGpioPinSetupInfo_t
 describe a GPIO Pin Setup Infomation in the SAS/SATA hardware More...
 
struct  agsaGpioWriteSetupInfo_s
 describe a serial GPIO operation in the SAS/SATA hardware More...
 
struct  agsaGpioReadInfo_s
 describe a GPIO Read Infomation in the SAS/SATA hardware More...
 
struct  agsaSGpioReqResponse_s
 describe a serial GPIO request and response in the SAS/SATA hardware More...
 
struct  agsaSGpioCfg0
 describe a serial GPIO operation response in the SAS/SATA hardware More...
 
struct  agsaSGpioCfg1
 SGPIO configuration register 1. More...
 
struct  agsaPhyConfig_s
 describe a configuration for a PHY in the SAS/SATA hardware More...
 
struct  agsaPhySNW3Page_s
 Structure is used as a parameter passed in saLocalPhyControlCB() to describe the error counter. More...
 
struct  agsaPhyErrCounters_s
 structure describe error counters of a PHY in the SAS/SATA More...
 
struct  agsaPhyErrCountersPage_s
 used in saGetPhyProfile More...
 
struct  agsaPhyBWCountersPage_s
 structure describes bandwidth counters of a PHY in the SAS/SATA More...
 
struct  agsaHwConfig_s
 structure describe hardware configuration More...
 
struct  agsaSwConfig_s
 structure describe software configuration More...
 
struct  agsaQueueInbound_s
 
struct  agsaQueueOutbound_s
 
struct  agsaPhyCalibrationTbl_s
 
struct  agsaQueueConfig_s
 
struct  agsaFwImg_s
 
struct  agsaMem_s
 generic memory descriptor More...
 
struct  agsaControllerEventLog_s
 specify the controller Event Log for the SAS/SATA LL Layer More...
 
struct  agsaSASDiagExecute_s
 specify the SAS Diagnostic Parameters for the SAS/SATA LL Layer More...
 
struct  agsaSASPhyGeneralStatusPage_s
 for the SAS/SATA LL Layer More...
 
struct  agsaMemoryRequirement_s
 specify the memory allocation requirement for the SAS/SATA LL Layer More...
 
struct  agsaSASAddressID_s
 describe a SAS address and PHY Identifier More...
 
struct  agsaDeviceInfo_s
 data structure provides some information about a SATA device More...
 
struct  agsaSATADeviceInfo_s
 data structure provides some information about a SATA device More...
 
struct  agsaSASDeviceInfo_s
 data structure provides some information about a SAS device More...
 
struct  _SASG_DESCRIPTOR
 the data structure describe SG list More...
 
struct  agsaSgl_s
 data structure used to pass information about the scatter-gather list to the LL Layer More...
 
struct  agsaEsgl_s
 data structure is used to pass information about the extended scatter-gather list (ESGL) to the LL Layer More...
 
struct  agsaSSPCmdInfoUnitExt_s
 
struct  agsaDif_s
 
struct  agsaEncryptDek_s
 
struct  agsaEncrypt_s
 
struct  agsaSSPInitiatorRequest_s
 data structure describes a SAS SSP command request to be sent to the target device More...
 
struct  agsaSSPInitiatorRequestExt_s
 data structure describes a SAS SSP command request Ext to be sent to the target device More...
 
struct  agsaSSPInitiatorRequestIndirect_s
 
struct  agsaSSPTargetRequest_s
 data structure describes a SAS SSP target read and write request More...
 
struct  agsaSSPTargetResponse_s
 data structure describes a SAS SSP target response to be issued on the port More...
 
struct  agsaSMPFrame_s
 data structure describes a SMP request or response frame to be sent on the SAS port More...
 
union  agsaSASRequestBody_u
 union data structure specifies a request More...
 
struct  agsaSATAInitiatorRequest_s
 data structure describes an STP or direct connect SATA command More...
 
struct  agsaEncryptGeneralPage_s
 
struct  agsaEncryptDekConfigPage_s
 
struct  agsaEncryptControlParamPage_s
 
struct  agsaEncryptInfo_s
 
struct  agsaEncryptSelfTestBitMap_s
 
struct  agsaEncryptSelfTestStatusBitMap_s
 
struct  agsaEncryptHMACTestDescriptor_s
 
struct  agsaEncryptHMACTestResult_s
 
struct  agsaEncryptSHATestDescriptor_s
 
struct  agsaEncryptSHATestResult_s
 
struct  agsaEncryptDekBlob_s
 
struct  agsaEncryptKekBlob_s
 
struct  agsaEncryptHMACConfigPage_s
 
struct  agsaID_s
 
struct  agsaSASPhyMiscPage_s
 
struct  agsaHWEventEncrypt_s
 
struct  agsaHWEventMode_s
 
struct  agsaInterruptConfigPage_s
 
struct  agsaIoGeneralPage_s
 
struct  agsaDifDetails_s
 
struct  agsaSASProtocolTimerConfigurationPage_s
 data structure for SAS protocol timer configuration page. More...
 
struct  agsaUpdateFwFlash_s
 data structure for firmware flash update saFwFlashUpdate(). More...
 
struct  agsaFlashExtExecute_s
 data structure for extended firmware flash update saFwFlashExtUpdate(). More...
 
struct  agsaFlashExtResponse_s
 data structure for firmware flash update saFwFlashUpdate(). More...
 
struct  agsaMPIContext_s
 data structure for set fields in MPI table. The agsaMPIContext_t data structure is used to set fields in MPI table. For details of MPI table, refer to PM8001 Tachyon SPC 8x6G Programmers' Manual PMC-2080222 or PM8008/PM8009/PM8018 Tachyon SPCv/SPCve/SPCv+ Programmers Manual PMC-2091148/PMC-2102373. sTSDK section 4.39 More...
 
struct  agsaOffloadDifDetails_s
 
struct  agsaDifEncPayload_s
 
struct  agsaBarOffset_s
 describe an element of SPC-SPCV converter More...
 
union  agsabit32bit64_U
 
struct  agsaIOErrorEventStats_s
 

Macros

#define SA_CONFIG_MDFD_REGISTRY
 
#define OSSA_OFFSET_OF(STRUCT_TYPE, FEILD)    (bitptr)&(((STRUCT_TYPE *)0)->FEILD)
 
#define AGSA_WRITE_SGL(sglDest, sgLower, sgUpper, len, extReserved)
 
#define AGSA_FLIP_2_BYTES(_x)
 AGSA_FLIP_2_BYTES macro. More...
 
#define AGSA_FLIP_4_BYTES(_x)
 AGSA_FLIP_4_BYTES macro. More...
 
#define FW_THIS_VERSION_SPC12G   0x03060005
 
#define FW_THIS_VERSION_SPC6G   0x02092400
 
#define FW_THIS_VERSION_SPC   0x01110000
 
#define STSDK_LL_INTERFACE_VERSION   0x20A
 
#define STSDK_LL_OLD_INTERFACE_VERSION   0x1 /* SPC and SPCv before 02030401 */
 
#define STSDK_LL_VERSION   FW_THIS_VERSION_SPC6G
 
#define MAX_FW_VERSION_SUPPORTED   FW_THIS_VERSION_SPC6G
 
#define MATCHING_V_FW_VERSION   FW_THIS_VERSION_SPC6G
 
#define MIN_FW_SPCVE_VERSION_SUPPORTED   0x02000000
 
#define STSDK_LL_12G_INTERFACE_VERSION   0x302
 
#define STSDK_LL_12G_VERSION   FW_THIS_VERSION_SPC12G
 
#define MAX_FW_12G_VERSION_SUPPORTED   FW_THIS_VERSION_SPC12G
 
#define MATCHING_12G_V_FW_VERSION   FW_THIS_VERSION_SPC12G
 
#define MIN_FW_12G_SPCVE_VERSION_SUPPORTED   0x03000000
 
#define STSDK_LL_SPC_VERSION   0x01100000
 
#define MATCHING_SPC_FW_VERSION   FW_THIS_VERSION_SPC
 
#define MIN_FW_SPC_VERSION_SUPPORTED   0x01062502
 
#define STSDK_LL_INTERFACE_VERSION_IGNORE_MASK   0xF00
 
#define AGSA_RC_SUCCESS   0x00
 
#define AGSA_RC_FAILURE   0x01
 
#define AGSA_RC_BUSY   0x02
 
#define AGSA_RC_HDA_NO_FW_RUNNING   0x03
 
#define AGSA_RC_FW_NOT_IN_READY_STATE   0x04
 
#define AGSA_RC_VERSION_INCOMPATIBLE   0x05
 
#define AGSA_RC_VERSION_UNTESTED   0x06
 
#define AGSA_RC_NOT_SUPPORTED   0x07
 
#define AGSA_RC_COMPLETE   0x08
 
#define AGSA_CACHED_MEM   0x00
 
#define AGSA_DMA_MEM   0x01
 
#define AGSA_CACHED_DMA_MEM   0x02
 
#define AGSA_NUM_MEM_CHUNKS   (10 + AGSA_MAX_INBOUND_Q + AGSA_MAX_OUTBOUND_Q)
 
#define AGSA_MAX_VALID_PHYS   16 /* was 8 for SPC */
 
#define MAX_ESGL_ENTRIES   10
 
#define AGSA_MAX_INBOUND_Q   64
 
#define AGSA_MAX_OUTBOUND_Q   64
 
#define AGSA_MAX_BEST_INBOUND_Q   16 /* Max inbound Q number with good IO performance */
 
#define AGSA_PHY_LINK_RESET   0x01
 
#define AGSA_PHY_HARD_RESET   0x02
 
#define AGSA_PHY_GET_ERROR_COUNTS   0x03 /* SPC only used in original saLocalPhyControl */
 
#define AGSA_PHY_CLEAR_ERROR_COUNTS   0x04 /* SPC only */
 
#define AGSA_PHY_GET_BW_COUNTS   0x05 /* SPC only */
 
#define AGSA_PHY_NOTIFY_ENABLE_SPINUP   0x10
 
#define AGSA_PHY_BROADCAST_ASYNCH_EVENT   0x12
 
#define AGSA_PHY_COMINIT_OOB   0x20
 
#define AGSA_SAS_PHY_ERR_COUNTERS_PAGE   0x01 /* retrieve the SAS PHY error counters */
 
#define AGSA_SAS_PHY_ERR_COUNTERS_CLR_PAGE   0x02 /* retrieve the SAS PHY error counters After capturing the errors, the hardware error counters are cleared and restarted. */
 
#define AGSA_SAS_PHY_BW_COUNTERS_PAGE   0x03 /* retrieve the SAS PHY transmit and receive bandwidth counters. */
 
#define AGSA_SAS_PHY_ANALOG_SETTINGS_PAGE   0x04 /* retrieve the SAS PHY analog settings */
 
#define AGSA_SAS_PHY_GENERAL_STATUS_PAGE   0x05 /* retrieve the SAS PHY general status for the PHY specified in the phyID parameter */
 
#define AGSA_PHY_SNW3_PAGE   0x06
 
#define AGSA_PHY_RATE_CONTROL_PAGE   0x07 /* Used to set several rate control parameters. */
 
#define AGSA_SAS_PHY_MISC_PAGE   0x08
 
#define AGSA_SAS_PHY_OPEN_REJECT_RETRY_BACKOFF_THRESHOLD_PAGE   0x08 /* Used to set retry and backoff threshold parameters. */
 
#define AGSA_CHIP_RESET   0x00
 
#define AGSA_SOFT_RESET   0x01
 
#define AG_SA_DISCOVERY_TYPE_SAS   0x00
 
#define AG_SA_DISCOVERY_TYPE_SATA   0x01
 
#define AG_SA_DISCOVERY_OPTION_FULL_START   0x00
 
#define AG_SA_DISCOVERY_OPTION_INCREMENTAL_START   0x01
 
#define AG_SA_DISCOVERY_OPTION_ABORT   0x02
 
#define AGSA_REQTYPE_MASK   0xF0000000
 
#define AGSA_REQ_TYPE_UNKNOWN   0x00000000
 
#define AGSA_SSP_REQTYPE   0x80000000
 
#define AGSA_SMP_REQTYPE   0x40000000
 
#define AGSA_SATA_REQTYPE   0x20000000
 
#define AGSA_DIR_MASK   0x00000300
 
#define AGSA_AUTO_MASK   0x00000080
 
#define AGSA_SATA_ATAP_MASK   0x0000FC00
 
#define AGSA_DIR_NONE   0x00000000
 
#define AGSA_DIR_CONTROLLER_TO_HOST   0x00000100
 
#define AGSA_DIR_HOST_TO_CONTROLLER   0x00000200
 
#define AGSA_AUTO_GOOD_RESPONSE   0x00000080
 
#define AGSA_SSP_INIT   0x00000001
 
#define AGSA_SSP_TGT_MODE   0x00000003
 
#define AGSA_SSP_TASK_MGNT   0x00000005
 
#define AGSA_SSP_TGT_RSP   0x00000006
 
#define AGSA_SMP_INIT   0x00000007
 
#define AGSA_SMP_TGT   0x00000008
 
#define AGSA_SSP_INIT_EXT   (AGSA_SSP_INIT | AGSA_SSP_EXT_BIT)
 
#define AGSA_SSP_INIT_INDIRECT   (AGSA_SSP_INIT | AGSA_SSP_INDIRECT_BIT)
 
#define AGSA_MSG   0x00000010
 
#define AGSA_SSP_EXT_BIT   0x00000020
 
#define AGSA_SSP_INDIRECT_BIT   0x00000040
 
#define AGSA_MSG_BIT   AGSA_MSG >> 2
 
#define AGSA_INDIRECT_CDB_BIT   0x00000008
 
#define AGSA_SKIP_MASK_BIT   0x00000010
 
#define AGSA_ENCRYPT_BIT   0x00000020
 
#define AGSA_DIF_BIT   0x00000040
 
#define AGSA_DIF_LA_BIT   0x00000080
 
#define AGSA_DIRECTION_BITS   0x00000300
 
#define AGSA_SKIP_MASK_OFFSET_BITS   0x0F000000
 
#define AGSA_SSP_INFO_LENGTH_BITS   0xF0000000
 
#define AGSA_SSP_TGT_BITS_INI_TAG   0xFFFF0000 /* 16 31 */
 
#define AGSA_SSP_TGT_BITS_ODS   0x00008000 /* 15 */
 
#define AGSA_SSP_TGT_BITS_DEE_DIF   0x00004000 /* 14 */
 
#define AGSA_SSP_TGT_BITS_DEE   0x00002000 /* 13 14 */
 
#define AGSA_SSP_TGT_BITS_R   0x00001000 /* 12 */
 
#define AGSA_SSP_TGT_BITS_DAD   0x00000600 /* 11 10 */
 
#define AGSA_SSP_TGT_BITS_DIR   0x00000300 /* 8 9 */
 
#define AGSA_SSP_TGT_BITS_DIR_IN   0x00000100 /* 8 9 */
 
#define AGSA_SSP_TGT_BITS_DIR_OUT   0x00000200 /* 8 9 */
 
#define AGSA_SSP_TGT_BITS_AGR   0x00000080 /* 7 */
 
#define AGSA_SSP_TGT_BITS_RDF   0x00000040 /* 6 */
 
#define AGSA_SSP_TGT_BITS_RTE   0x00000030 /* 4 5 */
 
#define AGSA_SSP_TGT_BITS_AN   0x00000006 /* 2 3 */
 
#define AGSA_DIF_UPDATE_BITS   0xFC000000
 
#define AGSA_DIF_VERIFY_BITS   0x03F00000
 
#define AGSA_DIF_BLOCK_SIZE_BITS   0x000F0000
 
#define AGSA_DIF_ENABLE_BLOCK_COUNT_BIT   0x00000040
 
#define AGSA_DIF_CRC_SEED_BIT   0x00000020
 
#define AGSA_DIF_CRC_INVERT_BIT   0x00000010
 
#define AGSA_DIF_CRC_VERIFY_BIT   0x00000008
 
#define AGSA_DIF_OP_BITS   0x00000007
 
#define AGSA_DIF_OP_INSERT   0x00000000
 
#define AGSA_DIF_OP_VERIFY_AND_FORWARD   0x00000001
 
#define AGSA_DIF_OP_VERIFY_AND_DELETE   0x00000002
 
#define AGSA_DIF_OP_VERIFY_AND_REPLACE   0x00000003
 
#define AGSA_DIF_OP_RESERVED2   0x00000004
 
#define AGSA_DIF_OP_VERIFY_UDT_REPLACE_CRC   0x00000005
 
#define AGSA_DIF_OP_RESERVED3   0x00000006
 
#define AGSA_DIF_OP_REPLACE_UDT_REPLACE_CRC   0x00000007
 
#define AGSA_ENCRYPT_DEK_BITS   0xFFFFFF000
 
#define AGSA_ENCRYPT_SKIP_DIF_BIT   0x000000010
 
#define AGSA_ENCRYPT_KEY_TABLE_BITS   0x00000000C
 
#define AGSA_ENCRYPT_KEY_TAG_BIT   0x000000002
 
#define AGSA_ENCRYPT_ECB_Mode   0
 
#define AGSA_ENCRYPT_XTS_Mode   0x6
 
#define AGSA_ENCRYPT_KEK_SELECT_BITS   0x0000000E0
 
#define AGSA_ENCRYPT_SECTOR_SIZE_BITS   0x00000001F
 
#define AGSA_SSP_INIT_NONDATA   (AGSA_SSP_REQTYPE | AGSA_DIR_NONE | AGSA_SSP_INIT)
 
#define AGSA_SSP_INIT_READ   (AGSA_SSP_REQTYPE | AGSA_DIR_CONTROLLER_TO_HOST | AGSA_SSP_INIT)
 
#define AGSA_SSP_INIT_WRITE   (AGSA_SSP_REQTYPE | AGSA_DIR_HOST_TO_CONTROLLER | AGSA_SSP_INIT)
 
#define AGSA_SSP_TGT_READ_DATA   (AGSA_SSP_REQTYPE | AGSA_DIR_HOST_TO_CONTROLLER | AGSA_SSP_TGT_MODE)
 
#define AGSA_SSP_TGT_READ   (AGSA_SSP_REQTYPE | AGSA_DIR_HOST_TO_CONTROLLER | AGSA_SSP_TGT_MODE)
 
#define AGSA_SSP_TGT_READ_GOOD_RESP   (AGSA_SSP_REQTYPE | AGSA_DIR_HOST_TO_CONTROLLER | AGSA_SSP_TGT_MODE | AGSA_AUTO_GOOD_RESPONSE)
 
#define AGSA_SSP_TGT_WRITE_DATA   (AGSA_SSP_REQTYPE | AGSA_DIR_CONTROLLER_TO_HOST | AGSA_SSP_TGT_MODE)
 
#define AGSA_SSP_TGT_WRITE   (AGSA_SSP_REQTYPE | AGSA_DIR_CONTROLLER_TO_HOST | AGSA_SSP_TGT_MODE)
 
#define AGSA_SSP_TGT_WRITE_GOOD_RESP   (AGSA_SSP_REQTYPE | AGSA_DIR_CONTROLLER_TO_HOST | AGSA_SSP_TGT_MODE | AGSA_AUTO_GOOD_RESPONSE)
 
#define AGSA_SSP_TASK_MGNT_REQ   (AGSA_SSP_REQTYPE | AGSA_SSP_TASK_MGNT)
 
#define AGSA_SSP_TGT_CMD_OR_TASK_RSP   (AGSA_SSP_REQTYPE | AGSA_SSP_TGT_RSP)
 
#define AGSA_SMP_INIT_REQ   (AGSA_SMP_REQTYPE | AGSA_SMP_INIT)
 
#define AGSA_SMP_TGT_RESPONSE   (AGSA_SMP_REQTYPE | AGSA_SMP_TGT)
 
#define AGSA_SSP_INIT_READ_M   (AGSA_SSP_REQTYPE | AGSA_DIR_CONTROLLER_TO_HOST | AGSA_SSP_INIT | AGSA_MSG)
 
#define AGSA_SSP_INIT_WRITE_M   (AGSA_SSP_REQTYPE | AGSA_DIR_HOST_TO_CONTROLLER | AGSA_SSP_INIT | AGSA_MSG)
 
#define AGSA_SSP_TASK_MGNT_REQ_M   (AGSA_SSP_REQTYPE | AGSA_SSP_TASK_MGNT | AGSA_MSG)
 
#define AGSA_SSP_INIT_READ_EXT   (AGSA_SSP_REQTYPE | AGSA_DIR_CONTROLLER_TO_HOST | AGSA_SSP_INIT_EXT)
 
#define AGSA_SSP_INIT_WRITE_EXT   (AGSA_SSP_REQTYPE | AGSA_DIR_HOST_TO_CONTROLLER | AGSA_SSP_INIT_EXT)
 
#define AGSA_SSP_INIT_READ_INDIRECT   (AGSA_SSP_REQTYPE | AGSA_DIR_CONTROLLER_TO_HOST | AGSA_SSP_INIT_INDIRECT)
 
#define AGSA_SSP_INIT_WRITE_INDIRECT   (AGSA_SSP_REQTYPE | AGSA_DIR_HOST_TO_CONTROLLER | AGSA_SSP_INIT_INDIRECT)
 
#define AGSA_SSP_INIT_READ_INDIRECT_M   (AGSA_SSP_REQTYPE | AGSA_DIR_CONTROLLER_TO_HOST | AGSA_SSP_INIT_INDIRECT | AGSA_MSG)
 
#define AGSA_SSP_INIT_WRITE_INDIRECT_M   (AGSA_SSP_REQTYPE | AGSA_DIR_HOST_TO_CONTROLLER | AGSA_SSP_INIT_INDIRECT | AGSA_MSG)
 
#define AGSA_SSP_INIT_READ_EXT_M   (AGSA_SSP_REQTYPE | AGSA_DIR_CONTROLLER_TO_HOST | AGSA_SSP_INIT_EXT | AGSA_MSG)
 
#define AGSA_SSP_INIT_WRITE_EXT_M   (AGSA_SSP_REQTYPE | AGSA_DIR_HOST_TO_CONTROLLER | AGSA_SSP_INIT_EXT | AGSA_MSG)
 
#define AGSA_SMP_IOCTL_REQUEST   0xFFFFFFFF
 
#define AGSA_SATA_ATAP_SRST_ASSERT   0x00000400
 
#define AGSA_SATA_ATAP_SRST_DEASSERT   0x00000800
 
#define AGSA_SATA_ATAP_EXECDEVDIAG   0x00000C00
 
#define AGSA_SATA_ATAP_NON_DATA   0x00001000
 
#define AGSA_SATA_ATAP_PIO   0x00001400
 
#define AGSA_SATA_ATAP_DMA   0x00001800
 
#define AGSA_SATA_ATAP_NCQ   0x00001C00
 
#define AGSA_SATA_ATAP_PKT_DEVRESET   0x00002000
 
#define AGSA_SATA_ATAP_PKT   0x00002400
 
#define AGSA_SATA_PROTOCOL_NON_DATA   (AGSA_SATA_REQTYPE | AGSA_DIR_NONE | AGSA_SATA_ATAP_NON_DATA)
 
#define AGSA_SATA_PROTOCOL_PIO_READ   (AGSA_SATA_REQTYPE | AGSA_DIR_CONTROLLER_TO_HOST | AGSA_SATA_ATAP_PIO)
 
#define AGSA_SATA_PROTOCOL_DMA_READ   (AGSA_SATA_REQTYPE | AGSA_DIR_CONTROLLER_TO_HOST | AGSA_SATA_ATAP_DMA)
 
#define AGSA_SATA_PROTOCOL_FPDMA_READ   (AGSA_SATA_REQTYPE | AGSA_DIR_CONTROLLER_TO_HOST | AGSA_SATA_ATAP_NCQ)
 
#define AGSA_SATA_PROTOCOL_PIO_WRITE   (AGSA_SATA_REQTYPE | AGSA_DIR_HOST_TO_CONTROLLER | AGSA_SATA_ATAP_PIO)
 
#define AGSA_SATA_PROTOCOL_DMA_WRITE   (AGSA_SATA_REQTYPE | AGSA_DIR_HOST_TO_CONTROLLER | AGSA_SATA_ATAP_DMA)
 
#define AGSA_SATA_PROTOCOL_FPDMA_WRITE   (AGSA_SATA_REQTYPE | AGSA_DIR_HOST_TO_CONTROLLER | AGSA_SATA_ATAP_NCQ)
 
#define AGSA_SATA_PROTOCOL_DEV_RESET   (AGSA_SATA_REQTYPE | AGSA_DIR_NONE | AGSA_SATA_ATAP_PKT_DEVRESET)
 
#define AGSA_SATA_PROTOCOL_SRST_ASSERT   (AGSA_SATA_REQTYPE | AGSA_DIR_NONE | AGSA_SATA_ATAP_SRST_ASSERT)
 
#define AGSA_SATA_PROTOCOL_SRST_DEASSERT   (AGSA_SATA_REQTYPE | AGSA_DIR_NONE | AGSA_SATA_ATAP_SRST_DEASSERT)
 
#define AGSA_SATA_PROTOCOL_D2H_PKT   (AGSA_SATA_REQTYPE | AGSA_DIR_CONTROLLER_TO_HOST | AGSA_SATA_ATAP_PKT)
 
#define AGSA_SATA_PROTOCOL_H2D_PKT   (AGSA_SATA_REQTYPE | AGSA_DIR_HOST_TO_CONTROLLER | AGSA_SATA_ATAP_PKT)
 
#define AGSA_SATA_PROTOCOL_NON_PKT   (AGSA_SATA_REQTYPE | AGSA_DIR_NONE | AGSA_SATA_ATAP_PKT)
 
#define AGSA_SATA_PROTOCOL_NON_DATA_M   (AGSA_SATA_REQTYPE | AGSA_DIR_NONE | AGSA_SATA_ATAP_NON_DATA | AGSA_MSG)
 
#define AGSA_SATA_PROTOCOL_PIO_READ_M   (AGSA_SATA_REQTYPE | AGSA_DIR_CONTROLLER_TO_HOST | AGSA_SATA_ATAP_PIO | AGSA_MSG)
 
#define AGSA_SATA_PROTOCOL_DMA_READ_M   (AGSA_SATA_REQTYPE | AGSA_DIR_CONTROLLER_TO_HOST | AGSA_SATA_ATAP_DMA | AGSA_MSG)
 
#define AGSA_SATA_PROTOCOL_FPDMA_READ_M   (AGSA_SATA_REQTYPE | AGSA_DIR_CONTROLLER_TO_HOST | AGSA_SATA_ATAP_NCQ | AGSA_MSG)
 
#define AGSA_SATA_PROTOCOL_PIO_WRITE_M   (AGSA_SATA_REQTYPE | AGSA_DIR_HOST_TO_CONTROLLER | AGSA_SATA_ATAP_PIO | AGSA_MSG)
 
#define AGSA_SATA_PROTOCOL_DMA_WRITE_M   (AGSA_SATA_REQTYPE | AGSA_DIR_HOST_TO_CONTROLLER | AGSA_SATA_ATAP_DMA | AGSA_MSG)
 
#define AGSA_SATA_PROTOCOL_FPDMA_WRITE_M   (AGSA_SATA_REQTYPE | AGSA_DIR_HOST_TO_CONTROLLER | AGSA_SATA_ATAP_NCQ | AGSA_MSG)
 
#define AGSA_SATA_PROTOCOL_D2H_PKT_M   (AGSA_SATA_REQTYPE | AGSA_DIR_CONTROLLER_TO_HOST | AGSA_SATA_ATAP_PKT | AGSA_MSG)
 
#define AGSA_SATA_PROTOCOL_H2D_PKT_M   (AGSA_SATA_REQTYPE | AGSA_DIR_HOST_TO_CONTROLLER | AGSA_SATA_ATAP_PKT | AGSA_MSG)
 
#define AGSA_SATA_PROTOCOL_NON_PKT_M   (AGSA_SATA_REQTYPE | AGSA_DIR_NONE | AGSA_SATA_ATAP_PKT | AGSA_MSG)
 
#define AGSA_SATA_PROTOCOL_DEV_RESET_M   (AGSA_SATA_REQTYPE | AGSA_DIR_NONE | AGSA_SATA_ATAP_PKT_DEVRESET | AGSA_MSG)
 
#define AGSA_INTERRUPT_HANDLE_ALL_CHANNELS   0xFFFFFFFF
 
#define AGSA_IBQ_PRIORITY_NORMAL   0x0
 
#define AGSA_IBQ_PRIORITY_HIGH   0x1
 
#define AGSA_PHY_MAX_LINK_RATE_MASK   0x0000000F /* bits 0-3 */
 
#define AGSA_PHY_MAX_LINK_RATE_1_5G   0x00000001 /* 0001b */
 
#define AGSA_PHY_MAX_LINK_RATE_3_0G   0x00000002 /* 0010b */
 
#define AGSA_PHY_MAX_LINK_RATE_6_0G   0x00000004 /* 0100b */
 
#define AGSA_PHY_MAX_LINK_RATE_12_0G   0x00000008 /* 1000b */
 
#define AGSA_PHY_MODE_MASK   0x00000030 /* bits 4-5 */
 
#define AGSA_PHY_MODE_SAS   0x00000010 /* 01b */
 
#define AGSA_PHY_MODE_SATA   0x00000020 /* 10b */
 
#define AGSA_PHY_SPIN_UP_HOLD_MASK   0x00000040 /* bit6 */
 
#define AGSA_PHY_SPIN_UP_HOLD_ON   0x00000040 /* 1b */
 
#define AGSA_PHY_SPIN_UP_HOLD_OFF   0x00000000 /* 0b */
 
#define AGSA_DEV_INFO_SASSATA_MASK   0x00000010 /* bit 4 */
 
#define AGSA_DEV_INFO_SASSATA_SAS   0x00000010 /* 1b */
 
#define AGSA_DEV_INFO_SASSATA_SATA   0x00000000 /* 0b */
 
#define AGSA_DEV_INFO_RATE_MASK   0x0000000F /* bits 0-3 */
 
#define AGSA_DEV_INFO_RATE_1_5G   0x00000008 /* 8h */
 
#define AGSA_DEV_INFO_RATE_3_0G   0x00000009 /* 9h */
 
#define AGSA_DEV_INFO_RATE_6_0G   0x0000000A /* Ah */
 
#define AGSA_DEV_INFO_RATE_12_0G   0x0000000B /* Bh */
 
#define AGSA_DEV_INFO_DEV_TYPE_MASK   0x000000E0 /* bits 5-7 */
 
#define AGSA_DEV_INFO_DEV_TYPE_END_DEVICE   0x00000020 /* 001b */
 
#define AGSA_DEV_INFO_DEV_TYPE_EDGE_EXP_DEVICE   0x00000040 /* 010b */
 
#define AGSA_DEV_INFO_DEV_TYPE_FANOUT_EXP_DEVICE   0x00000060 /* 011b */
 
#define AGSA_ABORT_TASK   0x01
 
#define AGSA_ABORT_TASK_SET   0x02
 
#define AGSA_CLEAR_TASK_SET   0x04
 
#define AGSA_LOGICAL_UNIT_RESET   0x08
 
#define AGSA_IT_NEXUS_RESET   0x10
 
#define AGSA_CLEAR_ACA   0x40
 
#define AGSA_QUERY_TASK   0x80
 
#define AGSA_QUERY_TASK_SET   0x81
 
#define AGSA_QUERY_UNIT_ATTENTION   0x82
 
#define AGSA_TASK_MANAGEMENT_FUNCTION_COMPLETE   0x0
 
#define AGSA_INVALID_FRAME   0x2
 
#define AGSA_TASK_MANAGEMENT_FUNCTION_NOT_SUPPORTED   0x4
 
#define AGSA_TASK_MANAGEMENT_FUNCTION_FAILED   0x5
 
#define AGSA_TASK_MANAGEMENT_FUNCTION_SUCCEEDED   0x8
 
#define AGSA_INCORRECT_LOGICAL_UNIT_NUMBER   0x9
 
#define AGSA_OVERLAPPED_TAG_ATTEMPTED   0xA
 
#define AGSA_SATA_BSY_OVERRIDE   0x00080000
 
#define AGSA_SATA_CLOSE_CLEAR_AFFILIATION   0x00400000
 
#define AGSA_MAX_SMPPAYLOAD_VIA_SFO   40
 
#define AGSA_MAX_SSPPAYLOAD_VIA_SFO   36
 
#define AGSA_RETURN_D2H_FIS_GOOD_COMPLETION   0x000001
 
#define AGSA_SATA_ENABLE_ENCRYPTION   0x000004
 
#define AGSA_SATA_ENABLE_DIF   0x000008
 
#define AGSA_SATA_SKIP_QWORD   0xFFFF00
 
#define AGSA_SAS_ENABLE_ENCRYPTION   0x0004
 
#define AGSA_SAS_ENABLE_DIF   0x0008
 
#define AGSA_SAS_ENABLE_SKIP_MASK   0x0010
 
#define AGSA_SAS_SKIP_MASK_OFFSET   0xFFE0
 
#define AGSA_PHY_CONTROL_LINK_RESET_OP   0x1
 
#define AGSA_PHY_CONTROL_HARD_RESET_OP   0x2
 
#define AGSA_PHY_CONTROL_DISABLE   0x3
 
#define AGSA_PHY_CONTROL_CLEAR_ERROR_LOG_OP   0x5
 
#define AGSA_PHY_CONTROL_CLEAR_AFFILIATION   0x6
 
#define AGSA_PHY_CONTROL_XMIT_SATA_PS_SIGNAL   0x7
 
#define AGSA_SAS_DIAG_START   0x1
 
#define AGSA_SAS_DIAG_END   0x0
 
#define AGSA_PORT_SET_SMP_PHY_WIDTH   0x1
 
#define AGSA_PORT_SET_PORT_RECOVERY_TIME   0x2
 
#define AGSA_PORT_IO_ABORT   0x3
 
#define AGSA_PORT_SET_PORT_RESET_TIME   0x4
 
#define AGSA_PORT_HARD_RESET   0x5
 
#define AGSA_PORT_CLEAN_UP   0x6
 
#define AGSA_STOP_PORT_RECOVERY_TIMER   0x7
 
#define SA_DS_OPERATIONAL   0x1
 
#define SA_DS_PORT_IN_RESET   0x2
 
#define SA_DS_IN_RECOVERY   0x3
 
#define SA_DS_IN_ERROR   0x4
 
#define SA_DS_NON_OPERATIONAL   0x7
 
#define OSSA_SUCCESS   0x00
 
#define OSSA_FAILURE   0x01
 
#define OSSA_RESET_PENDING   0x03
 
#define OSSA_CHIP_FAILED   0x04
 
#define OSSA_FREEZE_FAILED   0x05
 
#define OSSA_PHY_CONTROL_FAILURE   0x03
 
#define OSSA_FAILURE_OUT_OF_RESOURCE   0x01
 
#define OSSA_FAILURE_DEVICE_ALREADY_REGISTERED   0x02
 
#define OSSA_FAILURE_INVALID_PHY_ID   0x03
 
#define OSSA_FAILURE_PHY_ID_ALREADY_REGISTERED   0x04
 
#define OSSA_FAILURE_PORT_ID_OUT_OF_RANGE   0x05
 
#define OSSA_FAILURE_PORT_NOT_VALID_STATE   0x06
 
#define OSSA_FAILURE_DEVICE_TYPE_NOT_VALID   0x07
 
#define OSSA_ERR_DEVICE_HANDLE_UNAVAILABLE   0x1020
 
#define OSSA_ERR_DEVICE_ALREADY_REGISTERED   0x1021
 
#define OSSA_ERR_DEVICE_TYPE_NOT_VALID   0x1022
 
#define OSSA_MPI_ERR_DEVICE_ACCEPT_PENDING   0x1027
 
#define OSSA_ERR_PORT_INVALID   0x1041
 
#define OSSA_ERR_PORT_STATE_NOT_VALID   0x1042
 
#define OSSA_ERR_PORT_SMP_PHY_WIDTH_EXCEED   0x1045
 
#define OSSA_ERR_PHY_ID_INVALID   0x1061
 
#define OSSA_ERR_PHY_ID_ALREADY_REGISTERED   0x1062
 
#define OSSA_INVALID_HANDLE   0x02
 
#define OSSA_ERR_DEVICE_HANDLE_INVALID   0x1023 /* MPI_ERR_DEVICE_HANDLE_INVALID The device handle associated with DEVICE_ID does not exist. */
 
#define OSSA_ERR_DEVICE_BUSY   0x1024 /* MPI_ERR_DEVICE_BUSY Device has outstanding I/Os. */
 
#define OSSA_RC_ACCEPT   0x00
 
#define OSSA_RC_REJECT   0x01
 
#define OSSA_INVALID_STATE   0x0001
 
#define OSSA_ERR_DEVICE_NEW_STATE_INVALID   0x1025
 
#define OSSA_ERR_DEVICE_STATE_CHANGE_NOT_ALLOWED   0x1026
 
#define OSSA_ERR_DEVICE_STATE_INVALID   0x0049
 
#define OSSA_DIAG_SUCCESS   0x00 /* Successful SAS diagnostic command. */
 
#define OSSA_DIAG_INVALID_COMMAND   0x01 /* Invalid SAS diagnostic command. */
 
#define OSSA_REGISTER_ACCESS_TIMEOUT   0x02 /* Register access has been timed-out. This is applicable only to the SPCv controller. */
 
#define OSSA_DIAG_FAIL   0x02 /* SAS diagnostic command failed. This is applicable only to the SPC controller. */
 
#define OSSA_DIAG_NOT_IN_DIAGNOSTIC_MODE   0x03 /* Attempted to execute SAS diagnostic command but PHY is not in diagnostic mode */
 
#define OSSA_DIAG_INVALID_PHY   0x04 /* Attempted to execute SAS diagnostic command on an invalid/out-of-range PHY. */
 
#define OSSA_MEMORY_ALLOC_FAILURE   0x05 /* Memory allocation failed in diagnostic. This is applicable only to the SPCv controller. */
 
#define OSSA_DIAG_SE_SUCCESS   0x00
 
#define OSSA_DIAG_SE_INVALID_PHY_ID   0x01
 
#define OSSA_DIAG_PHY_NOT_DISABLED   0x02
 
#define OSSA_DIAG_OTHER_FAILURE   0x03 /* SPC */
 
#define OSSA_DIAG_OPCODE_INVALID   0x03
 
#define OSSA_PORT_CONTROL_FAILURE   0x03
 
#define OSSA_MPI_ERR_PORT_IO_RESOURCE_UNAVAILABLE   0x1004
 
#define OSSA_MPI_ERR_PORT_INVALID   0x1041
 
#define OSSA_MPI_ERR_PORT_OP_NOT_IN_USE   0x1043
 
#define OSSA_MPI_ERR_PORT_OP_NOT_SUPPORTED   0x1044
 
#define OSSA_MPI_ERR_PORT_SMP_WIDTH_EXCEEDED   0x1045
 
#define OSSA_MPI_ERR_PORT_NOT_IN_CORRECT_STATE   0x1047
 
#define GET_GSM_SM_INFO   0x02
 
#define GET_IOST_RB_INFO   0x03
 
#define OSSA_HW_EVENT_RESET_START   0x01
 
#define OSSA_HW_EVENT_RESET_COMPLETE   0x02
 
#define OSSA_HW_EVENT_PHY_STOP_STATUS   0x03
 
#define OSSA_HW_EVENT_SAS_PHY_UP   0x04
 
#define OSSA_HW_EVENT_SATA_PHY_UP   0x05
 
#define OSSA_HW_EVENT_SATA_SPINUP_HOLD   0x06
 
#define OSSA_HW_EVENT_PHY_DOWN   0x07
 
#define OSSA_HW_EVENT_BROADCAST_CHANGE   0x09
 
#define OSSA_HW_EVENT_PHY_ERROR   0x0A
 
#define OSSA_HW_EVENT_BROADCAST_SES   0x0B
 
#define OSSA_HW_EVENT_PHY_ERR_INBOUND_CRC   0x0C
 
#define OSSA_HW_EVENT_HARD_RESET_RECEIVED   0x0D
 
#define OSSA_HW_EVENT_MALFUNCTION   0x0E
 
#define OSSA_HW_EVENT_ID_FRAME_TIMEOUT   0x0F
 
#define OSSA_HW_EVENT_BROADCAST_EXP   0x10
 
#define OSSA_HW_EVENT_PHY_START_STATUS   0x11
 
#define OSSA_HW_EVENT_PHY_ERR_INVALID_DWORD   0x12
 
#define OSSA_HW_EVENT_PHY_ERR_DISPARITY_ERROR   0x13
 
#define OSSA_HW_EVENT_PHY_ERR_CODE_VIOLATION   0x14
 
#define OSSA_HW_EVENT_PHY_ERR_LOSS_OF_DWORD_SYNCH   0x15
 
#define OSSA_HW_EVENT_PHY_ERR_PHY_RESET_FAILED   0x16
 
#define OSSA_HW_EVENT_PORT_RECOVERY_TIMER_TMO   0x17
 
#define OSSA_HW_EVENT_PORT_RECOVER   0x18
 
#define OSSA_HW_EVENT_PORT_RESET_TIMER_TMO   0x19
 
#define OSSA_HW_EVENT_PORT_RESET_COMPLETE   0x20
 
#define OSSA_HW_EVENT_BROADCAST_ASYNCH_EVENT   0x21
 
#define OSSA_HW_EVENT_IT_NEXUS_LOSS   0x22
 
#define OSSA_HW_EVENT_OPEN_RETRY_BACKOFF_THR_ADJUSTED   0x25
 
#define OSSA_HW_EVENT_ENCRYPTION   0x83
 
#define OSSA_HW_EVENT_MODE   0x84
 
#define OSSA_HW_EVENT_SECURITY_MODE   0x85
 
#define OSSA_PORT_NOT_ESTABLISHED   0x00
 
#define OSSA_PORT_VALID   0x01
 
#define OSSA_PORT_LOSTCOMM   0x02
 
#define OSSA_PORT_IN_RESET   0x04
 
#define OSSA_PORT_3RDPARTY_RESET   0x07
 
#define OSSA_PORT_INVALID   0x08
 
#define OSSA_CTL_SUCCESS   0x0000
 
#define OSSA_CTL_INVALID_CONFIG_PAGE   0x1001
 
#define OSSA_CTL_INVALID_PARAM_IN_CONFIG_PAGE   0x1002
 
#define OSSA_CTL_INVALID_ENCRYPTION_SECURITY_MODE   0x1003
 
#define OSSA_CTL_RESOURCE_NOT_AVAILABLE   0x1004
 
#define OSSA_CTL_CONTROLLER_NOT_IDLE   0x1005
 
#define OSSA_CTL_OPERATOR_AUTHENTICATION_FAILURE   0x100XX
 
#define OSSA_INBOUND_V_BIT_NOT_SET   0x01
 
#define OSSA_INBOUND_OPC_NOT_SUPPORTED   0x02
 
#define OSSA_INBOUND_IOMB_INVALID_OBID   0x03
 
#define OSSA_FLASH_UPDATE_COMPLETE_PENDING_REBOOT   0x00
 
#define OSSA_FLASH_UPDATE_IN_PROGRESS   0x01
 
#define OSSA_FLASH_UPDATE_HDR_ERR   0x02
 
#define OSSA_FLASH_UPDATE_OFFSET_ERR   0x03
 
#define OSSA_FLASH_UPDATE_CRC_ERR   0x04
 
#define OSSA_FLASH_UPDATE_LENGTH_ERR   0x05
 
#define OSSA_FLASH_UPDATE_HW_ERR   0x06
 
#define OSSA_FLASH_UPDATE_HMAC_ERR   0x0E
 
#define OSSA_FLASH_UPDATE_DNLD_NOT_SUPPORTED   0x10
 
#define OSSA_FLASH_UPDATE_DISABLED   0x11
 
#define OSSA_FLASH_FWDNLD_DEVICE_UNSUPPORT   0x12
 
#define OSSA_DISCOVER_STARTED   0x00
 
#define OSSA_DISCOVER_FOUND_DEVICE   0x01
 
#define OSSA_DISCOVER_REMOVED_DEVICE   0x02
 
#define OSSA_DISCOVER_COMPLETE   0x03
 
#define OSSA_DISCOVER_ABORT   0x04
 
#define OSSA_DISCOVER_ABORT_ERROR_1   0x05
 
#define OSSA_DISCOVER_ABORT_ERROR_2   0x06
 
#define OSSA_DISCOVER_ABORT_ERROR_3   0x07
 
#define OSSA_DISCOVER_ABORT_ERROR_4   0x08
 
#define OSSA_DISCOVER_ABORT_ERROR_5   0x09
 
#define OSSA_DISCOVER_ABORT_ERROR_6   0x0A
 
#define OSSA_DISCOVER_ABORT_ERROR_7   0x0B
 
#define OSSA_DISCOVER_ABORT_ERROR_8   0x0C
 
#define OSSA_DISCOVER_ABORT_ERROR_9   0x0D
 
#define OSSA_DEBUG_LEVEL_0   0x00
 
#define OSSA_DEBUG_LEVEL_1   0x01
 
#define OSSA_DEBUG_LEVEL_2   0x02
 
#define OSSA_DEBUG_LEVEL_3   0x03
 
#define OSSA_DEBUG_LEVEL_4   0x04
 
#define OSSA_DEBUG_PRINT_INVALID_NUMBER   0xFFFFFFFF
 
#define OSSA_FRAME_TYPE_SSP_CMD   0x06
 
#define OSSA_FRAME_TYPE_SSP_TASK   0x16
 
#define OSSA_EVENT_SOURCE_DEVICE_HANDLE_ADDED   0x00
 
#define OSSA_EVENT_SOURCE_DEVICE_HANDLE_REMOVED   0x01
 
#define OSSA_DEV_INFO_INVALID_HANDLE   0x01
 
#define OSSA_DEV_INFO_NO_EXTENDED_INFO   0x02
 
#define OSSA_DEV_INFO_SAS_EXTENDED_INFO   0x03
 
#define OSSA_DEV_INFO_SATA_EXTENDED_INFO   0x04
 
#define AGSA_CMD_TYPE_DIAG_OPRN_PERFORM   0x00
 
#define AGSA_CMD_TYPE_DIAG_OPRN_STOP   0x01
 
#define AGSA_CMD_TYPE_DIAG_THRESHOLD_SPECIFY   0x02
 
#define AGSA_CMD_TYPE_DIAG_RECEIVE_ENABLE   0x03
 
#define AGSA_CMD_TYPE_DIAG_REPORT_GET   0x04
 
#define AGSA_CMD_TYPE_DIAG_ERR_CNT_RESET   0x05
 
#define AGSA_CMD_DESC_PRBS   0x00
 
#define AGSA_CMD_DESC_CJTPAT   0x01
 
#define AGSA_CMD_DESC_USR_PATTERNS   0x02
 
#define AGSA_CMD_DESC_PRBS_ERR_INSERT   0x08
 
#define AGSA_CMD_DESC_PRBS_INVERT   0x09
 
#define AGSA_CMD_DESC_CJTPAT_INVERT   0x0A
 
#define AGSA_CMD_DESC_CODE_VIOL_INSERT   0x0B
 
#define AGSA_CMD_DESC_DISP_ERR_INSERT   0x0C
 
#define AGSA_CMD_DESC_SSPA_PERF_EVENT_1   0x0E
 
#define AGSA_CMD_DESC_LINE_SIDE_ANA_LPBK   0x10
 
#define AGSA_CMD_DESC_LINE_SIDE_DIG_LPBK   0x11
 
#define AGSA_CMD_DESC_SYS_SIDE_ANA_LPBK   0x12
 
#define AGSA_CMD_DESC_PRBS_ERR_CNT   0x00
 
#define AGSA_CMD_DESC_CODE_VIOL_ERR_CNT   0x01
 
#define AGSA_CMD_DESC_DISP_ERR_CNT   0x02
 
#define AGSA_CMD_DESC_LOST_DWD_SYNC_CNT   0x05
 
#define AGSA_CMD_DESC_INVALID_DWD_CNT   0x06
 
#define AGSA_CMD_DESC_CODE_VIOL_ERR_CNT_THHD   0x09
 
#define AGSA_CMD_DESC_DISP_ERR_CNT_THHD   0x0A
 
#define AGSA_CMD_DESC_SSPA_PERF_CNT   0x0B
 
#define AGSA_CMD_DESC_PHY_RST_CNT   0x0C
 
#define AGSA_CMD_DESC_SSPA_PERF_1_THRESHOLD   0x0E
 
#define AGSA_CMD_DESC_CODE_VIOL_ERR_THHD   0x19
 
#define AGSA_CMD_DESC_DISP_ERR_THHD   0x1A
 
#define AGSA_CMD_DESC_RX_LINK_BANDWIDTH   0x1B
 
#define AGSA_CMD_DESC_TX_LINK_BANDWIDTH   0x1C
 
#define AGSA_CMD_DESC_ALL   0x1F
 
#define AGSA_NVMD_TWI_DEVICES   0x00
 
#define AGSA_NVMD_CONFIG_SEEPROM   0x01
 
#define AGSA_NVMD_VPD_FLASH   0x04
 
#define AGSA_NVMD_AAP1_REG_FLASH   0x05
 
#define AGSA_NVMD_IOP_REG_FLASH   0x06
 
#define AGSA_NVMD_EXPANSION_ROM   0x07
 
#define AGSA_NVMD_REG_FLASH   0x05
 
#define OSSA_NVMD_SUCCESS   0x0000
 
#define OSSA_NVMD_MODE_ERROR   0x0001
 
#define OSSA_NVMD_LENGTH_ERROR   0x0002
 
#define OSSA_NVMD_TWI_ADDRESS_SIZE_ERROR   0x0005
 
#define OSSA_NVMD_TWI_NACK_ERROR   0x2001
 
#define OSSA_NVMD_TWI_LOST_ARB_ERROR   0x2002
 
#define OSSA_NVMD_TWI_TIMEOUT_ERROR   0x2021
 
#define OSSA_NVMD_TWI_BUS_NACK_ERROR   0x2081
 
#define OSSA_NVMD_TWI_ARB_FAILED_ERROR   0x2082
 
#define OSSA_NVMD_TWI_BUS_TIMEOUT_ERROR   0x20FF
 
#define OSSA_NVMD_FLASH_PARTITION_NUM_ERROR   0x9001
 
#define OSSA_NVMD_FLASH_LENGTH_TOOBIG_ERROR   0x9002
 
#define OSSA_NVMD_FLASH_PROGRAM_ERROR   0x9003
 
#define OSSA_NVMD_FLASH_DEVICEID_ERROR   0x9004
 
#define OSSA_NVMD_FLASH_VENDORID_ERROR   0x9005
 
#define OSSA_NVMD_FLASH_ERASE_TIMEOUT_ERROR   0x9006
 
#define OSSA_NVMD_FLASH_ERASE_ERROR   0x9007
 
#define OSSA_NVMD_FLASH_BUSY_ERROR   0x9008
 
#define OSSA_NVMD_FLASH_NOT_SUPPORT_DEVICE_ERROR   0x9009
 
#define OSSA_NVMD_FLASH_CFI_INF_ERROR   0x900A
 
#define OSSA_NVMD_FLASH_MORE_ERASE_BLOCK_ERROR   0x900B
 
#define OSSA_NVMD_FLASH_READ_ONLY_ERROR   0x900C
 
#define OSSA_NVMD_FLASH_MAP_TYPE_ERROR   0x900D
 
#define OSSA_NVMD_FLASH_MAP_DISABLE_ERROR   0x900E
 
#define OSSA_HW_ENCRYPT_KEK_UPDATE   0x0000
 
#define OSSA_HW_ENCRYPT_KEK_UPDATE_AND_STORE   0x0001
 
#define OSSA_HW_ENCRYPT_KEK_INVALIDTE   0x0002
 
#define OSSA_HW_ENCRYPT_DEK_UPDATE   0x0003
 
#define OSSA_HW_ENCRYPT_DEK_INVALIDTE   0x0004
 
#define OSSA_HW_ENCRYPT_OPERATOR_MANAGEMENT   0x0005
 
#define OSSA_HW_ENCRYPT_TEST_EXECUTE   0x0006
 
#define OSSA_HW_ENCRYPT_SET_OPERATOR   0x0007
 
#define OSSA_HW_ENCRYPT_GET_OPERATOR   0x0008
 
#define OSSA_INVALID_ENCRYPTION_SECURITY_MODE   0x1003
 
#define OSSA_KEK_MGMT_SUBOP_NOT_SUPPORTED_   0x2000 /*not in PM 101222*/
 
#define OSSA_DEK_MGMT_SUBOP_NOT_SUPPORTED   0x2000
 
#define OSSA_MPI_ENC_ERR_ILLEGAL_DEK_PARAM   0x2001
 
#define OSSA_MPI_ERR_DEK_MANAGEMENT_DEK_UNWRAP_FAIL   0x2002
 
#define OSSA_MPI_ENC_ERR_ILLEGAL_KEK_PARAM   0x2021
 
#define OSSA_MPI_ERR_KEK_MANAGEMENT_KEK_UNWRAP_FAIL   0x2022
 
#define OSSA_MPI_ERR_KEK_MANAGEMENT_NVRAM_OPERATION_FAIL   0x2023
 
#define OSSA_OPR_MGMT_OP_NOT_SUPPORTED   0x2060
 
#define OSSA_MPI_ENC_ERR_OPR_PARAM_ILLEGAL   0x2061
 
#define OSSA_MPI_ENC_ERR_OPR_ID_NOT_FOUND   0x2062
 
#define OSSA_MPI_ENC_ERR_OPR_ROLE_NOT_MATCH   0x2063
 
#define OSSA_MPI_ENC_ERR_OPR_MAX_NUM_EXCEEDED   0x2064
 
#define OSSA_MPI_ENC_ERR_CONTROLLER_NOT_IDLE   0x1005
 
#define OSSA_MPI_ENC_NVM_MEM_ACCESS_ERR   0x100B
 
#define agsaEncryptSMF   0x00000000
 
#define agsaEncryptSMA   0x00000100
 
#define agsaEncryptSMB   0x00000200
 
#define agsaEncryptReturnSMF   (1 << 12)
 
#define agsaEncryptAuthorize   (1 << 13)
 
#define agsaEncryptAcmMask   0x00ff0000
 
#define agsaEncryptEnableAES_ECB   (1 << 16)
 
#define agsaEncryptEnableAES_XTS   (1 << 22)
 
#define agsaEncryptCipherModeECB   0x00000001
 
#define agsaEncryptCipherModeXTS   0x00000002
 
#define agsaEncryptStatusNoNVRAM   0x00000001
 
#define agsaEncryptStatusNVRAMErr   0x00000002
 
#define agsaEncryptSectorSize512   0
 
#define agsaEncryptSectorSize4096   2
 
#define agsaEncryptSectorSize4160   3
 
#define agsaEncryptSectorSize4224   4
 
#define agsaEncryptDIFSectorSize520   (agsaEncryptSectorSize512 | 0x18)
 
#define agsaEncryptDIFSectorSize528   ( 0x19)
 
#define agsaEncryptDIFSectorSize4104   (agsaEncryptSectorSize4096 | 0x18)
 
#define agsaEncryptDIFSectorSize4168   (agsaEncryptSectorSize4160 | 0x18)
 
#define agsaEncryptDIFSectorSize4232   (agsaEncryptSectorSize4224 | 0x18)
 
#define AGSA_ENCRYPT_STORE_NVRAM   1
 
#define agsaModePageGet   1
 
#define agsaModePageSet   2
 
#define AGSA_READ_SGPIO_REGISTER   0x02
 
#define AGSA_WRITE_SGPIO_REGISTER   0x82
 
#define AGSA_SGPIO_CONFIG_REG   0x0
 
#define AGSA_SGPIO_DRIVE_BY_DRIVE_RECEIVE_REG   0x1
 
#define AGSA_SGPIO_GENERAL_PURPOSE_RECEIVE_REG   0x2
 
#define AGSA_SGPIO_DRIVE_BY_DRIVE_TRANSMIT_REG   0x3
 
#define AGSA_SGPIO_GENERAL_PURPOSE_TRANSMIT_REG   0x4
 
#define OSSA_SGPIO_COMMAND_SUCCESS   0x00
 
#define OSSA_SGPIO_CMD_ERROR_WRONG_FRAME_TYPE   0x01
 
#define OSSA_SGPIO_CMD_ERROR_WRONG_REG_TYPE   0x02
 
#define OSSA_SGPIO_CMD_ERROR_WRONG_REG_INDEX   0x03
 
#define OSSA_SGPIO_CMD_ERROR_WRONG_REG_COUNT   0x04
 
#define OSSA_SGPIO_CMD_ERROR_WRONG_FRAME_REG_TYPE   0x05
 
#define OSSA_SGPIO_CMD_ERROR_WRONG_FUNCTION   0x06
 
#define OSSA_SGPIO_CMD_ERROR_WRONG_FRAME_TYPE_REG_INDEX   0x19
 
#define OSSA_SGPIO_CMD_ERROR_WRONG_FRAME_TYPE_REG_CNT   0x81
 
#define OSSA_SGPIO_CMD_ERROR_WRONG_REG_TYPE_REG_INDEX   0x1A
 
#define OSSA_SGPIO_CMD_ERROR_WRONG_REG_TYPE_REG_COUNT   0x82
 
#define OSSA_SGPIO_CMD_ERROR_WRONG_REG_INDEX_REG_COUNT   0x83
 
#define OSSA_SGPIO_CMD_ERROR_WRONG_FRAME_REG_TYPE_REG_INDEX   0x1D
 
#define OSSA_SGPIO_CMD_ERROR_WRONG_ALL_HEADER_PARAMS   0x9D
 
#define OSSA_SGPIO_MAX_READ_DATA_COUNT   0x0D
 
#define OSSA_SGPIO_MAX_WRITE_DATA_COUNT   0x0C
 
#define OSSA_DFE_MPI_IO_SUCCESS   0x0000
 
#define OSSA_DFE_DATA_OVERFLOW   0x0002
 
#define OSSA_DFE_MPI_ERR_RESOURCE_UNAVAILABLE   0x1004
 
#define OSSA_DFE_CHANNEL_DOWN   0x100E
 
#define OSSA_DFE_MEASUREMENT_IN_PROGRESS   0x100F
 
#define OSSA_DFE_CHANNEL_INVALID   0x1010
 
#define OSSA_DFE_DMA_FAILURE   0x1011
 
#define MAX_INDEX   10
 
#define TYPE_GSM_SPACE   1
 
#define TYPE_QUEUE   2
 
#define TYPE_FATAL   3
 
#define TYPE_NON_FATAL   4
 
#define TYPE_INBOUND_QUEUE   5
 
#define TYPE_OUTBOUND_QUEUE   6
 
#define BAR_SHIFT_GSM_OFFSET   0x400000
 
#define ONE_MEGABYTE   0x100000
 
#define SIXTYFOURKBYTE   (1024 * 64)
 
#define TYPE_INBOUND   1
 
#define TYPE_OUTBOUND   2
 
#define OSSA_PCIE_DIAG_SUCCESS   0x0000
 
#define OSSA_PCIE_DIAG_INVALID_COMMAND   0x0001
 
#define OSSA_PCIE_DIAG_INTERNAL_FAILURE   0x0002
 
#define OSSA_PCIE_DIAG_INVALID_CMD_TYPE   0x1006
 
#define OSSA_PCIE_DIAG_INVALID_CMD_DESC   0x1007
 
#define OSSA_PCIE_DIAG_INVALID_PCIE_ADDR   0x1008
 
#define OSSA_PCIE_DIAG_INVALID_BLOCK_SIZE   0x1009
 
#define OSSA_PCIE_DIAG_LENGTH_NOT_BLOCK_SIZE_ALIGNED   0x100A
 
#define OSSA_PCIE_DIAG_IO_XFR_ERROR_DIF_MISMATCH   0x3000
 
#define OSSA_PCIE_DIAG_IO_XFR_ERROR_DIF_APPLICATION_TAG_MISMATCH   0x3001
 
#define OSSA_PCIE_DIAG_IO_XFR_ERROR_DIF_REFERENCE_TAG_MISMATCH   0x3002
 
#define OSSA_PCIE_DIAG_IO_XFR_ERROR_DIF_CRC_MISMATCH   0x3003
 
#define OSSA_PCIE_DIAG_MPI_ERR_INVALID_LENGTH   0x0042
 
#define OSSA_PCIE_DIAG_MPI_ERR_IO_RESOURCE_UNAVAILABLE   0x1004
 
#define OSSA_PCIE_DIAG_MPI_ERR_CONTROLLER_NOT_IDLE   0x1005
 
#define OQ_SHARE_PATH_BIT   0x00000001
 
#define DISABLE_LOGGING   0x0
 
#define CRITICAL_ERROR   0x1
 
#define WARNING   0x2
 
#define NOTICE   0x3
 
#define INFORMATION   0x4
 
#define DEBUGGING   0x5
 
#define DEV_INFO_MASK   0xFF
 
#define DEV_INFO_MCN_SHIFT   16
 
#define DEV_INFO_IR_SHIFT   20
 
#define RETRY_DEVICE_FLAG   (1 << SHIFT0)
 
#define AWT_DEVICE_FLAG   (1 << SHIFT1)
 
#define SSP_DEVICE_FLAG   (1 << SHIFT20)
 
#define ATAPI_DEVICE_FLAG   0x200000 /* bit21 */
 
#define XFER_RDY_PRIORTY_DEVICE_FLAG   (1 << SHIFT22)
 
#define DEV_LINK_RATE   0x3F
 
#define SA_DEVINFO_GET_SAS_ADDRESSLO(devInfo)    DMA_BEBIT32_TO_BIT32(*(bit32 *)(devInfo)->sasAddressLo)
 
#define SA_DEVINFO_GET_SAS_ADDRESSHI(devInfo)    DMA_BEBIT32_TO_BIT32(*(bit32 *)(devInfo)->sasAddressHi)
 
#define SA_DEVINFO_GET_DEVICETTYPE(devInfo)    (((devInfo)->devType_S_Rate & 0xC0) >> 5)
 
#define SA_DEVINFO_PUT_SAS_ADDRESSLO(devInfo, src32)    *(bit32 *)((devInfo)->sasAddressLo) = BIT32_TO_DMA_BEBIT32(src32)
 
#define SA_DEVINFO_PUT_SAS_ADDRESSHI(devInfo, src32)    *(bit32 *)((devInfo)->sasAddressHi) = BIT32_TO_DMA_BEBIT32(src32)
 
#define SA_SASDEV_SSP_BIT   SA_IDFRM_SSP_BIT /* SSP Initiator port */
 
#define SA_SASDEV_STP_BIT   SA_IDFRM_STP_BIT /* STP Initiator port */
 
#define SA_SASDEV_SMP_BIT   SA_IDFRM_SMP_BIT /* SMP Initiator port */
 
#define SA_SASDEV_SATA_BIT   SA_IDFRM_SATA_BIT /* SATA device, valid in the discovery response only */
 
#define SA_SASDEV_IS_SSP_INITIATOR(sasDev)    (((sasDev)->initiator_ssp_stp_smp & SA_SASDEV_SSP_BIT) == SA_SASDEV_SSP_BIT)
 
#define SA_SASDEV_IS_STP_INITIATOR(sasDev)    (((sasDev)->initiator_ssp_stp_smp & SA_SASDEV_STP_BIT) == SA_SASDEV_STP_BIT)
 
#define SA_SASDEV_IS_SMP_INITIATOR(sasDev)    (((sasDev)->initiator_ssp_stp_smp & SA_SASDEV_SMP_BIT) == SA_SASDEV_SMP_BIT)
 
#define SA_SASDEV_IS_SSP_TARGET(sasDev)    (((sasDev)->target_ssp_stp_smp & SA_SASDEV_SSP_BIT) == SA_SASDEV_SSP_BIT)
 
#define SA_SASDEV_IS_STP_TARGET(sasDev)    (((sasDev)->target_ssp_stp_smp & SA_SASDEV_STP_BIT) == SA_SASDEV_STP_BIT)
 
#define SA_SASDEV_IS_SMP_TARGET(sasDev)    (((sasDev)->target_ssp_stp_smp & SA_SASDEV_SMP_BIT) == SA_SASDEV_SMP_BIT)
 
#define SA_SASDEV_IS_SATA_DEVICE(sasDev)    (((sasDev)->target_ssp_stp_smp & SA_SASDEV_SATA_BIT) == SA_SASDEV_SATA_BIT)
 
#define MAX_CDB_LEN   32
 data structure describes an SSP Command INFORMATION UNIT More...
 
#define DIF_UDT_SIZE   6
 
#define AGSA_DIF_INSERT   0
 
#define AGSA_DIF_VERIFY_FORWARD   1
 
#define AGSA_DIF_VERIFY_DELETE   2
 
#define AGSA_DIF_VERIFY_REPLACE   3
 
#define AGSA_DIF_VERIFY_UDT_REPLACE_CRC   5
 
#define AGSA_DIF_REPLACE_UDT_REPLACE_CRC   7
 
#define agsaDIFSectorSize512   0
 
#define agsaDIFSectorSize520   1
 
#define agsaDIFSectorSize4096   2
 
#define agsaDIFSectorSize4160   3
 
#define DIF_FLAG_BITS_ACTION   0x00000007 /* 0-2*/
 
#define DIF_FLAG_BITS_CRC_VER   0x00000008 /* 3 */
 
#define DIF_FLAG_BITS_CRC_INV   0x00000010 /* 4 */
 
#define DIF_FLAG_BITS_CRC_SEED   0x00000020 /* 5 */
 
#define DIF_FLAG_BITS_UDT_REF_TAG   0x00000040 /* 6 */
 
#define DIF_FLAG_BITS_UDT_APP_TAG   0x00000080 /* 7 */
 
#define DIF_FLAG_BITS_UDTR_REF_BLKCOUNT   0x00000100 /* 8 */
 
#define DIF_FLAG_BITS_UDTR_APP_BLKCOUNT   0x00000200 /* 9 */
 
#define DIF_FLAG_BITS_CUST_APP_TAG   0x00000C00 /* 10 11*/
 
#define DIF_FLAG_BITS_EPRC   0x00001000 /* 12 */
 
#define DIF_FLAG_BITS_Reserved   0x0000E000 /* 13 14 15*/
 
#define DIF_FLAG_BITS_BLOCKSIZE_MASK   0x00070000 /* 16 17 18 */
 
#define DIF_FLAG_BITS_BLOCKSIZE_SHIFT   16
 
#define DIF_FLAG_BITS_BLOCKSIZE_512   0x00000000 /* */
 
#define DIF_FLAG_BITS_BLOCKSIZE_520   0x00010000 /* 16 */
 
#define DIF_FLAG_BITS_BLOCKSIZE_4096   0x00020000 /* 17 */
 
#define DIF_FLAG_BITS_BLOCKSIZE_4160   0x00030000 /* 16 17 */
 
#define DIF_FLAG_BITS_UDTVMASK   0x03F00000 /* 20 21 22 23 24 25 */
 
#define DIF_FLAG_BITS_UDTV_SHIFT   20
 
#define DIF_FLAG_BITS_UDTUPMASK   0xF6000000 /* 26 27 28 29 30 31 */
 
#define DIF_FLAG_BITS_UDTUPSHIFT   26
 
#define SSP_OPTION_BITS   0x3F
 
#define SSP_OPTION_ODS   0x8000
 
#define SSP_OPTION_OTHR_NO_RETRY   0
 
#define SSP_OPTION_OTHR_RETRY_ON_ACK_NAK_TIMEOUT   1
 
#define SSP_OPTION_OTHR_RETRY_ON_NAK_RECEIVED   2
 
#define SSP_OPTION_OTHR_RETRY_ON_BOTH_ACK_NAK_TIMEOUT_AND_NAK_RECEIVED   3
 
#define SSP_OPTION_DATA_NO_RETRY   0
 
#define SSP_OPTION_DATA_RETRY_ON_ACK_NAK_TIMEOUT   1
 
#define SSP_OPTION_DATA_RETRY_ON_NAK_RECEIVED   2
 
#define SSP_OPTION_DATA_RETRY_ON_BOTH_ACK_NAK_TIMEOUT_AND_NAK_RECEIVED   3
 
#define SSP_OPTION_RETRY_DATA_FRAME_ENABLED   (1 << SHIFT4)
 
#define SSP_OPTION_AUTO_GOOD_RESPONSE   (1 << SHIFT5)
 
#define SSP_OPTION_ENCRYPT   (1 << SHIFT6)
 
#define SSP_OPTION_DIF   (1 << SHIFT7)
 
#define SSP_OPTION_OVERRIDE_DEVICE_STATE   (1 << SHIFT15)
 
#define RESP_OPTION_BITS   0x3 /** bit0-1 */
 
#define RESP_OPTION_ODS   0x8000 /** bit15 */
 
#define smpFrameFlagDirectResponse   0
 
#define smpFrameFlagIndirectResponse   1
 
#define smpFrameFlagDirectPayload   0
 
#define smpFrameFlagIndirectPayload   2
 
#define AGSA_SAS_PROTOCOL_TIMER_CONFIG_PAGE   0x04
 
#define AGSA_INTERRUPT_CONFIGURATION_PAGE   0x05
 
#define AGSA_IO_GENERAL_CONFIG_PAGE   0x06
 
#define AGSA_ENCRYPTION_GENERAL_CONFIG_PAGE   0x20
 
#define AGSA_ENCRYPTION_DEK_CONFIG_PAGE   0x21
 
#define AGSA_ENCRYPTION_CONTROL_PARM_PAGE   0x22
 
#define AGSA_ENCRYPTION_HMAC_CONFIG_PAGE   0x23
 
#define AGSA_ENC_CONFIG_PAGE_KEK_NUMBER   0x0000FF00
 
#define AGSA_ENC_CONFIG_PAGE_KEK_SHIFT   8
 
#define AGSA_ENC_DEK_CONFIG_PAGE_DEK_TABLE_NUMBER   0xF0000000
 
#define AGSA_ENC_DEK_CONFIG_PAGE_DEK_TABLE_SHIFT   SHIFT28
 
#define AGSA_ENC_DEK_CONFIG_PAGE_DEK_CACHE_WAY   0x0F000000
 
#define AGSA_ENC_DEK_CONFIG_PAGE_DEK_CACHE_SHIFT   SHIFT24
 
#define OperatorAuthenticationEnable_AUT   1
 
#define ReturnToFactoryMode_ARF   2
 
#define AGSA_BIST_TEST   0x1
 
#define AGSA_HMAC_TEST   0x2
 
#define AGSA_SHA_TEST   0x3
 
#define AGSA_ID_SIZE   31
 
#define SA_OPR_MGMNT_FLAG_MASK   0x00003000
 
#define SA_OPR_MGMNT_FLAG_SHIFT   12
 
#define AGSA_MPI_MAIN_CONFIGURATION_TABLE   1
 
#define AGSA_MPI_GENERAL_STATUS_TABLE   2
 
#define AGSA_MPI_INBOUND_QUEUE_CONFIGURATION_TABLE   3
 
#define AGSA_MPI_OUTBOUND_QUEUE_CONFIGURATION_TABLE   4
 
#define AGSA_MPI_SAS_PHY_ANALOG_SETUP_TABLE   5
 
#define AGSA_MPI_INTERRUPT_VECTOR_TABLE   6
 
#define AGSA_MPI_PER_SAS_PHY_ATTRIBUTE_TABLE   7
 
#define AGSA_MPI_OUTBOUND_QUEUE_FAILOVER_TABLE   8
 
#define SA_RESERVED_REQUEST_COUNT   16
 
#define SIZE_DW   4
 
#define SIZE_QW   8
 
#define PCIBAR0   0
 
#define PCIBAR1   1
 
#define PCIBAR2   2
 
#define PCIBAR3   3
 
#define PCIBAR4   4
 
#define PCIBAR5   5
 
#define MAX_IO_DEVICE_ENTRIES   4096
 
#define SA_PTNFE_POISION_TLP   0 /* Disable if zero default setting */
 
#define SA_MDFD_MULTI_DATA_FETCH   0 /* Enable if zero default setting */
 
#define SA_ARBTE   0 /* Disable if zero default setting */
 
#define SA_OUTBOUND_COALESCE   1 /* Enable if one default setting */
 
#define EnableFPGA_TEST_ICCcontrol   0x01
 
#define EnableFPGA_TEST_ReadDEV   0x02
 
#define EnableFPGA_TEST_WriteCALAll   0x04
 
#define EnableFPGA_TEST_ReconfigSASParams   0x08
 
#define EnableFPGA_TEST_LocalPhyControl   0x10
 
#define EnableFPGA_TEST_PortControl   0x20
 
#define OSSA_ENCRYPT_ENGINE_FAILURE_MASK   0x00FF0000 /* Encrypt Engine failed the BIST Test */
 
#define OSSA_ENCRYPT_SEEPROM_NOT_FOUND   0x01 /* SEEPROM is not installed. This condition is reported based on the bootstrap pin setting. */
 
#define OSSA_ENCRYPT_SEEPROM_IPW_RD_ACCESS_TMO   0x02 /* SEEPROM access timeout detected while reading initialization password or Allowable Cipher Modes. */
 
#define OSSA_ENCRYPT_SEEPROM_IPW_RD_CRC_ERR   0x03 /* CRC Error detected when reading initialization password or Allowable Cipher Modes. */
 
#define OSSA_ENCRYPT_SEEPROM_IPW_INVALID   0x04 /* Initialization password read from SEEPROM doesn't match any valid password value. This could also mean SEEPROM is blank. */
 
#define OSSA_ENCRYPT_SEEPROM_WR_ACCESS_TMO   0x05 /* access timeout detected while writing initialization password or Allowable Cipher Modes. */
 
#define OSSA_ENCRYPT_FLASH_ACCESS_TMO   0x20 /* Timeout while reading flash memory. */
 
#define OSSA_ENCRYPT_FLASH_SECTOR_ERASE_TMO   0x21 /* Flash sector erase timeout while writing to flash memory. */
 
#define OSSA_ENCRYPT_FLASH_SECTOR_ERASE_ERR   0x22 /* Flash sector erase failure while writing to flash memory. */
 
#define OSSA_ENCRYPT_FLASH_ECC_CHECK_ERR   0x23 /* Flash ECC check failure. */
 
#define OSSA_ENCRYPT_FLASH_NOT_INSTALLED   0x24 /* Flash memory not installed, this error is only detected in Security Mode B. */
 
#define OSSA_ENCRYPT_INITIAL_KEK_NOT_FOUND   0x40 /* Initial KEK is not found in the flash memory. This error is only detected in Security Mode B. */
 
#define OSSA_ENCRYPT_AES_BIST_ERR   0x41 /* Built-In Test Failure */
 
#define OSSA_ENCRYPT_KWP_BIST_FAILURE   0x42 /* Built-In Test Failed on Key Wrap Engine */
 
#define OSSA_DIF_ENGINE_FAILURE_MASK   0x0F000000 /* DIF Engine failed the BIST Test */
 
#define OSSA_DIF_ENGINE_0_BIST_FAILURE   0x1 /* DIF Engine 0 failed the BIST Test */
 
#define OSSA_DIF_ENGINE_1_BIST_FAILURE   0x2 /* DIF Engine 1 failed the BIST Test */
 
#define OSSA_DIF_ENGINE_2_BIST_FAILURE   0x4 /* DIF Engine 2 failed the BIST Test */
 
#define OSSA_DIF_ENGINE_3_BIST_FAILURE   0x8 /* DIF Engine 3 failed the BIST Test */
 
#define SA_ROLE_CAPABILITIES_CSP   0x001
 
#define SA_ROLE_CAPABILITIES_OPR   0x002
 
#define SA_ROLE_CAPABILITIES_SCO   0x004
 
#define SA_ROLE_CAPABILITIES_STS   0x008
 
#define SA_ROLE_CAPABILITIES_TST   0x010
 
#define SA_ROLE_CAPABILITIES_KEK   0x020
 
#define SA_ROLE_CAPABILITIES_DEK   0x040
 
#define SA_ROLE_CAPABILITIES_IOS   0x080
 
#define SA_ROLE_CAPABILITIES_FWU   0x100
 
#define SA_ROLE_CAPABILITIES_PRM   0x200
 

Typedefs

typedef struct agsaContext_s agsaContext_t
 data structure stores OS specific and LL specific context More...
 
typedef agsaContext_t agsaRoot_t
 hold points to global data structures used by the LL and OS Layers More...
 
typedef agsaContext_t agsaDevHandle_t
 holds the pointers to the device data structure used by the LL and OS Layers More...
 
typedef agsaContext_t agsaPortContext_t
 holds the pointers to the port data structure used by the LL and OS Layers More...
 
typedef agsaContext_t agsaIORequest_t
 data structure pointer to IO request structure More...
 
typedef void * agsaFrameHandle_t
 handle to access frame More...
 
typedef struct agsaSASReconfig_s agsaSASReconfig_t
 describe a SAS ReCofiguration structure in the SAS/SATA hardware More...
 
typedef struct agsaPhyAnalogSetupRegisters_s agsaPhyAnalogSetupRegisters_t
 describe a Phy Analog Setup registers for a Controller in the SAS/SATA hardware More...
 
typedef struct agsaPhyAnalogSetupTable_s agsaPhyAnalogSetupTable_t
 
typedef struct agsaPhyAnalogSettingsPage_s agsaPhyAnalogSettingsPage_t
 describe a Phy Analog Setting More...
 
typedef struct agsaSASPhyOpenRejectRetryBackOffThresholdPage_s agsaSASPhyOpenRejectRetryBackOffThresholdPage_t
 describe a Open reject retry backoff threshold page More...
 
typedef struct agsaPhyRateControlPage_s agsaPhyRateControlPage_t
 describe a Phy Rate Control 4.56 agsaPhyRateControlPage_t Description This profile page is used to read or set several rate control parameters. The page code for this profile page is 0x07. This page can be READ by issuing saGetPhyProfile(). It can be read anytime and there is no need to quiesce the I/O to the controller. Related parameters can be modified by issuing saSetPhyProfile() before calling saPhyStart() to the PHY. Note: This page is applicable only to the SPCv controller. Usage Initiator and target. More...
 
typedef struct agsaRegDumpInfo_s agsaRegDumpInfo_t
 describe a Register Dump information for a Controller in the SAS/SATA hardware More...
 
typedef struct agsaNVMDData_s agsaNVMDData_t
 describe a NVMData for a Controller in the SAS/SATA hardware More...
 
typedef struct agsaPCIeDiagExecute_s agsaPCIeDiagExecute_t
 
typedef struct agsaPCIeDiagResponse_s agsaPCIeDiagResponse_t
 agsaPCIeDiagResponse_t More...
 
typedef struct agsaFatalErrorInfo_s agsaFatalErrorInfo_t
 describe a fatal error information for a Controller in the SAS/SATA hardware More...
 
typedef struct agsaEventSource_s agsaEventSource_t
 describe a information for a Event in the SAS/SATA hardware More...
 
typedef struct agsaControllerInfo_s agsaControllerInfo_t
 describe a information for a Controller in the SAS/SATA hardware More...
 
typedef struct agsaControllerStatus_s agsaControllerStatus_t
 describe a status for a Controller in the SAS/SATA hardware More...
 
typedef struct agsaGpioEventSetupInfo_s agsaGpioEventSetupInfo_t
 describe a GPIO Event Setup Infomation in the SAS/SATA hardware More...
 
typedef struct agsaGpioPinSetupInfo_t agsaGpioPinSetupInfo_t
 describe a GPIO Pin Setup Infomation in the SAS/SATA hardware More...
 
typedef struct agsaGpioWriteSetupInfo_s agsaGpioWriteSetupInfo_t
 describe a serial GPIO operation in the SAS/SATA hardware More...
 
typedef struct agsaGpioReadInfo_s agsaGpioReadInfo_t
 describe a GPIO Read Infomation in the SAS/SATA hardware More...
 
typedef struct agsaSGpioReqResponse_s agsaSGpioReqResponse_t
 describe a serial GPIO request and response in the SAS/SATA hardware More...
 
typedef struct agsaSGpioCfg0 agsaSGpioCfg0_t
 describe a serial GPIO operation response in the SAS/SATA hardware More...
 
typedef struct agsaSGpioCfg1 agsaSGpioCfg1_t
 SGPIO configuration register 1. More...
 
typedef struct agsaPhyConfig_s agsaPhyConfig_t
 describe a configuration for a PHY in the SAS/SATA hardware More...
 
typedef struct agsaPhySNW3Page_s agsaPhySNW3Page_t
 Structure is used as a parameter passed in saLocalPhyControlCB() to describe the error counter. More...
 
typedef struct agsaPhyErrCounters_s agsaPhyErrCounters_t
 structure describe error counters of a PHY in the SAS/SATA More...
 
typedef struct agsaPhyErrCountersPage_s agsaPhyErrCountersPage_t
 used in saGetPhyProfile More...
 
typedef struct agsaPhyBWCountersPage_s agsaPhyBWCountersPage_t
 structure describes bandwidth counters of a PHY in the SAS/SATA More...
 
typedef struct agsaHwConfig_s agsaHwConfig_t
 structure describe hardware configuration More...
 
typedef struct agsaSwConfig_s agsaSwConfig_t
 structure describe software configuration More...
 
typedef struct agsaQueueInbound_s agsaQueueInbound_t
 
typedef struct agsaQueueOutbound_s agsaQueueOutbound_t
 
typedef struct agsaPhyCalibrationTbl_s agsaPhyCalibrationTbl_t
 
typedef struct agsaQueueConfig_s agsaQueueConfig_t
 
typedef struct agsaFwImg_s agsaFwImg_t
 
typedef struct agsaMem_s agsaMem_t
 generic memory descriptor More...
 
typedef struct agsaControllerEventLog_s agsaControllerEventLog_t
 specify the controller Event Log for the SAS/SATA LL Layer More...
 
typedef struct agsaSASDiagExecute_s agsaSASDiagExecute_t
 specify the SAS Diagnostic Parameters for the SAS/SATA LL Layer More...
 
typedef struct agsaSASPhyGeneralStatusPage_s agsaSASPhyGeneralStatusPage_t
 for the SAS/SATA LL Layer More...
 
typedef struct agsaMemoryRequirement_s agsaMemoryRequirement_t
 specify the memory allocation requirement for the SAS/SATA LL Layer More...
 
typedef struct agsaSASAddressID_s agsaSASAddressID_t
 describe a SAS address and PHY Identifier More...
 
typedef struct agsaDeviceInfo_s agsaDeviceInfo_t
 data structure provides some information about a SATA device More...
 
typedef struct agsaSATADeviceInfo_s agsaSATADeviceInfo_t
 data structure provides some information about a SATA device More...
 
typedef struct agsaSASDeviceInfo_s agsaSASDeviceInfo_t
 data structure provides some information about a SAS device More...
 
typedef struct _SASG_DESCRIPTOR SASG_DESCRIPTOR
 the data structure describe SG list More...
 
typedef struct _SASG_DESCRIPTORPSASG_DESCRIPTOR
 
typedef struct agsaSgl_s agsaSgl_t
 data structure used to pass information about the scatter-gather list to the LL Layer More...
 
typedef struct agsaEsgl_s agsaEsgl_t
 data structure is used to pass information about the extended scatter-gather list (ESGL) to the LL Layer More...
 
typedef struct agsaSSPCmdInfoUnitExt_s agsaSSPCmdInfoUnitExt_t
 
typedef struct agsaDif_s agsaDif_t
 
typedef struct agsaEncryptDek_s agsaEncryptDek_t
 
typedef struct agsaEncrypt_s agsaEncrypt_t
 
typedef struct agsaSSPInitiatorRequest_s agsaSSPInitiatorRequest_t
 data structure describes a SAS SSP command request to be sent to the target device More...
 
typedef struct agsaSSPInitiatorRequestExt_s agsaSSPInitiatorRequestExt_t
 data structure describes a SAS SSP command request Ext to be sent to the target device More...
 
typedef struct agsaSSPInitiatorRequestIndirect_s agsaSSPInitiatorRequestIndirect_t
 
typedef struct agsaSSPTargetRequest_s agsaSSPTargetRequest_t
 data structure describes a SAS SSP target read and write request More...
 
typedef struct agsaSSPTargetResponse_s agsaSSPTargetResponse_t
 data structure describes a SAS SSP target response to be issued on the port More...
 
typedef struct agsaSMPFrame_s agsaSMPFrame_t
 data structure describes a SMP request or response frame to be sent on the SAS port More...
 
typedef union agsaSASRequestBody_u agsaSASRequestBody_t
 union data structure specifies a request More...
 
typedef struct agsaSATAInitiatorRequest_s agsaSATAInitiatorRequest_t
 data structure describes an STP or direct connect SATA command More...
 
typedef struct agsaEncryptGeneralPage_s agsaEncryptGeneralPage_t
 
typedef struct agsaEncryptDekConfigPage_s agsaEncryptDekConfigPage_t
 
typedef struct agsaEncryptControlParamPage_s agsaEncryptControlParamPage_t
 
typedef struct agsaEncryptInfo_s agsaEncryptInfo_t
 
typedef struct agsaEncryptSelfTestBitMap_s agsaEncryptSelfTestBitMap_t
 
typedef struct agsaEncryptSelfTestStatusBitMap_s agsaEncryptSelfTestStatusBitMap_t
 
typedef struct agsaEncryptHMACTestDescriptor_s agsaEncryptHMACTestDescriptor_t
 
typedef struct agsaEncryptHMACTestResult_s agsaEncryptHMACTestResult_t
 
typedef struct agsaEncryptSHATestDescriptor_s agsaEncryptSHATestDescriptor_t
 
typedef struct agsaEncryptSHATestResult_s agsaEncryptSHATestResult_t
 
typedef struct agsaEncryptDekBlob_s agsaEncryptDekBlob_t
 
typedef struct agsaEncryptKekBlob_s agsaEncryptKekBlob_t
 
typedef struct agsaEncryptHMACConfigPage_s agsaEncryptHMACConfigPage_t
 
typedef struct agsaID_s agsaID_t
 
typedef struct agsaSASPhyMiscPage_s agsaSASPhyMiscPage_t
 
typedef struct agsaHWEventEncrypt_s agsaHWEventEncrypt_t
 
typedef struct agsaHWEventMode_s agsaHWEventMode_t
 
typedef struct agsaInterruptConfigPage_s agsaInterruptConfigPage_t
 
typedef struct agsaIoGeneralPage_s agsaIoGeneralPage_t
 
typedef struct agsaDifDetails_s agsaDifDetails_t
 
typedef struct agsaSASProtocolTimerConfigurationPage_s agsaSASProtocolTimerConfigurationPage_t
 data structure for SAS protocol timer configuration page. More...
 
typedef struct agsaUpdateFwFlash_s agsaUpdateFwFlash_t
 data structure for firmware flash update saFwFlashUpdate(). More...
 
typedef struct agsaFlashExtExecute_s agsaFlashExtExecute_t
 data structure for extended firmware flash update saFwFlashExtUpdate(). More...
 
typedef struct agsaFlashExtResponse_s agsaFlashExtResponse_t
 data structure for firmware flash update saFwFlashUpdate(). More...
 
typedef struct agsaMPIContext_s agsaMPIContext_t
 data structure for set fields in MPI table. The agsaMPIContext_t data structure is used to set fields in MPI table. For details of MPI table, refer to PM8001 Tachyon SPC 8x6G Programmers' Manual PMC-2080222 or PM8008/PM8009/PM8018 Tachyon SPCv/SPCve/SPCv+ Programmers Manual PMC-2091148/PMC-2102373. sTSDK section 4.39 More...
 
typedef void(* ossaDeviceRegistrationCB_t) (agsaRoot_t *agRoot, agsaContext_t *agContext, bit32 status, agsaDevHandle_t *agDevHandle, bit32 deviceID)
 Callback definition for .ossaDeviceRegistration. More...
 
typedef void(* ossaDeregisterDeviceHandleCB_t) (agsaRoot_t *agRoot, agsaContext_t *agContext, agsaDevHandle_t *agDevHandle, bit32 status)
 Callback definition for. More...
 
typedef void(* ossaGenericCB_t) (void)
 Callback definition for. More...
 
typedef void(* ossaGenericAbortCB_t) (agsaRoot_t *agRoot, agsaIORequest_t *agIORequest, bit32 flag, bit32 status)
 Callback definition for abort SMP SSP SATA callback. More...
 
typedef void(* ossaLocalPhyControlCB_t) (agsaRoot_t *agRoot, agsaContext_t *agContext, bit32 phyId, bit32 phyOperation, bit32 status, void *parm)
 
typedef void(* ossaSATACompletedCB_t) (agsaRoot_t *agRoot, agsaIORequest_t *agIORequest, bit32 agIOStatus, void *agFirstDword, bit32 agIOInfoLen, void *agParam)
 Callback definition for. More...
 
typedef void(* ossaSMPCompletedCB_t) (agsaRoot_t *agRoot, agsaIORequest_t *agIORequest, bit32 agIOStatus, bit32 agIOInfoLen, agsaFrameHandle_t agFrameHandle)
 Callback definition for. More...
 
typedef void(* ossaSSPCompletedCB_t) (agsaRoot_t *agRoot, agsaIORequest_t *agIORequest, bit32 agIOStatus, bit32 agIOInfoLen, void *agParam, bit16 sspTag, bit32 agOtherInfo)
 Callback definition for. More...
 
typedef void(* ossaSetDeviceInfoCB_t) (agsaRoot_t *agRoot, agsaContext_t *agContext, agsaDevHandle_t *agDevHandle, bit32 status, bit32 option, bit32 param)
 Callback definition for. More...
 
typedef struct agsaOffloadDifDetails_s agsaOffloadDifDetails_t
 
typedef struct agsaDifEncPayload_s agsaDifEncPayload_t
 
typedef void(* ossaVhistCaptureCB_t) (agsaRoot_t *agRoot, agsaContext_t *agContext, bit32 status, bit32 len)
 
typedef void(* ossaDIFEncryptionOffloadStartCB_t) (agsaRoot_t *agRoot, agsaContext_t *agContext, bit32 status, agsaOffloadDifDetails_t *agsaOffloadDifDetails)
 
typedef struct agsaBarOffset_s agsaBarOffset_t
 describe an element of SPC-SPCV converter More...
 
typedef union agsabit32bit64_U agsabit32bit64
 
typedef struct agsaIOErrorEventStats_s agsaIOErrorEventStats_t
 

Detailed Description

The file defines the constants, data structure, and functions defined by LL API.

Definition in file sa.h.

Macro Definition Documentation

◆ AG_SA_DISCOVERY_OPTION_ABORT

#define AG_SA_DISCOVERY_OPTION_ABORT   0x02

flag to abort a discovery

Definition at line 870 of file sa.h.

◆ AG_SA_DISCOVERY_OPTION_FULL_START

#define AG_SA_DISCOVERY_OPTION_FULL_START   0x00

flag to start full discovery

Definition at line 868 of file sa.h.

◆ AG_SA_DISCOVERY_OPTION_INCREMENTAL_START

#define AG_SA_DISCOVERY_OPTION_INCREMENTAL_START   0x01

flag to start incremental discovery

Definition at line 869 of file sa.h.

◆ AG_SA_DISCOVERY_TYPE_SAS

#define AG_SA_DISCOVERY_TYPE_SAS   0x00

flag to discover SAS devices

Definition at line 862 of file sa.h.

◆ AG_SA_DISCOVERY_TYPE_SATA

#define AG_SA_DISCOVERY_TYPE_SATA   0x01

flag to discover SATA devices

Definition at line 863 of file sa.h.

◆ AGSA_ABORT_TASK

#define AGSA_ABORT_TASK   0x01

Definition at line 1104 of file sa.h.

◆ AGSA_ABORT_TASK_SET

#define AGSA_ABORT_TASK_SET   0x02

Definition at line 1105 of file sa.h.

◆ AGSA_AUTO_GOOD_RESPONSE

#define AGSA_AUTO_GOOD_RESPONSE   0x00000080

Definition at line 900 of file sa.h.

◆ AGSA_AUTO_MASK

#define AGSA_AUTO_MASK   0x00000080

Definition at line 892 of file sa.h.

◆ AGSA_BIST_TEST

#define AGSA_BIST_TEST   0x1

Definition at line 3267 of file sa.h.

◆ AGSA_CACHED_DMA_MEM

#define AGSA_CACHED_DMA_MEM   0x02

CACHED DMA memory type

Definition at line 797 of file sa.h.

◆ AGSA_CACHED_MEM

#define AGSA_CACHED_MEM   0x00

CACHED memory type

Definition at line 795 of file sa.h.

◆ AGSA_CHIP_RESET

#define AGSA_CHIP_RESET   0x00

flag to reset hard reset

Definition at line 856 of file sa.h.

◆ AGSA_CLEAR_ACA

#define AGSA_CLEAR_ACA   0x40

Definition at line 1109 of file sa.h.

◆ AGSA_CLEAR_TASK_SET

#define AGSA_CLEAR_TASK_SET   0x04

Definition at line 1106 of file sa.h.

◆ AGSA_CMD_DESC_ALL

#define AGSA_CMD_DESC_ALL   0x1F

Definition at line 1446 of file sa.h.

◆ AGSA_CMD_DESC_CJTPAT

#define AGSA_CMD_DESC_CJTPAT   0x01

Definition at line 1418 of file sa.h.

◆ AGSA_CMD_DESC_CJTPAT_INVERT

#define AGSA_CMD_DESC_CJTPAT_INVERT   0x0A

Definition at line 1422 of file sa.h.

◆ AGSA_CMD_DESC_CODE_VIOL_ERR_CNT

#define AGSA_CMD_DESC_CODE_VIOL_ERR_CNT   0x01

Definition at line 1432 of file sa.h.

◆ AGSA_CMD_DESC_CODE_VIOL_ERR_CNT_THHD

#define AGSA_CMD_DESC_CODE_VIOL_ERR_CNT_THHD   0x09

Definition at line 1436 of file sa.h.

◆ AGSA_CMD_DESC_CODE_VIOL_ERR_THHD

#define AGSA_CMD_DESC_CODE_VIOL_ERR_THHD   0x19

Definition at line 1442 of file sa.h.

◆ AGSA_CMD_DESC_CODE_VIOL_INSERT

#define AGSA_CMD_DESC_CODE_VIOL_INSERT   0x0B

Definition at line 1423 of file sa.h.

◆ AGSA_CMD_DESC_DISP_ERR_CNT

#define AGSA_CMD_DESC_DISP_ERR_CNT   0x02

Definition at line 1433 of file sa.h.

◆ AGSA_CMD_DESC_DISP_ERR_CNT_THHD

#define AGSA_CMD_DESC_DISP_ERR_CNT_THHD   0x0A

Definition at line 1437 of file sa.h.

◆ AGSA_CMD_DESC_DISP_ERR_INSERT

#define AGSA_CMD_DESC_DISP_ERR_INSERT   0x0C

Definition at line 1424 of file sa.h.

◆ AGSA_CMD_DESC_DISP_ERR_THHD

#define AGSA_CMD_DESC_DISP_ERR_THHD   0x1A

Definition at line 1443 of file sa.h.

◆ AGSA_CMD_DESC_INVALID_DWD_CNT

#define AGSA_CMD_DESC_INVALID_DWD_CNT   0x06

Definition at line 1435 of file sa.h.

◆ AGSA_CMD_DESC_LINE_SIDE_ANA_LPBK

#define AGSA_CMD_DESC_LINE_SIDE_ANA_LPBK   0x10

Definition at line 1426 of file sa.h.

◆ AGSA_CMD_DESC_LINE_SIDE_DIG_LPBK

#define AGSA_CMD_DESC_LINE_SIDE_DIG_LPBK   0x11

Definition at line 1427 of file sa.h.

◆ AGSA_CMD_DESC_LOST_DWD_SYNC_CNT

#define AGSA_CMD_DESC_LOST_DWD_SYNC_CNT   0x05

Definition at line 1434 of file sa.h.

◆ AGSA_CMD_DESC_PHY_RST_CNT

#define AGSA_CMD_DESC_PHY_RST_CNT   0x0C

Definition at line 1439 of file sa.h.

◆ AGSA_CMD_DESC_PRBS

#define AGSA_CMD_DESC_PRBS   0x00

Definition at line 1417 of file sa.h.

◆ AGSA_CMD_DESC_PRBS_ERR_CNT

#define AGSA_CMD_DESC_PRBS_ERR_CNT   0x00

Definition at line 1431 of file sa.h.

◆ AGSA_CMD_DESC_PRBS_ERR_INSERT

#define AGSA_CMD_DESC_PRBS_ERR_INSERT   0x08

Definition at line 1420 of file sa.h.

◆ AGSA_CMD_DESC_PRBS_INVERT

#define AGSA_CMD_DESC_PRBS_INVERT   0x09

Definition at line 1421 of file sa.h.

◆ AGSA_CMD_DESC_RX_LINK_BANDWIDTH

#define AGSA_CMD_DESC_RX_LINK_BANDWIDTH   0x1B

Definition at line 1444 of file sa.h.

◆ AGSA_CMD_DESC_SSPA_PERF_1_THRESHOLD

#define AGSA_CMD_DESC_SSPA_PERF_1_THRESHOLD   0x0E

Definition at line 1440 of file sa.h.

◆ AGSA_CMD_DESC_SSPA_PERF_CNT

#define AGSA_CMD_DESC_SSPA_PERF_CNT   0x0B

Definition at line 1438 of file sa.h.

◆ AGSA_CMD_DESC_SSPA_PERF_EVENT_1

#define AGSA_CMD_DESC_SSPA_PERF_EVENT_1   0x0E

Definition at line 1425 of file sa.h.

◆ AGSA_CMD_DESC_SYS_SIDE_ANA_LPBK

#define AGSA_CMD_DESC_SYS_SIDE_ANA_LPBK   0x12

Definition at line 1428 of file sa.h.

◆ AGSA_CMD_DESC_TX_LINK_BANDWIDTH

#define AGSA_CMD_DESC_TX_LINK_BANDWIDTH   0x1C

Definition at line 1445 of file sa.h.

◆ AGSA_CMD_DESC_USR_PATTERNS

#define AGSA_CMD_DESC_USR_PATTERNS   0x02

Definition at line 1419 of file sa.h.

◆ AGSA_CMD_TYPE_DIAG_ERR_CNT_RESET

#define AGSA_CMD_TYPE_DIAG_ERR_CNT_RESET   0x05

Definition at line 1414 of file sa.h.

◆ AGSA_CMD_TYPE_DIAG_OPRN_PERFORM

#define AGSA_CMD_TYPE_DIAG_OPRN_PERFORM   0x00

Definition at line 1409 of file sa.h.

◆ AGSA_CMD_TYPE_DIAG_OPRN_STOP

#define AGSA_CMD_TYPE_DIAG_OPRN_STOP   0x01

Definition at line 1410 of file sa.h.

◆ AGSA_CMD_TYPE_DIAG_RECEIVE_ENABLE

#define AGSA_CMD_TYPE_DIAG_RECEIVE_ENABLE   0x03

Definition at line 1412 of file sa.h.

◆ AGSA_CMD_TYPE_DIAG_REPORT_GET

#define AGSA_CMD_TYPE_DIAG_REPORT_GET   0x04

Definition at line 1413 of file sa.h.

◆ AGSA_CMD_TYPE_DIAG_THRESHOLD_SPECIFY

#define AGSA_CMD_TYPE_DIAG_THRESHOLD_SPECIFY   0x02

Definition at line 1411 of file sa.h.

◆ AGSA_DEV_INFO_DEV_TYPE_EDGE_EXP_DEVICE

#define AGSA_DEV_INFO_DEV_TYPE_EDGE_EXP_DEVICE   0x00000040 /* 010b */

Definition at line 1098 of file sa.h.

◆ AGSA_DEV_INFO_DEV_TYPE_END_DEVICE

#define AGSA_DEV_INFO_DEV_TYPE_END_DEVICE   0x00000020 /* 001b */

Definition at line 1097 of file sa.h.

◆ AGSA_DEV_INFO_DEV_TYPE_FANOUT_EXP_DEVICE

#define AGSA_DEV_INFO_DEV_TYPE_FANOUT_EXP_DEVICE   0x00000060 /* 011b */

Definition at line 1099 of file sa.h.

◆ AGSA_DEV_INFO_DEV_TYPE_MASK

#define AGSA_DEV_INFO_DEV_TYPE_MASK   0x000000E0 /* bits 5-7 */

Definition at line 1096 of file sa.h.

◆ AGSA_DEV_INFO_RATE_12_0G

#define AGSA_DEV_INFO_RATE_12_0G   0x0000000B /* Bh */

Definition at line 1093 of file sa.h.

◆ AGSA_DEV_INFO_RATE_1_5G

#define AGSA_DEV_INFO_RATE_1_5G   0x00000008 /* 8h */

Definition at line 1090 of file sa.h.

◆ AGSA_DEV_INFO_RATE_3_0G

#define AGSA_DEV_INFO_RATE_3_0G   0x00000009 /* 9h */

Definition at line 1091 of file sa.h.

◆ AGSA_DEV_INFO_RATE_6_0G

#define AGSA_DEV_INFO_RATE_6_0G   0x0000000A /* Ah */

Definition at line 1092 of file sa.h.

◆ AGSA_DEV_INFO_RATE_MASK

#define AGSA_DEV_INFO_RATE_MASK   0x0000000F /* bits 0-3 */

Definition at line 1089 of file sa.h.

◆ AGSA_DEV_INFO_SASSATA_MASK

#define AGSA_DEV_INFO_SASSATA_MASK   0x00000010 /* bit 4 */

Definition at line 1084 of file sa.h.

◆ AGSA_DEV_INFO_SASSATA_SAS

#define AGSA_DEV_INFO_SASSATA_SAS   0x00000010 /* 1b */

Definition at line 1085 of file sa.h.

◆ AGSA_DEV_INFO_SASSATA_SATA

#define AGSA_DEV_INFO_SASSATA_SATA   0x00000000 /* 0b */

Definition at line 1086 of file sa.h.

◆ AGSA_DIF_BIT

#define AGSA_DIF_BIT   0x00000040

Definition at line 926 of file sa.h.

◆ AGSA_DIF_BLOCK_SIZE_BITS

#define AGSA_DIF_BLOCK_SIZE_BITS   0x000F0000

Definition at line 951 of file sa.h.

◆ AGSA_DIF_CRC_INVERT_BIT

#define AGSA_DIF_CRC_INVERT_BIT   0x00000010

Definition at line 954 of file sa.h.

◆ AGSA_DIF_CRC_SEED_BIT

#define AGSA_DIF_CRC_SEED_BIT   0x00000020

Definition at line 953 of file sa.h.

◆ AGSA_DIF_CRC_VERIFY_BIT

#define AGSA_DIF_CRC_VERIFY_BIT   0x00000008

Definition at line 955 of file sa.h.

◆ AGSA_DIF_ENABLE_BLOCK_COUNT_BIT

#define AGSA_DIF_ENABLE_BLOCK_COUNT_BIT   0x00000040

Definition at line 952 of file sa.h.

◆ AGSA_DIF_INSERT

#define AGSA_DIF_INSERT   0

Definition at line 2803 of file sa.h.

◆ AGSA_DIF_LA_BIT

#define AGSA_DIF_LA_BIT   0x00000080

Definition at line 927 of file sa.h.

◆ AGSA_DIF_OP_BITS

#define AGSA_DIF_OP_BITS   0x00000007

Definition at line 956 of file sa.h.

◆ AGSA_DIF_OP_INSERT

#define AGSA_DIF_OP_INSERT   0x00000000

Definition at line 958 of file sa.h.

◆ AGSA_DIF_OP_REPLACE_UDT_REPLACE_CRC

#define AGSA_DIF_OP_REPLACE_UDT_REPLACE_CRC   0x00000007

Definition at line 965 of file sa.h.

◆ AGSA_DIF_OP_RESERVED2

#define AGSA_DIF_OP_RESERVED2   0x00000004

Definition at line 962 of file sa.h.

◆ AGSA_DIF_OP_RESERVED3

#define AGSA_DIF_OP_RESERVED3   0x00000006

Definition at line 964 of file sa.h.

◆ AGSA_DIF_OP_VERIFY_AND_DELETE

#define AGSA_DIF_OP_VERIFY_AND_DELETE   0x00000002

Definition at line 960 of file sa.h.

◆ AGSA_DIF_OP_VERIFY_AND_FORWARD

#define AGSA_DIF_OP_VERIFY_AND_FORWARD   0x00000001

Definition at line 959 of file sa.h.

◆ AGSA_DIF_OP_VERIFY_AND_REPLACE

#define AGSA_DIF_OP_VERIFY_AND_REPLACE   0x00000003

Definition at line 961 of file sa.h.

◆ AGSA_DIF_OP_VERIFY_UDT_REPLACE_CRC

#define AGSA_DIF_OP_VERIFY_UDT_REPLACE_CRC   0x00000005

Definition at line 963 of file sa.h.

◆ AGSA_DIF_REPLACE_UDT_REPLACE_CRC

#define AGSA_DIF_REPLACE_UDT_REPLACE_CRC   7

Definition at line 2808 of file sa.h.

◆ AGSA_DIF_UPDATE_BITS

#define AGSA_DIF_UPDATE_BITS   0xFC000000

Definition at line 949 of file sa.h.

◆ AGSA_DIF_VERIFY_BITS

#define AGSA_DIF_VERIFY_BITS   0x03F00000

Definition at line 950 of file sa.h.

◆ AGSA_DIF_VERIFY_DELETE

#define AGSA_DIF_VERIFY_DELETE   2

Definition at line 2805 of file sa.h.

◆ AGSA_DIF_VERIFY_FORWARD

#define AGSA_DIF_VERIFY_FORWARD   1

Definition at line 2804 of file sa.h.

◆ AGSA_DIF_VERIFY_REPLACE

#define AGSA_DIF_VERIFY_REPLACE   3

Definition at line 2806 of file sa.h.

◆ AGSA_DIF_VERIFY_UDT_REPLACE_CRC

#define AGSA_DIF_VERIFY_UDT_REPLACE_CRC   5

Definition at line 2807 of file sa.h.

◆ AGSA_DIR_CONTROLLER_TO_HOST

#define AGSA_DIR_CONTROLLER_TO_HOST   0x00000100

used to be called AGSA_DIR_READ

Definition at line 896 of file sa.h.

◆ AGSA_DIR_HOST_TO_CONTROLLER

#define AGSA_DIR_HOST_TO_CONTROLLER   0x00000200

used to be called AGSA_DIR_WRITE

Definition at line 897 of file sa.h.

◆ AGSA_DIR_MASK

#define AGSA_DIR_MASK   0x00000300

Definition at line 891 of file sa.h.

◆ AGSA_DIR_NONE

#define AGSA_DIR_NONE   0x00000000

Definition at line 895 of file sa.h.

◆ AGSA_DIRECTION_BITS

#define AGSA_DIRECTION_BITS   0x00000300

Definition at line 928 of file sa.h.

◆ AGSA_DMA_MEM

#define AGSA_DMA_MEM   0x01

DMA memory type

Definition at line 796 of file sa.h.

◆ AGSA_ENC_CONFIG_PAGE_KEK_NUMBER

#define AGSA_ENC_CONFIG_PAGE_KEK_NUMBER   0x0000FF00

Definition at line 3175 of file sa.h.

◆ AGSA_ENC_CONFIG_PAGE_KEK_SHIFT

#define AGSA_ENC_CONFIG_PAGE_KEK_SHIFT   8

Definition at line 3176 of file sa.h.

◆ AGSA_ENC_DEK_CONFIG_PAGE_DEK_CACHE_SHIFT

#define AGSA_ENC_DEK_CONFIG_PAGE_DEK_CACHE_SHIFT   SHIFT24

Definition at line 3194 of file sa.h.

◆ AGSA_ENC_DEK_CONFIG_PAGE_DEK_CACHE_WAY

#define AGSA_ENC_DEK_CONFIG_PAGE_DEK_CACHE_WAY   0x0F000000

Definition at line 3193 of file sa.h.

◆ AGSA_ENC_DEK_CONFIG_PAGE_DEK_TABLE_NUMBER

#define AGSA_ENC_DEK_CONFIG_PAGE_DEK_TABLE_NUMBER   0xF0000000

Definition at line 3191 of file sa.h.

◆ AGSA_ENC_DEK_CONFIG_PAGE_DEK_TABLE_SHIFT

#define AGSA_ENC_DEK_CONFIG_PAGE_DEK_TABLE_SHIFT   SHIFT28

Definition at line 3192 of file sa.h.

◆ AGSA_ENCRYPT_BIT

#define AGSA_ENCRYPT_BIT   0x00000020

Definition at line 925 of file sa.h.

◆ AGSA_ENCRYPT_DEK_BITS

#define AGSA_ENCRYPT_DEK_BITS   0xFFFFFF000

Definition at line 969 of file sa.h.

◆ AGSA_ENCRYPT_ECB_Mode

#define AGSA_ENCRYPT_ECB_Mode   0

Definition at line 975 of file sa.h.

◆ AGSA_ENCRYPT_KEK_SELECT_BITS

#define AGSA_ENCRYPT_KEK_SELECT_BITS   0x0000000E0

Definition at line 979 of file sa.h.

◆ AGSA_ENCRYPT_KEY_TABLE_BITS

#define AGSA_ENCRYPT_KEY_TABLE_BITS   0x00000000C

Definition at line 971 of file sa.h.

◆ AGSA_ENCRYPT_KEY_TAG_BIT

#define AGSA_ENCRYPT_KEY_TAG_BIT   0x000000002

Definition at line 972 of file sa.h.

◆ AGSA_ENCRYPT_SECTOR_SIZE_BITS

#define AGSA_ENCRYPT_SECTOR_SIZE_BITS   0x00000001F

Definition at line 980 of file sa.h.

◆ AGSA_ENCRYPT_SKIP_DIF_BIT

#define AGSA_ENCRYPT_SKIP_DIF_BIT   0x000000010

Definition at line 970 of file sa.h.

◆ AGSA_ENCRYPT_STORE_NVRAM

#define AGSA_ENCRYPT_STORE_NVRAM   1

Definition at line 1579 of file sa.h.

◆ AGSA_ENCRYPT_XTS_Mode

#define AGSA_ENCRYPT_XTS_Mode   0x6

Definition at line 976 of file sa.h.

◆ AGSA_ENCRYPTION_CONTROL_PARM_PAGE

#define AGSA_ENCRYPTION_CONTROL_PARM_PAGE   0x22

Definition at line 3157 of file sa.h.

◆ AGSA_ENCRYPTION_DEK_CONFIG_PAGE

#define AGSA_ENCRYPTION_DEK_CONFIG_PAGE   0x21

Definition at line 3156 of file sa.h.

◆ AGSA_ENCRYPTION_GENERAL_CONFIG_PAGE

#define AGSA_ENCRYPTION_GENERAL_CONFIG_PAGE   0x20

Definition at line 3155 of file sa.h.

◆ AGSA_ENCRYPTION_HMAC_CONFIG_PAGE

#define AGSA_ENCRYPTION_HMAC_CONFIG_PAGE   0x23

Definition at line 3158 of file sa.h.

◆ AGSA_FLIP_2_BYTES

#define AGSA_FLIP_2_BYTES (   _x)
Value:
((bit16)(((((bit16)(_x))&0x00FF)<<8)| \
((((bit16)(_x))&0xFF00)>>8)))
unsigned short bit16
Definition: ostypes.h:98

AGSA_FLIP_2_BYTES macro.

use to flip two bytes

Definition at line 138 of file sa.h.

◆ AGSA_FLIP_4_BYTES

#define AGSA_FLIP_4_BYTES (   _x)
Value:
((bit32)(((((bit32)(_x))&0x000000FF)<<24)| \
((((bit32)(_x))&0x0000FF00)<<8)| \
((((bit32)(_x))&0x00FF0000)>>8)| \
((((bit32)(_x))&0xFF000000)>>24)))
unsigned int bit32
Definition: ostypes.h:99

AGSA_FLIP_4_BYTES macro.

use to flip four bytes

Definition at line 146 of file sa.h.

◆ AGSA_HMAC_TEST

#define AGSA_HMAC_TEST   0x2

Definition at line 3268 of file sa.h.

◆ AGSA_IBQ_PRIORITY_HIGH

#define AGSA_IBQ_PRIORITY_HIGH   0x1

Definition at line 1058 of file sa.h.

◆ AGSA_IBQ_PRIORITY_NORMAL

#define AGSA_IBQ_PRIORITY_NORMAL   0x0

Definition at line 1057 of file sa.h.

◆ AGSA_ID_SIZE

#define AGSA_ID_SIZE   31

Definition at line 3291 of file sa.h.

◆ AGSA_INCORRECT_LOGICAL_UNIT_NUMBER

#define AGSA_INCORRECT_LOGICAL_UNIT_NUMBER   0x9

Definition at line 1122 of file sa.h.

◆ AGSA_INDIRECT_CDB_BIT

#define AGSA_INDIRECT_CDB_BIT   0x00000008

Definition at line 923 of file sa.h.

◆ AGSA_INTERRUPT_CONFIGURATION_PAGE

#define AGSA_INTERRUPT_CONFIGURATION_PAGE   0x05

Definition at line 3153 of file sa.h.

◆ AGSA_INTERRUPT_HANDLE_ALL_CHANNELS

#define AGSA_INTERRUPT_HANDLE_ALL_CHANNELS   0xFFFFFFFF

flag indicates handles interrupts for all channles

Definition at line 1052 of file sa.h.

◆ AGSA_INVALID_FRAME

#define AGSA_INVALID_FRAME   0x2

Definition at line 1118 of file sa.h.

◆ AGSA_IO_GENERAL_CONFIG_PAGE

#define AGSA_IO_GENERAL_CONFIG_PAGE   0x06

Definition at line 3154 of file sa.h.

◆ AGSA_IT_NEXUS_RESET

#define AGSA_IT_NEXUS_RESET   0x10

Definition at line 1108 of file sa.h.

◆ AGSA_LOGICAL_UNIT_RESET

#define AGSA_LOGICAL_UNIT_RESET   0x08

Definition at line 1107 of file sa.h.

◆ AGSA_MAX_BEST_INBOUND_Q

#define AGSA_MAX_BEST_INBOUND_Q   16 /* Max inbound Q number with good IO performance */

Definition at line 829 of file sa.h.

◆ AGSA_MAX_INBOUND_Q

#define AGSA_MAX_INBOUND_Q   64

max # of inbound queue

Definition at line 827 of file sa.h.

◆ AGSA_MAX_OUTBOUND_Q

#define AGSA_MAX_OUTBOUND_Q   64

max # of outbound queue

Definition at line 828 of file sa.h.

◆ AGSA_MAX_SMPPAYLOAD_VIA_SFO

#define AGSA_MAX_SMPPAYLOAD_VIA_SFO   40

Definition at line 1129 of file sa.h.

◆ AGSA_MAX_SSPPAYLOAD_VIA_SFO

#define AGSA_MAX_SSPPAYLOAD_VIA_SFO   36

Definition at line 1130 of file sa.h.

◆ AGSA_MAX_VALID_PHYS

#define AGSA_MAX_VALID_PHYS   16 /* was 8 for SPC */

max # of phys supported by the hardware

Definition at line 817 of file sa.h.

◆ AGSA_MPI_GENERAL_STATUS_TABLE

#define AGSA_MPI_GENERAL_STATUS_TABLE   2

Definition at line 3440 of file sa.h.

◆ AGSA_MPI_INBOUND_QUEUE_CONFIGURATION_TABLE

#define AGSA_MPI_INBOUND_QUEUE_CONFIGURATION_TABLE   3

Definition at line 3441 of file sa.h.

◆ AGSA_MPI_INTERRUPT_VECTOR_TABLE

#define AGSA_MPI_INTERRUPT_VECTOR_TABLE   6

Definition at line 3444 of file sa.h.

◆ AGSA_MPI_MAIN_CONFIGURATION_TABLE

#define AGSA_MPI_MAIN_CONFIGURATION_TABLE   1

Definition at line 3439 of file sa.h.

◆ AGSA_MPI_OUTBOUND_QUEUE_CONFIGURATION_TABLE

#define AGSA_MPI_OUTBOUND_QUEUE_CONFIGURATION_TABLE   4

Definition at line 3442 of file sa.h.

◆ AGSA_MPI_OUTBOUND_QUEUE_FAILOVER_TABLE

#define AGSA_MPI_OUTBOUND_QUEUE_FAILOVER_TABLE   8

Definition at line 3446 of file sa.h.

◆ AGSA_MPI_PER_SAS_PHY_ATTRIBUTE_TABLE

#define AGSA_MPI_PER_SAS_PHY_ATTRIBUTE_TABLE   7

Definition at line 3445 of file sa.h.

◆ AGSA_MPI_SAS_PHY_ANALOG_SETUP_TABLE

#define AGSA_MPI_SAS_PHY_ANALOG_SETUP_TABLE   5

Definition at line 3443 of file sa.h.

◆ AGSA_MSG

#define AGSA_MSG   0x00000010

Definition at line 917 of file sa.h.

◆ AGSA_MSG_BIT

#define AGSA_MSG_BIT   AGSA_MSG >> 2

Definition at line 920 of file sa.h.

◆ AGSA_NUM_MEM_CHUNKS

#define AGSA_NUM_MEM_CHUNKS   (10 + AGSA_MAX_INBOUND_Q + AGSA_MAX_OUTBOUND_Q)

max # of memory chunks supported

Definition at line 809 of file sa.h.

◆ AGSA_NVMD_AAP1_REG_FLASH

#define AGSA_NVMD_AAP1_REG_FLASH   0x05

Definition at line 1452 of file sa.h.

◆ AGSA_NVMD_CONFIG_SEEPROM

#define AGSA_NVMD_CONFIG_SEEPROM   0x01

Definition at line 1450 of file sa.h.

◆ AGSA_NVMD_EXPANSION_ROM

#define AGSA_NVMD_EXPANSION_ROM   0x07

Definition at line 1454 of file sa.h.

◆ AGSA_NVMD_IOP_REG_FLASH

#define AGSA_NVMD_IOP_REG_FLASH   0x06

Definition at line 1453 of file sa.h.

◆ AGSA_NVMD_REG_FLASH

#define AGSA_NVMD_REG_FLASH   0x05

Definition at line 1455 of file sa.h.

◆ AGSA_NVMD_TWI_DEVICES

#define AGSA_NVMD_TWI_DEVICES   0x00

Definition at line 1449 of file sa.h.

◆ AGSA_NVMD_VPD_FLASH

#define AGSA_NVMD_VPD_FLASH   0x04

Definition at line 1451 of file sa.h.

◆ AGSA_OVERLAPPED_TAG_ATTEMPTED

#define AGSA_OVERLAPPED_TAG_ATTEMPTED   0xA

Definition at line 1124 of file sa.h.

◆ AGSA_PHY_BROADCAST_ASYNCH_EVENT

#define AGSA_PHY_BROADCAST_ASYNCH_EVENT   0x12

Definition at line 840 of file sa.h.

◆ AGSA_PHY_CLEAR_ERROR_COUNTS

#define AGSA_PHY_CLEAR_ERROR_COUNTS   0x04 /* SPC only */

Definition at line 837 of file sa.h.

◆ AGSA_PHY_COMINIT_OOB

#define AGSA_PHY_COMINIT_OOB   0x20

Definition at line 841 of file sa.h.

◆ AGSA_PHY_CONTROL_CLEAR_AFFILIATION

#define AGSA_PHY_CONTROL_CLEAR_AFFILIATION   0x6

Definition at line 1158 of file sa.h.

◆ AGSA_PHY_CONTROL_CLEAR_ERROR_LOG_OP

#define AGSA_PHY_CONTROL_CLEAR_ERROR_LOG_OP   0x5

Definition at line 1157 of file sa.h.

◆ AGSA_PHY_CONTROL_DISABLE

#define AGSA_PHY_CONTROL_DISABLE   0x3

Definition at line 1156 of file sa.h.

◆ AGSA_PHY_CONTROL_HARD_RESET_OP

#define AGSA_PHY_CONTROL_HARD_RESET_OP   0x2

Definition at line 1155 of file sa.h.

◆ AGSA_PHY_CONTROL_LINK_RESET_OP

#define AGSA_PHY_CONTROL_LINK_RESET_OP   0x1

Definition at line 1154 of file sa.h.

◆ AGSA_PHY_CONTROL_XMIT_SATA_PS_SIGNAL

#define AGSA_PHY_CONTROL_XMIT_SATA_PS_SIGNAL   0x7

Definition at line 1159 of file sa.h.

◆ AGSA_PHY_GET_BW_COUNTS

#define AGSA_PHY_GET_BW_COUNTS   0x05 /* SPC only */

Definition at line 838 of file sa.h.

◆ AGSA_PHY_GET_ERROR_COUNTS

#define AGSA_PHY_GET_ERROR_COUNTS   0x03 /* SPC only used in original saLocalPhyControl */

Definition at line 836 of file sa.h.

◆ AGSA_PHY_HARD_RESET

#define AGSA_PHY_HARD_RESET   0x02

Definition at line 835 of file sa.h.

◆ AGSA_PHY_LINK_RESET

#define AGSA_PHY_LINK_RESET   0x01

Definition at line 834 of file sa.h.

◆ AGSA_PHY_MAX_LINK_RATE_12_0G

#define AGSA_PHY_MAX_LINK_RATE_12_0G   0x00000008 /* 1000b */

Definition at line 1068 of file sa.h.

◆ AGSA_PHY_MAX_LINK_RATE_1_5G

#define AGSA_PHY_MAX_LINK_RATE_1_5G   0x00000001 /* 0001b */

Definition at line 1065 of file sa.h.

◆ AGSA_PHY_MAX_LINK_RATE_3_0G

#define AGSA_PHY_MAX_LINK_RATE_3_0G   0x00000002 /* 0010b */

Definition at line 1066 of file sa.h.

◆ AGSA_PHY_MAX_LINK_RATE_6_0G

#define AGSA_PHY_MAX_LINK_RATE_6_0G   0x00000004 /* 0100b */

Definition at line 1067 of file sa.h.

◆ AGSA_PHY_MAX_LINK_RATE_MASK

#define AGSA_PHY_MAX_LINK_RATE_MASK   0x0000000F /* bits 0-3 */

Definition at line 1064 of file sa.h.

◆ AGSA_PHY_MODE_MASK

#define AGSA_PHY_MODE_MASK   0x00000030 /* bits 4-5 */

Definition at line 1071 of file sa.h.

◆ AGSA_PHY_MODE_SAS

#define AGSA_PHY_MODE_SAS   0x00000010 /* 01b */

Definition at line 1072 of file sa.h.

◆ AGSA_PHY_MODE_SATA

#define AGSA_PHY_MODE_SATA   0x00000020 /* 10b */

Definition at line 1073 of file sa.h.

◆ AGSA_PHY_NOTIFY_ENABLE_SPINUP

#define AGSA_PHY_NOTIFY_ENABLE_SPINUP   0x10

Definition at line 839 of file sa.h.

◆ AGSA_PHY_RATE_CONTROL_PAGE

#define AGSA_PHY_RATE_CONTROL_PAGE   0x07 /* Used to set several rate control parameters. */

Definition at line 849 of file sa.h.

◆ AGSA_PHY_SNW3_PAGE

#define AGSA_PHY_SNW3_PAGE   0x06

Definition at line 848 of file sa.h.

◆ AGSA_PHY_SPIN_UP_HOLD_MASK

#define AGSA_PHY_SPIN_UP_HOLD_MASK   0x00000040 /* bit6 */

Definition at line 1076 of file sa.h.

◆ AGSA_PHY_SPIN_UP_HOLD_OFF

#define AGSA_PHY_SPIN_UP_HOLD_OFF   0x00000000 /* 0b */

Definition at line 1078 of file sa.h.

◆ AGSA_PHY_SPIN_UP_HOLD_ON

#define AGSA_PHY_SPIN_UP_HOLD_ON   0x00000040 /* 1b */

Definition at line 1077 of file sa.h.

◆ AGSA_PORT_CLEAN_UP

#define AGSA_PORT_CLEAN_UP   0x6

Definition at line 1175 of file sa.h.

◆ AGSA_PORT_HARD_RESET

#define AGSA_PORT_HARD_RESET   0x5

Definition at line 1174 of file sa.h.

◆ AGSA_PORT_IO_ABORT

#define AGSA_PORT_IO_ABORT   0x3

Definition at line 1172 of file sa.h.

◆ AGSA_PORT_SET_PORT_RECOVERY_TIME

#define AGSA_PORT_SET_PORT_RECOVERY_TIME   0x2

Definition at line 1171 of file sa.h.

◆ AGSA_PORT_SET_PORT_RESET_TIME

#define AGSA_PORT_SET_PORT_RESET_TIME   0x4

Definition at line 1173 of file sa.h.

◆ AGSA_PORT_SET_SMP_PHY_WIDTH

#define AGSA_PORT_SET_SMP_PHY_WIDTH   0x1

Definition at line 1170 of file sa.h.

◆ AGSA_QUERY_TASK

#define AGSA_QUERY_TASK   0x80

Definition at line 1110 of file sa.h.

◆ AGSA_QUERY_TASK_SET

#define AGSA_QUERY_TASK_SET   0x81

Definition at line 1111 of file sa.h.

◆ AGSA_QUERY_UNIT_ATTENTION

#define AGSA_QUERY_UNIT_ATTENTION   0x82

Definition at line 1112 of file sa.h.

◆ AGSA_RC_BUSY

#define AGSA_RC_BUSY   0x02

Busy function return value

Definition at line 782 of file sa.h.

◆ AGSA_RC_COMPLETE

#define AGSA_RC_COMPLETE   0x08

Definition at line 790 of file sa.h.

◆ AGSA_RC_FAILURE

#define AGSA_RC_FAILURE   0x01

Failed function return value

Definition at line 781 of file sa.h.

◆ AGSA_RC_FW_NOT_IN_READY_STATE

#define AGSA_RC_FW_NOT_IN_READY_STATE   0x04

FW not in ready state

Definition at line 785 of file sa.h.

◆ AGSA_RC_HDA_NO_FW_RUNNING

#define AGSA_RC_HDA_NO_FW_RUNNING   0x03

HDA mode and no FW running

Definition at line 784 of file sa.h.

◆ AGSA_RC_NOT_SUPPORTED

#define AGSA_RC_NOT_SUPPORTED   0x07

Operation not supported on the current hardware

Definition at line 789 of file sa.h.

◆ AGSA_RC_SUCCESS

#define AGSA_RC_SUCCESS   0x00

Successful function return value

Definition at line 780 of file sa.h.

◆ AGSA_RC_VERSION_INCOMPATIBLE

#define AGSA_RC_VERSION_INCOMPATIBLE   0x05

Version mismatch

Definition at line 787 of file sa.h.

◆ AGSA_RC_VERSION_UNTESTED

#define AGSA_RC_VERSION_UNTESTED   0x06

Version not tested

Definition at line 788 of file sa.h.

◆ AGSA_READ_SGPIO_REGISTER

#define AGSA_READ_SGPIO_REGISTER   0x02

Definition at line 1590 of file sa.h.

◆ AGSA_REQ_TYPE_UNKNOWN

#define AGSA_REQ_TYPE_UNKNOWN   0x00000000

unknown request type

Definition at line 886 of file sa.h.

◆ AGSA_REQTYPE_MASK

#define AGSA_REQTYPE_MASK   0xF0000000

request type mask

Definition at line 885 of file sa.h.

◆ AGSA_RETURN_D2H_FIS_GOOD_COMPLETION

#define AGSA_RETURN_D2H_FIS_GOOD_COMPLETION   0x000001

Definition at line 1133 of file sa.h.

◆ AGSA_SAS_DIAG_END

#define AGSA_SAS_DIAG_END   0x0

Definition at line 1165 of file sa.h.

◆ AGSA_SAS_DIAG_START

#define AGSA_SAS_DIAG_START   0x1

Definition at line 1164 of file sa.h.

◆ AGSA_SAS_ENABLE_DIF

#define AGSA_SAS_ENABLE_DIF   0x0008

Definition at line 1142 of file sa.h.

◆ AGSA_SAS_ENABLE_ENCRYPTION

#define AGSA_SAS_ENABLE_ENCRYPTION   0x0004

Definition at line 1141 of file sa.h.

◆ AGSA_SAS_ENABLE_SKIP_MASK

#define AGSA_SAS_ENABLE_SKIP_MASK   0x0010

Definition at line 1148 of file sa.h.

◆ AGSA_SAS_PHY_ANALOG_SETTINGS_PAGE

#define AGSA_SAS_PHY_ANALOG_SETTINGS_PAGE   0x04 /* retrieve the SAS PHY analog settings */

Definition at line 846 of file sa.h.

◆ AGSA_SAS_PHY_BW_COUNTERS_PAGE

#define AGSA_SAS_PHY_BW_COUNTERS_PAGE   0x03 /* retrieve the SAS PHY transmit and receive bandwidth counters. */

Definition at line 845 of file sa.h.

◆ AGSA_SAS_PHY_ERR_COUNTERS_CLR_PAGE

#define AGSA_SAS_PHY_ERR_COUNTERS_CLR_PAGE   0x02 /* retrieve the SAS PHY error counters After capturing the errors, the hardware error counters are cleared and restarted. */

Definition at line 844 of file sa.h.

◆ AGSA_SAS_PHY_ERR_COUNTERS_PAGE

#define AGSA_SAS_PHY_ERR_COUNTERS_PAGE   0x01 /* retrieve the SAS PHY error counters */

Definition at line 843 of file sa.h.

◆ AGSA_SAS_PHY_GENERAL_STATUS_PAGE

#define AGSA_SAS_PHY_GENERAL_STATUS_PAGE   0x05 /* retrieve the SAS PHY general status for the PHY specified in the phyID parameter */

Definition at line 847 of file sa.h.

◆ AGSA_SAS_PHY_MISC_PAGE

#define AGSA_SAS_PHY_MISC_PAGE   0x08

Definition at line 850 of file sa.h.

◆ AGSA_SAS_PHY_OPEN_REJECT_RETRY_BACKOFF_THRESHOLD_PAGE

#define AGSA_SAS_PHY_OPEN_REJECT_RETRY_BACKOFF_THRESHOLD_PAGE   0x08 /* Used to set retry and backoff threshold parameters. */

Definition at line 851 of file sa.h.

◆ AGSA_SAS_PROTOCOL_TIMER_CONFIG_PAGE

#define AGSA_SAS_PROTOCOL_TIMER_CONFIG_PAGE   0x04

Definition at line 3152 of file sa.h.

◆ AGSA_SAS_SKIP_MASK_OFFSET

#define AGSA_SAS_SKIP_MASK_OFFSET   0xFFE0

Definition at line 1149 of file sa.h.

◆ AGSA_SATA_ATAP_DMA

#define AGSA_SATA_ATAP_DMA   0x00001800

Definition at line 1017 of file sa.h.

◆ AGSA_SATA_ATAP_EXECDEVDIAG

#define AGSA_SATA_ATAP_EXECDEVDIAG   0x00000C00

Definition at line 1014 of file sa.h.

◆ AGSA_SATA_ATAP_MASK

#define AGSA_SATA_ATAP_MASK   0x0000FC00

Definition at line 893 of file sa.h.

◆ AGSA_SATA_ATAP_NCQ

#define AGSA_SATA_ATAP_NCQ   0x00001C00

Definition at line 1018 of file sa.h.

◆ AGSA_SATA_ATAP_NON_DATA

#define AGSA_SATA_ATAP_NON_DATA   0x00001000

Definition at line 1015 of file sa.h.

◆ AGSA_SATA_ATAP_PIO

#define AGSA_SATA_ATAP_PIO   0x00001400

Definition at line 1016 of file sa.h.

◆ AGSA_SATA_ATAP_PKT

#define AGSA_SATA_ATAP_PKT   0x00002400

Definition at line 1020 of file sa.h.

◆ AGSA_SATA_ATAP_PKT_DEVRESET

#define AGSA_SATA_ATAP_PKT_DEVRESET   0x00002000

Definition at line 1019 of file sa.h.

◆ AGSA_SATA_ATAP_SRST_ASSERT

#define AGSA_SATA_ATAP_SRST_ASSERT   0x00000400

Definition at line 1012 of file sa.h.

◆ AGSA_SATA_ATAP_SRST_DEASSERT

#define AGSA_SATA_ATAP_SRST_DEASSERT   0x00000800

Definition at line 1013 of file sa.h.

◆ AGSA_SATA_BSY_OVERRIDE

#define AGSA_SATA_BSY_OVERRIDE   0x00080000

Definition at line 1126 of file sa.h.

◆ AGSA_SATA_CLOSE_CLEAR_AFFILIATION

#define AGSA_SATA_CLOSE_CLEAR_AFFILIATION   0x00400000

Definition at line 1127 of file sa.h.

◆ AGSA_SATA_ENABLE_DIF

#define AGSA_SATA_ENABLE_DIF   0x000008

Definition at line 1135 of file sa.h.

◆ AGSA_SATA_ENABLE_ENCRYPTION

#define AGSA_SATA_ENABLE_ENCRYPTION   0x000004

Definition at line 1134 of file sa.h.

◆ AGSA_SATA_PROTOCOL_D2H_PKT

#define AGSA_SATA_PROTOCOL_D2H_PKT   (AGSA_SATA_REQTYPE | AGSA_DIR_CONTROLLER_TO_HOST | AGSA_SATA_ATAP_PKT)

Definition at line 1032 of file sa.h.

◆ AGSA_SATA_PROTOCOL_D2H_PKT_M

#define AGSA_SATA_PROTOCOL_D2H_PKT_M   (AGSA_SATA_REQTYPE | AGSA_DIR_CONTROLLER_TO_HOST | AGSA_SATA_ATAP_PKT | AGSA_MSG)

Definition at line 1044 of file sa.h.

◆ AGSA_SATA_PROTOCOL_DEV_RESET

#define AGSA_SATA_PROTOCOL_DEV_RESET   (AGSA_SATA_REQTYPE | AGSA_DIR_NONE | AGSA_SATA_ATAP_PKT_DEVRESET)

SATA device reset request type

Definition at line 1029 of file sa.h.

◆ AGSA_SATA_PROTOCOL_DEV_RESET_M

#define AGSA_SATA_PROTOCOL_DEV_RESET_M   (AGSA_SATA_REQTYPE | AGSA_DIR_NONE | AGSA_SATA_ATAP_PKT_DEVRESET | AGSA_MSG)

SATA device reset request type

Definition at line 1048 of file sa.h.

◆ AGSA_SATA_PROTOCOL_DMA_READ

#define AGSA_SATA_PROTOCOL_DMA_READ   (AGSA_SATA_REQTYPE | AGSA_DIR_CONTROLLER_TO_HOST | AGSA_SATA_ATAP_DMA)

SATA DMA read request type

Definition at line 1024 of file sa.h.

◆ AGSA_SATA_PROTOCOL_DMA_READ_M

#define AGSA_SATA_PROTOCOL_DMA_READ_M   (AGSA_SATA_REQTYPE | AGSA_DIR_CONTROLLER_TO_HOST | AGSA_SATA_ATAP_DMA | AGSA_MSG)

SATA DMA read request type

Definition at line 1039 of file sa.h.

◆ AGSA_SATA_PROTOCOL_DMA_WRITE

#define AGSA_SATA_PROTOCOL_DMA_WRITE   (AGSA_SATA_REQTYPE | AGSA_DIR_HOST_TO_CONTROLLER | AGSA_SATA_ATAP_DMA)

SATA DMA read request type

Definition at line 1027 of file sa.h.

◆ AGSA_SATA_PROTOCOL_DMA_WRITE_M

#define AGSA_SATA_PROTOCOL_DMA_WRITE_M   (AGSA_SATA_REQTYPE | AGSA_DIR_HOST_TO_CONTROLLER | AGSA_SATA_ATAP_DMA | AGSA_MSG)

SATA DMA read request type

Definition at line 1042 of file sa.h.

◆ AGSA_SATA_PROTOCOL_FPDMA_READ

#define AGSA_SATA_PROTOCOL_FPDMA_READ   (AGSA_SATA_REQTYPE | AGSA_DIR_CONTROLLER_TO_HOST | AGSA_SATA_ATAP_NCQ)

SATA FDMA read request type

Definition at line 1025 of file sa.h.

◆ AGSA_SATA_PROTOCOL_FPDMA_READ_M

#define AGSA_SATA_PROTOCOL_FPDMA_READ_M   (AGSA_SATA_REQTYPE | AGSA_DIR_CONTROLLER_TO_HOST | AGSA_SATA_ATAP_NCQ | AGSA_MSG)

SATA FDMA read request type

Definition at line 1040 of file sa.h.

◆ AGSA_SATA_PROTOCOL_FPDMA_WRITE

#define AGSA_SATA_PROTOCOL_FPDMA_WRITE   (AGSA_SATA_REQTYPE | AGSA_DIR_HOST_TO_CONTROLLER | AGSA_SATA_ATAP_NCQ)

SATA FDMA read request type

Definition at line 1028 of file sa.h.

◆ AGSA_SATA_PROTOCOL_FPDMA_WRITE_M

#define AGSA_SATA_PROTOCOL_FPDMA_WRITE_M   (AGSA_SATA_REQTYPE | AGSA_DIR_HOST_TO_CONTROLLER | AGSA_SATA_ATAP_NCQ | AGSA_MSG)

SATA FDMA read request type

Definition at line 1043 of file sa.h.

◆ AGSA_SATA_PROTOCOL_H2D_PKT

#define AGSA_SATA_PROTOCOL_H2D_PKT   (AGSA_SATA_REQTYPE | AGSA_DIR_HOST_TO_CONTROLLER | AGSA_SATA_ATAP_PKT)

Definition at line 1033 of file sa.h.

◆ AGSA_SATA_PROTOCOL_H2D_PKT_M

#define AGSA_SATA_PROTOCOL_H2D_PKT_M   (AGSA_SATA_REQTYPE | AGSA_DIR_HOST_TO_CONTROLLER | AGSA_SATA_ATAP_PKT | AGSA_MSG)

Definition at line 1045 of file sa.h.

◆ AGSA_SATA_PROTOCOL_NON_DATA

#define AGSA_SATA_PROTOCOL_NON_DATA   (AGSA_SATA_REQTYPE | AGSA_DIR_NONE | AGSA_SATA_ATAP_NON_DATA)

Definition at line 1022 of file sa.h.

◆ AGSA_SATA_PROTOCOL_NON_DATA_M

#define AGSA_SATA_PROTOCOL_NON_DATA_M   (AGSA_SATA_REQTYPE | AGSA_DIR_NONE | AGSA_SATA_ATAP_NON_DATA | AGSA_MSG)

Definition at line 1037 of file sa.h.

◆ AGSA_SATA_PROTOCOL_NON_PKT

#define AGSA_SATA_PROTOCOL_NON_PKT   (AGSA_SATA_REQTYPE | AGSA_DIR_NONE | AGSA_SATA_ATAP_PKT)

Definition at line 1034 of file sa.h.

◆ AGSA_SATA_PROTOCOL_NON_PKT_M

#define AGSA_SATA_PROTOCOL_NON_PKT_M   (AGSA_SATA_REQTYPE | AGSA_DIR_NONE | AGSA_SATA_ATAP_PKT | AGSA_MSG)

Definition at line 1046 of file sa.h.

◆ AGSA_SATA_PROTOCOL_PIO_READ

#define AGSA_SATA_PROTOCOL_PIO_READ   (AGSA_SATA_REQTYPE | AGSA_DIR_CONTROLLER_TO_HOST | AGSA_SATA_ATAP_PIO)

SATA PIO read request type

Definition at line 1023 of file sa.h.

◆ AGSA_SATA_PROTOCOL_PIO_READ_M

#define AGSA_SATA_PROTOCOL_PIO_READ_M   (AGSA_SATA_REQTYPE | AGSA_DIR_CONTROLLER_TO_HOST | AGSA_SATA_ATAP_PIO | AGSA_MSG)

SATA PIO read request type

Definition at line 1038 of file sa.h.

◆ AGSA_SATA_PROTOCOL_PIO_WRITE

#define AGSA_SATA_PROTOCOL_PIO_WRITE   (AGSA_SATA_REQTYPE | AGSA_DIR_HOST_TO_CONTROLLER | AGSA_SATA_ATAP_PIO)

SATA PIO read request type

Definition at line 1026 of file sa.h.

◆ AGSA_SATA_PROTOCOL_PIO_WRITE_M

#define AGSA_SATA_PROTOCOL_PIO_WRITE_M   (AGSA_SATA_REQTYPE | AGSA_DIR_HOST_TO_CONTROLLER | AGSA_SATA_ATAP_PIO | AGSA_MSG)

SATA PIO read request type

Definition at line 1041 of file sa.h.

◆ AGSA_SATA_PROTOCOL_SRST_ASSERT

#define AGSA_SATA_PROTOCOL_SRST_ASSERT   (AGSA_SATA_REQTYPE | AGSA_DIR_NONE | AGSA_SATA_ATAP_SRST_ASSERT)

SATA device reset assert

Definition at line 1030 of file sa.h.

◆ AGSA_SATA_PROTOCOL_SRST_DEASSERT

#define AGSA_SATA_PROTOCOL_SRST_DEASSERT   (AGSA_SATA_REQTYPE | AGSA_DIR_NONE | AGSA_SATA_ATAP_SRST_DEASSERT)

SATA device reset deassert

Definition at line 1031 of file sa.h.

◆ AGSA_SATA_REQTYPE

#define AGSA_SATA_REQTYPE   0x20000000

Definition at line 889 of file sa.h.

◆ AGSA_SATA_SKIP_QWORD

#define AGSA_SATA_SKIP_QWORD   0xFFFF00

Definition at line 1136 of file sa.h.

◆ AGSA_SGPIO_CONFIG_REG

#define AGSA_SGPIO_CONFIG_REG   0x0

Definition at line 1593 of file sa.h.

◆ AGSA_SGPIO_DRIVE_BY_DRIVE_RECEIVE_REG

#define AGSA_SGPIO_DRIVE_BY_DRIVE_RECEIVE_REG   0x1

Definition at line 1594 of file sa.h.

◆ AGSA_SGPIO_DRIVE_BY_DRIVE_TRANSMIT_REG

#define AGSA_SGPIO_DRIVE_BY_DRIVE_TRANSMIT_REG   0x3

Definition at line 1596 of file sa.h.

◆ AGSA_SGPIO_GENERAL_PURPOSE_RECEIVE_REG

#define AGSA_SGPIO_GENERAL_PURPOSE_RECEIVE_REG   0x2

Definition at line 1595 of file sa.h.

◆ AGSA_SGPIO_GENERAL_PURPOSE_TRANSMIT_REG

#define AGSA_SGPIO_GENERAL_PURPOSE_TRANSMIT_REG   0x4

Definition at line 1597 of file sa.h.

◆ AGSA_SHA_TEST

#define AGSA_SHA_TEST   0x3

Definition at line 3269 of file sa.h.

◆ AGSA_SKIP_MASK_BIT

#define AGSA_SKIP_MASK_BIT   0x00000010

Definition at line 924 of file sa.h.

◆ AGSA_SKIP_MASK_OFFSET_BITS

#define AGSA_SKIP_MASK_OFFSET_BITS   0x0F000000

Definition at line 929 of file sa.h.

◆ AGSA_SMP_INIT

#define AGSA_SMP_INIT   0x00000007

Definition at line 907 of file sa.h.

◆ AGSA_SMP_INIT_REQ

#define AGSA_SMP_INIT_REQ   (AGSA_SMP_REQTYPE | AGSA_SMP_INIT)

SMP initiator request type

Definition at line 994 of file sa.h.

◆ AGSA_SMP_IOCTL_REQUEST

#define AGSA_SMP_IOCTL_REQUEST   0xFFFFFFFF

Definition at line 1010 of file sa.h.

◆ AGSA_SMP_REQTYPE

#define AGSA_SMP_REQTYPE   0x40000000

Definition at line 888 of file sa.h.

◆ AGSA_SMP_TGT

#define AGSA_SMP_TGT   0x00000008

Definition at line 908 of file sa.h.

◆ AGSA_SMP_TGT_RESPONSE

#define AGSA_SMP_TGT_RESPONSE   (AGSA_SMP_REQTYPE | AGSA_SMP_TGT)

SMP target response request type

Definition at line 995 of file sa.h.

◆ AGSA_SOFT_RESET

#define AGSA_SOFT_RESET   0x01

flag to reset the controller chip

Definition at line 857 of file sa.h.

◆ AGSA_SSP_EXT_BIT

#define AGSA_SSP_EXT_BIT   0x00000020

Definition at line 918 of file sa.h.

◆ AGSA_SSP_INDIRECT_BIT

#define AGSA_SSP_INDIRECT_BIT   0x00000040

Definition at line 919 of file sa.h.

◆ AGSA_SSP_INFO_LENGTH_BITS

#define AGSA_SSP_INFO_LENGTH_BITS   0xF0000000

Definition at line 930 of file sa.h.

◆ AGSA_SSP_INIT

#define AGSA_SSP_INIT   0x00000001

Definition at line 903 of file sa.h.

◆ AGSA_SSP_INIT_EXT

#define AGSA_SSP_INIT_EXT   (AGSA_SSP_INIT | AGSA_SSP_EXT_BIT)

Definition at line 911 of file sa.h.

◆ AGSA_SSP_INIT_INDIRECT

#define AGSA_SSP_INIT_INDIRECT   (AGSA_SSP_INIT | AGSA_SSP_INDIRECT_BIT)

Definition at line 914 of file sa.h.

◆ AGSA_SSP_INIT_NONDATA

#define AGSA_SSP_INIT_NONDATA   (AGSA_SSP_REQTYPE | AGSA_DIR_NONE | AGSA_SSP_INIT)

SSP initiator non data request type

Definition at line 983 of file sa.h.

◆ AGSA_SSP_INIT_READ

#define AGSA_SSP_INIT_READ   (AGSA_SSP_REQTYPE | AGSA_DIR_CONTROLLER_TO_HOST | AGSA_SSP_INIT)

SSP initiator read request type

Definition at line 984 of file sa.h.

◆ AGSA_SSP_INIT_READ_EXT

#define AGSA_SSP_INIT_READ_EXT   (AGSA_SSP_REQTYPE | AGSA_DIR_CONTROLLER_TO_HOST | AGSA_SSP_INIT_EXT)

SSP initiator read request Ext type

Definition at line 999 of file sa.h.

◆ AGSA_SSP_INIT_READ_EXT_M

#define AGSA_SSP_INIT_READ_EXT_M   (AGSA_SSP_REQTYPE | AGSA_DIR_CONTROLLER_TO_HOST | AGSA_SSP_INIT_EXT | AGSA_MSG)

Definition at line 1007 of file sa.h.

◆ AGSA_SSP_INIT_READ_INDIRECT

#define AGSA_SSP_INIT_READ_INDIRECT   (AGSA_SSP_REQTYPE | AGSA_DIR_CONTROLLER_TO_HOST | AGSA_SSP_INIT_INDIRECT)

SSP initiator read request indirect type

Definition at line 1002 of file sa.h.

◆ AGSA_SSP_INIT_READ_INDIRECT_M

#define AGSA_SSP_INIT_READ_INDIRECT_M   (AGSA_SSP_REQTYPE | AGSA_DIR_CONTROLLER_TO_HOST | AGSA_SSP_INIT_INDIRECT | AGSA_MSG)

SSP initiator read request indirect type

Definition at line 1005 of file sa.h.

◆ AGSA_SSP_INIT_READ_M

#define AGSA_SSP_INIT_READ_M   (AGSA_SSP_REQTYPE | AGSA_DIR_CONTROLLER_TO_HOST | AGSA_SSP_INIT | AGSA_MSG)

Definition at line 996 of file sa.h.

◆ AGSA_SSP_INIT_WRITE

#define AGSA_SSP_INIT_WRITE   (AGSA_SSP_REQTYPE | AGSA_DIR_HOST_TO_CONTROLLER | AGSA_SSP_INIT)

SSP initiator write request type

Definition at line 985 of file sa.h.

◆ AGSA_SSP_INIT_WRITE_EXT

#define AGSA_SSP_INIT_WRITE_EXT   (AGSA_SSP_REQTYPE | AGSA_DIR_HOST_TO_CONTROLLER | AGSA_SSP_INIT_EXT)

SSP initiator write request Ext type

Definition at line 1000 of file sa.h.

◆ AGSA_SSP_INIT_WRITE_EXT_M

#define AGSA_SSP_INIT_WRITE_EXT_M   (AGSA_SSP_REQTYPE | AGSA_DIR_HOST_TO_CONTROLLER | AGSA_SSP_INIT_EXT | AGSA_MSG)

Definition at line 1008 of file sa.h.

◆ AGSA_SSP_INIT_WRITE_INDIRECT

#define AGSA_SSP_INIT_WRITE_INDIRECT   (AGSA_SSP_REQTYPE | AGSA_DIR_HOST_TO_CONTROLLER | AGSA_SSP_INIT_INDIRECT)

SSP initiator write request indirect type

Definition at line 1003 of file sa.h.

◆ AGSA_SSP_INIT_WRITE_INDIRECT_M

#define AGSA_SSP_INIT_WRITE_INDIRECT_M   (AGSA_SSP_REQTYPE | AGSA_DIR_HOST_TO_CONTROLLER | AGSA_SSP_INIT_INDIRECT | AGSA_MSG)

SSP initiator write request indirect type

Definition at line 1006 of file sa.h.

◆ AGSA_SSP_INIT_WRITE_M

#define AGSA_SSP_INIT_WRITE_M   (AGSA_SSP_REQTYPE | AGSA_DIR_HOST_TO_CONTROLLER | AGSA_SSP_INIT | AGSA_MSG)

Definition at line 997 of file sa.h.

◆ AGSA_SSP_REQTYPE

#define AGSA_SSP_REQTYPE   0x80000000

Definition at line 887 of file sa.h.

◆ AGSA_SSP_TASK_MGNT

#define AGSA_SSP_TASK_MGNT   0x00000005

Definition at line 905 of file sa.h.

◆ AGSA_SSP_TASK_MGNT_REQ

#define AGSA_SSP_TASK_MGNT_REQ   (AGSA_SSP_REQTYPE | AGSA_SSP_TASK_MGNT)

SSP task management request type

Definition at line 992 of file sa.h.

◆ AGSA_SSP_TASK_MGNT_REQ_M

#define AGSA_SSP_TASK_MGNT_REQ_M   (AGSA_SSP_REQTYPE | AGSA_SSP_TASK_MGNT | AGSA_MSG)

Definition at line 998 of file sa.h.

◆ AGSA_SSP_TGT_BITS_AGR

#define AGSA_SSP_TGT_BITS_AGR   0x00000080 /* 7 */

Definition at line 942 of file sa.h.

◆ AGSA_SSP_TGT_BITS_AN

#define AGSA_SSP_TGT_BITS_AN   0x00000006 /* 2 3 */

Definition at line 945 of file sa.h.

◆ AGSA_SSP_TGT_BITS_DAD

#define AGSA_SSP_TGT_BITS_DAD   0x00000600 /* 11 10 */

Definition at line 938 of file sa.h.

◆ AGSA_SSP_TGT_BITS_DEE

#define AGSA_SSP_TGT_BITS_DEE   0x00002000 /* 13 14 */

Definition at line 936 of file sa.h.

◆ AGSA_SSP_TGT_BITS_DEE_DIF

#define AGSA_SSP_TGT_BITS_DEE_DIF   0x00004000 /* 14 */

Definition at line 935 of file sa.h.

◆ AGSA_SSP_TGT_BITS_DIR

#define AGSA_SSP_TGT_BITS_DIR   0x00000300 /* 8 9 */

Definition at line 939 of file sa.h.

◆ AGSA_SSP_TGT_BITS_DIR_IN

#define AGSA_SSP_TGT_BITS_DIR_IN   0x00000100 /* 8 9 */

Definition at line 940 of file sa.h.

◆ AGSA_SSP_TGT_BITS_DIR_OUT

#define AGSA_SSP_TGT_BITS_DIR_OUT   0x00000200 /* 8 9 */

Definition at line 941 of file sa.h.

◆ AGSA_SSP_TGT_BITS_INI_TAG

#define AGSA_SSP_TGT_BITS_INI_TAG   0xFFFF0000 /* 16 31 */

Definition at line 933 of file sa.h.

◆ AGSA_SSP_TGT_BITS_ODS

#define AGSA_SSP_TGT_BITS_ODS   0x00008000 /* 15 */

Definition at line 934 of file sa.h.

◆ AGSA_SSP_TGT_BITS_R

#define AGSA_SSP_TGT_BITS_R   0x00001000 /* 12 */

Definition at line 937 of file sa.h.

◆ AGSA_SSP_TGT_BITS_RDF

#define AGSA_SSP_TGT_BITS_RDF   0x00000040 /* 6 */

Definition at line 943 of file sa.h.

◆ AGSA_SSP_TGT_BITS_RTE

#define AGSA_SSP_TGT_BITS_RTE   0x00000030 /* 4 5 */

Definition at line 944 of file sa.h.

◆ AGSA_SSP_TGT_CMD_OR_TASK_RSP

#define AGSA_SSP_TGT_CMD_OR_TASK_RSP   (AGSA_SSP_REQTYPE | AGSA_SSP_TGT_RSP)

SSP command or task management response request type

Definition at line 993 of file sa.h.

◆ AGSA_SSP_TGT_MODE

#define AGSA_SSP_TGT_MODE   0x00000003

Definition at line 904 of file sa.h.

◆ AGSA_SSP_TGT_READ

#define AGSA_SSP_TGT_READ   (AGSA_SSP_REQTYPE | AGSA_DIR_HOST_TO_CONTROLLER | AGSA_SSP_TGT_MODE)

SSP target read data request type

Definition at line 987 of file sa.h.

◆ AGSA_SSP_TGT_READ_DATA

#define AGSA_SSP_TGT_READ_DATA   (AGSA_SSP_REQTYPE | AGSA_DIR_HOST_TO_CONTROLLER | AGSA_SSP_TGT_MODE)

SSP target read data request type

Definition at line 986 of file sa.h.

◆ AGSA_SSP_TGT_READ_GOOD_RESP

SSP target read data with automatic good response request type

Definition at line 988 of file sa.h.

◆ AGSA_SSP_TGT_RSP

#define AGSA_SSP_TGT_RSP   0x00000006

Definition at line 906 of file sa.h.

◆ AGSA_SSP_TGT_WRITE

#define AGSA_SSP_TGT_WRITE   (AGSA_SSP_REQTYPE | AGSA_DIR_CONTROLLER_TO_HOST | AGSA_SSP_TGT_MODE)

SSP target write data request type

Definition at line 990 of file sa.h.

◆ AGSA_SSP_TGT_WRITE_DATA

#define AGSA_SSP_TGT_WRITE_DATA   (AGSA_SSP_REQTYPE | AGSA_DIR_CONTROLLER_TO_HOST | AGSA_SSP_TGT_MODE)

SSP target write data request type

Definition at line 989 of file sa.h.

◆ AGSA_SSP_TGT_WRITE_GOOD_RESP

SSP target write data request type with automatic good response request type

Definition at line 991 of file sa.h.

◆ AGSA_STOP_PORT_RECOVERY_TIMER

#define AGSA_STOP_PORT_RECOVERY_TIMER   0x7

Definition at line 1176 of file sa.h.

◆ AGSA_TASK_MANAGEMENT_FUNCTION_COMPLETE

#define AGSA_TASK_MANAGEMENT_FUNCTION_COMPLETE   0x0

Definition at line 1117 of file sa.h.

◆ AGSA_TASK_MANAGEMENT_FUNCTION_FAILED

#define AGSA_TASK_MANAGEMENT_FUNCTION_FAILED   0x5

Definition at line 1120 of file sa.h.

◆ AGSA_TASK_MANAGEMENT_FUNCTION_NOT_SUPPORTED

#define AGSA_TASK_MANAGEMENT_FUNCTION_NOT_SUPPORTED   0x4

Definition at line 1119 of file sa.h.

◆ AGSA_TASK_MANAGEMENT_FUNCTION_SUCCEEDED

#define AGSA_TASK_MANAGEMENT_FUNCTION_SUCCEEDED   0x8

Definition at line 1121 of file sa.h.

◆ AGSA_WRITE_SGL

#define AGSA_WRITE_SGL (   sglDest,
  sgLower,
  sgUpper,
  len,
  extReserved 
)
Value:
OSSA_WRITE_LE_32(agRoot, sglDest, 0, sgLower); \
OSSA_WRITE_LE_32(agRoot, sglDest, 4, sgUpper); \
OSSA_WRITE_LE_32(agRoot, sglDest, 8, len); \
OSSA_WRITE_LE_32(agRoot, sglDest, 12, extReserved);

Definition at line 123 of file sa.h.

◆ AGSA_WRITE_SGPIO_REGISTER

#define AGSA_WRITE_SGPIO_REGISTER   0x82

Definition at line 1591 of file sa.h.

◆ agsaDIFSectorSize4096

#define agsaDIFSectorSize4096   2

Definition at line 2812 of file sa.h.

◆ agsaDIFSectorSize4160

#define agsaDIFSectorSize4160   3

Definition at line 2813 of file sa.h.

◆ agsaDIFSectorSize512

#define agsaDIFSectorSize512   0

Definition at line 2810 of file sa.h.

◆ agsaDIFSectorSize520

#define agsaDIFSectorSize520   1

Definition at line 2811 of file sa.h.

◆ agsaEncryptAcmMask

#define agsaEncryptAcmMask   0x00ff0000

Definition at line 1535 of file sa.h.

◆ agsaEncryptAuthorize

#define agsaEncryptAuthorize   (1 << 13)

Definition at line 1528 of file sa.h.

◆ agsaEncryptCipherModeECB

#define agsaEncryptCipherModeECB   0x00000001

Definition at line 1541 of file sa.h.

◆ agsaEncryptCipherModeXTS

#define agsaEncryptCipherModeXTS   0x00000002

Definition at line 1542 of file sa.h.

◆ agsaEncryptDIFSectorSize4104

#define agsaEncryptDIFSectorSize4104   (agsaEncryptSectorSize4096 | 0x18)

Definition at line 1574 of file sa.h.

◆ agsaEncryptDIFSectorSize4168

#define agsaEncryptDIFSectorSize4168   (agsaEncryptSectorSize4160 | 0x18)

Definition at line 1575 of file sa.h.

◆ agsaEncryptDIFSectorSize4232

#define agsaEncryptDIFSectorSize4232   (agsaEncryptSectorSize4224 | 0x18)

Definition at line 1576 of file sa.h.

◆ agsaEncryptDIFSectorSize520

#define agsaEncryptDIFSectorSize520   (agsaEncryptSectorSize512 | 0x18)

Definition at line 1572 of file sa.h.

◆ agsaEncryptDIFSectorSize528

#define agsaEncryptDIFSectorSize528   ( 0x19)

Definition at line 1573 of file sa.h.

◆ agsaEncryptEnableAES_ECB

#define agsaEncryptEnableAES_ECB   (1 << 16)

Definition at line 1536 of file sa.h.

◆ agsaEncryptEnableAES_XTS

#define agsaEncryptEnableAES_XTS   (1 << 22)

Definition at line 1537 of file sa.h.

◆ agsaEncryptReturnSMF

#define agsaEncryptReturnSMF   (1 << 12)

Definition at line 1527 of file sa.h.

◆ agsaEncryptSectorSize4096

#define agsaEncryptSectorSize4096   2

Definition at line 1568 of file sa.h.

◆ agsaEncryptSectorSize4160

#define agsaEncryptSectorSize4160   3

Definition at line 1569 of file sa.h.

◆ agsaEncryptSectorSize4224

#define agsaEncryptSectorSize4224   4

Definition at line 1570 of file sa.h.

◆ agsaEncryptSectorSize512

#define agsaEncryptSectorSize512   0

Definition at line 1566 of file sa.h.

◆ agsaEncryptSMA

#define agsaEncryptSMA   0x00000100

Definition at line 1525 of file sa.h.

◆ agsaEncryptSMB

#define agsaEncryptSMB   0x00000200

Definition at line 1526 of file sa.h.

◆ agsaEncryptSMF

#define agsaEncryptSMF   0x00000000

Definition at line 1524 of file sa.h.

◆ agsaEncryptStatusNoNVRAM

#define agsaEncryptStatusNoNVRAM   0x00000001

Definition at line 1546 of file sa.h.

◆ agsaEncryptStatusNVRAMErr

#define agsaEncryptStatusNVRAMErr   0x00000002

Definition at line 1547 of file sa.h.

◆ agsaModePageGet

#define agsaModePageGet   1

Definition at line 1584 of file sa.h.

◆ agsaModePageSet

#define agsaModePageSet   2

Definition at line 1585 of file sa.h.

◆ ATAPI_DEVICE_FLAG

#define ATAPI_DEVICE_FLAG   0x200000 /* bit21 */

Definition at line 2621 of file sa.h.

◆ AWT_DEVICE_FLAG

#define AWT_DEVICE_FLAG   (1 << SHIFT1)

Definition at line 2619 of file sa.h.

◆ BAR_SHIFT_GSM_OFFSET

#define BAR_SHIFT_GSM_OFFSET   0x400000

Definition at line 1889 of file sa.h.

◆ CRITICAL_ERROR

#define CRITICAL_ERROR   0x1

Definition at line 2493 of file sa.h.

◆ DEBUGGING

#define DEBUGGING   0x5

Definition at line 2497 of file sa.h.

◆ DEV_INFO_IR_SHIFT

#define DEV_INFO_IR_SHIFT   20

Definition at line 2616 of file sa.h.

◆ DEV_INFO_MASK

#define DEV_INFO_MASK   0xFF

Definition at line 2614 of file sa.h.

◆ DEV_INFO_MCN_SHIFT

#define DEV_INFO_MCN_SHIFT   16

Definition at line 2615 of file sa.h.

◆ DEV_LINK_RATE

#define DEV_LINK_RATE   0x3F

Definition at line 2625 of file sa.h.

◆ DIF_FLAG_BITS_ACTION

#define DIF_FLAG_BITS_ACTION   0x00000007 /* 0-2*/

Definition at line 2833 of file sa.h.

◆ DIF_FLAG_BITS_BLOCKSIZE_4096

#define DIF_FLAG_BITS_BLOCKSIZE_4096   0x00020000 /* 17 */

Definition at line 2848 of file sa.h.

◆ DIF_FLAG_BITS_BLOCKSIZE_4160

#define DIF_FLAG_BITS_BLOCKSIZE_4160   0x00030000 /* 16 17 */

Definition at line 2849 of file sa.h.

◆ DIF_FLAG_BITS_BLOCKSIZE_512

#define DIF_FLAG_BITS_BLOCKSIZE_512   0x00000000 /* */

Definition at line 2846 of file sa.h.

◆ DIF_FLAG_BITS_BLOCKSIZE_520

#define DIF_FLAG_BITS_BLOCKSIZE_520   0x00010000 /* 16 */

Definition at line 2847 of file sa.h.

◆ DIF_FLAG_BITS_BLOCKSIZE_MASK

#define DIF_FLAG_BITS_BLOCKSIZE_MASK   0x00070000 /* 16 17 18 */

Definition at line 2844 of file sa.h.

◆ DIF_FLAG_BITS_BLOCKSIZE_SHIFT

#define DIF_FLAG_BITS_BLOCKSIZE_SHIFT   16

Definition at line 2845 of file sa.h.

◆ DIF_FLAG_BITS_CRC_INV

#define DIF_FLAG_BITS_CRC_INV   0x00000010 /* 4 */

Definition at line 2835 of file sa.h.

◆ DIF_FLAG_BITS_CRC_SEED

#define DIF_FLAG_BITS_CRC_SEED   0x00000020 /* 5 */

Definition at line 2836 of file sa.h.

◆ DIF_FLAG_BITS_CRC_VER

#define DIF_FLAG_BITS_CRC_VER   0x00000008 /* 3 */

Definition at line 2834 of file sa.h.

◆ DIF_FLAG_BITS_CUST_APP_TAG

#define DIF_FLAG_BITS_CUST_APP_TAG   0x00000C00 /* 10 11*/

Definition at line 2841 of file sa.h.

◆ DIF_FLAG_BITS_EPRC

#define DIF_FLAG_BITS_EPRC   0x00001000 /* 12 */

Definition at line 2842 of file sa.h.

◆ DIF_FLAG_BITS_Reserved

#define DIF_FLAG_BITS_Reserved   0x0000E000 /* 13 14 15*/

Definition at line 2843 of file sa.h.

◆ DIF_FLAG_BITS_UDT_APP_TAG

#define DIF_FLAG_BITS_UDT_APP_TAG   0x00000080 /* 7 */

Definition at line 2838 of file sa.h.

◆ DIF_FLAG_BITS_UDT_REF_TAG

#define DIF_FLAG_BITS_UDT_REF_TAG   0x00000040 /* 6 */

Definition at line 2837 of file sa.h.

◆ DIF_FLAG_BITS_UDTR_APP_BLKCOUNT

#define DIF_FLAG_BITS_UDTR_APP_BLKCOUNT   0x00000200 /* 9 */

Definition at line 2840 of file sa.h.

◆ DIF_FLAG_BITS_UDTR_REF_BLKCOUNT

#define DIF_FLAG_BITS_UDTR_REF_BLKCOUNT   0x00000100 /* 8 */

Definition at line 2839 of file sa.h.

◆ DIF_FLAG_BITS_UDTUPMASK

#define DIF_FLAG_BITS_UDTUPMASK   0xF6000000 /* 26 27 28 29 30 31 */

Definition at line 2852 of file sa.h.

◆ DIF_FLAG_BITS_UDTUPSHIFT

#define DIF_FLAG_BITS_UDTUPSHIFT   26

Definition at line 2853 of file sa.h.

◆ DIF_FLAG_BITS_UDTV_SHIFT

#define DIF_FLAG_BITS_UDTV_SHIFT   20

Definition at line 2851 of file sa.h.

◆ DIF_FLAG_BITS_UDTVMASK

#define DIF_FLAG_BITS_UDTVMASK   0x03F00000 /* 20 21 22 23 24 25 */

Definition at line 2850 of file sa.h.

◆ DIF_UDT_SIZE

#define DIF_UDT_SIZE   6

Definition at line 2800 of file sa.h.

◆ DISABLE_LOGGING

#define DISABLE_LOGGING   0x0

Definition at line 2492 of file sa.h.

◆ EnableFPGA_TEST_ICCcontrol

#define EnableFPGA_TEST_ICCcontrol   0x01

Definition at line 3874 of file sa.h.

◆ EnableFPGA_TEST_LocalPhyControl

#define EnableFPGA_TEST_LocalPhyControl   0x10

Definition at line 3878 of file sa.h.

◆ EnableFPGA_TEST_PortControl

#define EnableFPGA_TEST_PortControl   0x20

Definition at line 3879 of file sa.h.

◆ EnableFPGA_TEST_ReadDEV

#define EnableFPGA_TEST_ReadDEV   0x02

Definition at line 3875 of file sa.h.

◆ EnableFPGA_TEST_ReconfigSASParams

#define EnableFPGA_TEST_ReconfigSASParams   0x08

Definition at line 3877 of file sa.h.

◆ EnableFPGA_TEST_WriteCALAll

#define EnableFPGA_TEST_WriteCALAll   0x04

Definition at line 3876 of file sa.h.

◆ FW_THIS_VERSION_SPC

#define FW_THIS_VERSION_SPC   0x01110000

Definition at line 756 of file sa.h.

◆ FW_THIS_VERSION_SPC12G

#define FW_THIS_VERSION_SPC12G   0x03060005

Definition at line 753 of file sa.h.

◆ FW_THIS_VERSION_SPC6G

#define FW_THIS_VERSION_SPC6G   0x02092400

Definition at line 755 of file sa.h.

◆ GET_GSM_SM_INFO

#define GET_GSM_SM_INFO   0x02

Definition at line 1278 of file sa.h.

◆ GET_IOST_RB_INFO

#define GET_IOST_RB_INFO   0x03

Definition at line 1279 of file sa.h.

◆ INFORMATION

#define INFORMATION   0x4

Definition at line 2496 of file sa.h.

◆ MATCHING_12G_V_FW_VERSION

#define MATCHING_12G_V_FW_VERSION   FW_THIS_VERSION_SPC12G

current V matching FW version

Definition at line 769 of file sa.h.

◆ MATCHING_SPC_FW_VERSION

#define MATCHING_SPC_FW_VERSION   FW_THIS_VERSION_SPC

current SPC matching FW version

Definition at line 773 of file sa.h.

◆ MATCHING_V_FW_VERSION

#define MATCHING_V_FW_VERSION   FW_THIS_VERSION_SPC6G

current V matching FW version

Definition at line 763 of file sa.h.

◆ MAX_CDB_LEN

#define MAX_CDB_LEN   32

data structure describes an SSP Command INFORMATION UNIT

data structure describes an SSP Command INFORMATION UNIT used for SSP command and is part of the SSP frame.

Currently, Additional CDB length is supported to 16 bytes

Definition at line 2789 of file sa.h.

◆ MAX_ESGL_ENTRIES

#define MAX_ESGL_ENTRIES   10

max # of extended SG list entry

Definition at line 822 of file sa.h.

◆ MAX_FW_12G_VERSION_SUPPORTED

#define MAX_FW_12G_VERSION_SUPPORTED   FW_THIS_VERSION_SPC12G

FW

Definition at line 768 of file sa.h.

◆ MAX_FW_VERSION_SUPPORTED

#define MAX_FW_VERSION_SUPPORTED   FW_THIS_VERSION_SPC6G

FW

Definition at line 762 of file sa.h.

◆ MAX_INDEX

#define MAX_INDEX   10

Definition at line 1763 of file sa.h.

◆ MAX_IO_DEVICE_ENTRIES

#define MAX_IO_DEVICE_ENTRIES   4096

Maximum Device Entries

Definition at line 3791 of file sa.h.

◆ MIN_FW_12G_SPCVE_VERSION_SUPPORTED

#define MIN_FW_12G_SPCVE_VERSION_SUPPORTED   0x03000000

3.00 FW

Definition at line 770 of file sa.h.

◆ MIN_FW_SPC_VERSION_SUPPORTED

#define MIN_FW_SPC_VERSION_SUPPORTED   0x01062502

1.06d FW

Definition at line 774 of file sa.h.

◆ MIN_FW_SPCVE_VERSION_SUPPORTED

#define MIN_FW_SPCVE_VERSION_SUPPORTED   0x02000000

2.00 FW

Definition at line 764 of file sa.h.

◆ NOTICE

#define NOTICE   0x3

Definition at line 2495 of file sa.h.

◆ ONE_MEGABYTE

#define ONE_MEGABYTE   0x100000

Definition at line 1891 of file sa.h.

◆ OperatorAuthenticationEnable_AUT

#define OperatorAuthenticationEnable_AUT   1

Definition at line 3215 of file sa.h.

◆ OQ_SHARE_PATH_BIT

#define OQ_SHARE_PATH_BIT   0x00000001

Definition at line 2444 of file sa.h.

◆ OSSA_CHIP_FAILED

#define OSSA_CHIP_FAILED   0x04

flag indicates chip failed callback status

Definition at line 1205 of file sa.h.

◆ OSSA_CTL_CONTROLLER_NOT_IDLE

#define OSSA_CTL_CONTROLLER_NOT_IDLE   0x1005

Definition at line 1337 of file sa.h.

◆ OSSA_CTL_INVALID_CONFIG_PAGE

#define OSSA_CTL_INVALID_CONFIG_PAGE   0x1001

Definition at line 1333 of file sa.h.

◆ OSSA_CTL_INVALID_ENCRYPTION_SECURITY_MODE

#define OSSA_CTL_INVALID_ENCRYPTION_SECURITY_MODE   0x1003

Definition at line 1335 of file sa.h.

◆ OSSA_CTL_INVALID_PARAM_IN_CONFIG_PAGE

#define OSSA_CTL_INVALID_PARAM_IN_CONFIG_PAGE   0x1002

Definition at line 1334 of file sa.h.

◆ OSSA_CTL_OPERATOR_AUTHENTICATION_FAILURE

#define OSSA_CTL_OPERATOR_AUTHENTICATION_FAILURE   0x100XX

Definition at line 1339 of file sa.h.

◆ OSSA_CTL_RESOURCE_NOT_AVAILABLE

#define OSSA_CTL_RESOURCE_NOT_AVAILABLE   0x1004

Definition at line 1336 of file sa.h.

◆ OSSA_CTL_SUCCESS

#define OSSA_CTL_SUCCESS   0x0000

Definition at line 1332 of file sa.h.

◆ OSSA_DEBUG_LEVEL_0

#define OSSA_DEBUG_LEVEL_0   0x00

debug level 0

Definition at line 1387 of file sa.h.

◆ OSSA_DEBUG_LEVEL_1

#define OSSA_DEBUG_LEVEL_1   0x01

debug level 1

Definition at line 1388 of file sa.h.

◆ OSSA_DEBUG_LEVEL_2

#define OSSA_DEBUG_LEVEL_2   0x02

debug level 2

Definition at line 1389 of file sa.h.

◆ OSSA_DEBUG_LEVEL_3

#define OSSA_DEBUG_LEVEL_3   0x03

debug level 3

Definition at line 1390 of file sa.h.

◆ OSSA_DEBUG_LEVEL_4

#define OSSA_DEBUG_LEVEL_4   0x04

debug level 4

Definition at line 1391 of file sa.h.

◆ OSSA_DEBUG_PRINT_INVALID_NUMBER

#define OSSA_DEBUG_PRINT_INVALID_NUMBER   0xFFFFFFFF

the number won't be printed by OS layer

Definition at line 1393 of file sa.h.

◆ OSSA_DEK_MGMT_SUBOP_NOT_SUPPORTED

#define OSSA_DEK_MGMT_SUBOP_NOT_SUPPORTED   0x2000

Definition at line 1504 of file sa.h.

◆ OSSA_DEV_INFO_INVALID_HANDLE

#define OSSA_DEV_INFO_INVALID_HANDLE   0x01

Definition at line 1403 of file sa.h.

◆ OSSA_DEV_INFO_NO_EXTENDED_INFO

#define OSSA_DEV_INFO_NO_EXTENDED_INFO   0x02

Definition at line 1404 of file sa.h.

◆ OSSA_DEV_INFO_SAS_EXTENDED_INFO

#define OSSA_DEV_INFO_SAS_EXTENDED_INFO   0x03

Definition at line 1405 of file sa.h.

◆ OSSA_DEV_INFO_SATA_EXTENDED_INFO

#define OSSA_DEV_INFO_SATA_EXTENDED_INFO   0x04

Definition at line 1406 of file sa.h.

◆ OSSA_DFE_CHANNEL_DOWN

#define OSSA_DFE_CHANNEL_DOWN   0x100E

Definition at line 1626 of file sa.h.

◆ OSSA_DFE_CHANNEL_INVALID

#define OSSA_DFE_CHANNEL_INVALID   0x1010

Definition at line 1628 of file sa.h.

◆ OSSA_DFE_DATA_OVERFLOW

#define OSSA_DFE_DATA_OVERFLOW   0x0002

Definition at line 1624 of file sa.h.

◆ OSSA_DFE_DMA_FAILURE

#define OSSA_DFE_DMA_FAILURE   0x1011

Definition at line 1629 of file sa.h.

◆ OSSA_DFE_MEASUREMENT_IN_PROGRESS

#define OSSA_DFE_MEASUREMENT_IN_PROGRESS   0x100F

Definition at line 1627 of file sa.h.

◆ OSSA_DFE_MPI_ERR_RESOURCE_UNAVAILABLE

#define OSSA_DFE_MPI_ERR_RESOURCE_UNAVAILABLE   0x1004

Definition at line 1625 of file sa.h.

◆ OSSA_DFE_MPI_IO_SUCCESS

#define OSSA_DFE_MPI_IO_SUCCESS   0x0000

Definition at line 1623 of file sa.h.

◆ OSSA_DIAG_FAIL

#define OSSA_DIAG_FAIL   0x02 /* SAS diagnostic command failed. This is applicable only to the SPC controller. */

Definition at line 1254 of file sa.h.

◆ OSSA_DIAG_INVALID_COMMAND

#define OSSA_DIAG_INVALID_COMMAND   0x01 /* Invalid SAS diagnostic command. */

Definition at line 1252 of file sa.h.

◆ OSSA_DIAG_INVALID_PHY

#define OSSA_DIAG_INVALID_PHY   0x04 /* Attempted to execute SAS diagnostic command on an invalid/out-of-range PHY. */

Definition at line 1256 of file sa.h.

◆ OSSA_DIAG_NOT_IN_DIAGNOSTIC_MODE

#define OSSA_DIAG_NOT_IN_DIAGNOSTIC_MODE   0x03 /* Attempted to execute SAS diagnostic command but PHY is not in diagnostic mode */

Definition at line 1255 of file sa.h.

◆ OSSA_DIAG_OPCODE_INVALID

#define OSSA_DIAG_OPCODE_INVALID   0x03

Definition at line 1265 of file sa.h.

◆ OSSA_DIAG_OTHER_FAILURE

#define OSSA_DIAG_OTHER_FAILURE   0x03 /* SPC */

Definition at line 1264 of file sa.h.

◆ OSSA_DIAG_PHY_NOT_DISABLED

#define OSSA_DIAG_PHY_NOT_DISABLED   0x02

Definition at line 1263 of file sa.h.

◆ OSSA_DIAG_SE_INVALID_PHY_ID

#define OSSA_DIAG_SE_INVALID_PHY_ID   0x01

Definition at line 1262 of file sa.h.

◆ OSSA_DIAG_SE_SUCCESS

#define OSSA_DIAG_SE_SUCCESS   0x00

Definition at line 1261 of file sa.h.

◆ OSSA_DIAG_SUCCESS

#define OSSA_DIAG_SUCCESS   0x00 /* Successful SAS diagnostic command. */

Definition at line 1251 of file sa.h.

◆ OSSA_DIF_ENGINE_0_BIST_FAILURE

#define OSSA_DIF_ENGINE_0_BIST_FAILURE   0x1 /* DIF Engine 0 failed the BIST Test */

Definition at line 3933 of file sa.h.

◆ OSSA_DIF_ENGINE_1_BIST_FAILURE

#define OSSA_DIF_ENGINE_1_BIST_FAILURE   0x2 /* DIF Engine 1 failed the BIST Test */

Definition at line 3934 of file sa.h.

◆ OSSA_DIF_ENGINE_2_BIST_FAILURE

#define OSSA_DIF_ENGINE_2_BIST_FAILURE   0x4 /* DIF Engine 2 failed the BIST Test */

Definition at line 3935 of file sa.h.

◆ OSSA_DIF_ENGINE_3_BIST_FAILURE

#define OSSA_DIF_ENGINE_3_BIST_FAILURE   0x8 /* DIF Engine 3 failed the BIST Test */

Definition at line 3936 of file sa.h.

◆ OSSA_DIF_ENGINE_FAILURE_MASK

#define OSSA_DIF_ENGINE_FAILURE_MASK   0x0F000000 /* DIF Engine failed the BIST Test */

Definition at line 3931 of file sa.h.

◆ OSSA_DISCOVER_ABORT

#define OSSA_DISCOVER_ABORT   0x04

flag indicates discover error12

Definition at line 1373 of file sa.h.

◆ OSSA_DISCOVER_ABORT_ERROR_1

#define OSSA_DISCOVER_ABORT_ERROR_1   0x05

flag indicates discover error1

Definition at line 1374 of file sa.h.

◆ OSSA_DISCOVER_ABORT_ERROR_2

#define OSSA_DISCOVER_ABORT_ERROR_2   0x06

flag indicates discover error2

Definition at line 1375 of file sa.h.

◆ OSSA_DISCOVER_ABORT_ERROR_3

#define OSSA_DISCOVER_ABORT_ERROR_3   0x07

flag indicates discover error3

Definition at line 1376 of file sa.h.

◆ OSSA_DISCOVER_ABORT_ERROR_4

#define OSSA_DISCOVER_ABORT_ERROR_4   0x08

flag indicates discover error4

Definition at line 1377 of file sa.h.

◆ OSSA_DISCOVER_ABORT_ERROR_5

#define OSSA_DISCOVER_ABORT_ERROR_5   0x09

flag indicates discover error5

Definition at line 1378 of file sa.h.

◆ OSSA_DISCOVER_ABORT_ERROR_6

#define OSSA_DISCOVER_ABORT_ERROR_6   0x0A

flag indicates discover error6

Definition at line 1379 of file sa.h.

◆ OSSA_DISCOVER_ABORT_ERROR_7

#define OSSA_DISCOVER_ABORT_ERROR_7   0x0B

flag indicates discover error7

Definition at line 1380 of file sa.h.

◆ OSSA_DISCOVER_ABORT_ERROR_8

#define OSSA_DISCOVER_ABORT_ERROR_8   0x0C

flag indicates discover error8

Definition at line 1381 of file sa.h.

◆ OSSA_DISCOVER_ABORT_ERROR_9

#define OSSA_DISCOVER_ABORT_ERROR_9   0x0D

flag indicates discover error9

Definition at line 1382 of file sa.h.

◆ OSSA_DISCOVER_COMPLETE

#define OSSA_DISCOVER_COMPLETE   0x03

flag indicates discover completed

Definition at line 1372 of file sa.h.

◆ OSSA_DISCOVER_FOUND_DEVICE

#define OSSA_DISCOVER_FOUND_DEVICE   0x01

flag indicates discovery found a new device

Definition at line 1370 of file sa.h.

◆ OSSA_DISCOVER_REMOVED_DEVICE

#define OSSA_DISCOVER_REMOVED_DEVICE   0x02

flag indicates discovery found a device removed

Definition at line 1371 of file sa.h.

◆ OSSA_DISCOVER_STARTED

#define OSSA_DISCOVER_STARTED   0x00

flag indicates discover started

Definition at line 1369 of file sa.h.

◆ OSSA_ENCRYPT_AES_BIST_ERR

#define OSSA_ENCRYPT_AES_BIST_ERR   0x41 /* Built-In Test Failure */

Definition at line 3910 of file sa.h.

◆ OSSA_ENCRYPT_ENGINE_FAILURE_MASK

#define OSSA_ENCRYPT_ENGINE_FAILURE_MASK   0x00FF0000 /* Encrypt Engine failed the BIST Test */

Definition at line 3898 of file sa.h.

◆ OSSA_ENCRYPT_FLASH_ACCESS_TMO

#define OSSA_ENCRYPT_FLASH_ACCESS_TMO   0x20 /* Timeout while reading flash memory. */

Definition at line 3904 of file sa.h.

◆ OSSA_ENCRYPT_FLASH_ECC_CHECK_ERR

#define OSSA_ENCRYPT_FLASH_ECC_CHECK_ERR   0x23 /* Flash ECC check failure. */

Definition at line 3907 of file sa.h.

◆ OSSA_ENCRYPT_FLASH_NOT_INSTALLED

#define OSSA_ENCRYPT_FLASH_NOT_INSTALLED   0x24 /* Flash memory not installed, this error is only detected in Security Mode B. */

Definition at line 3908 of file sa.h.

◆ OSSA_ENCRYPT_FLASH_SECTOR_ERASE_ERR

#define OSSA_ENCRYPT_FLASH_SECTOR_ERASE_ERR   0x22 /* Flash sector erase failure while writing to flash memory. */

Definition at line 3906 of file sa.h.

◆ OSSA_ENCRYPT_FLASH_SECTOR_ERASE_TMO

#define OSSA_ENCRYPT_FLASH_SECTOR_ERASE_TMO   0x21 /* Flash sector erase timeout while writing to flash memory. */

Definition at line 3905 of file sa.h.

◆ OSSA_ENCRYPT_INITIAL_KEK_NOT_FOUND

#define OSSA_ENCRYPT_INITIAL_KEK_NOT_FOUND   0x40 /* Initial KEK is not found in the flash memory. This error is only detected in Security Mode B. */

Definition at line 3909 of file sa.h.

◆ OSSA_ENCRYPT_KWP_BIST_FAILURE

#define OSSA_ENCRYPT_KWP_BIST_FAILURE   0x42 /* Built-In Test Failed on Key Wrap Engine */

Definition at line 3911 of file sa.h.

◆ OSSA_ENCRYPT_SEEPROM_IPW_INVALID

#define OSSA_ENCRYPT_SEEPROM_IPW_INVALID   0x04 /* Initialization password read from SEEPROM doesn't match any valid password value. This could also mean SEEPROM is blank. */

Definition at line 3902 of file sa.h.

◆ OSSA_ENCRYPT_SEEPROM_IPW_RD_ACCESS_TMO

#define OSSA_ENCRYPT_SEEPROM_IPW_RD_ACCESS_TMO   0x02 /* SEEPROM access timeout detected while reading initialization password or Allowable Cipher Modes. */

Definition at line 3900 of file sa.h.

◆ OSSA_ENCRYPT_SEEPROM_IPW_RD_CRC_ERR

#define OSSA_ENCRYPT_SEEPROM_IPW_RD_CRC_ERR   0x03 /* CRC Error detected when reading initialization password or Allowable Cipher Modes. */

Definition at line 3901 of file sa.h.

◆ OSSA_ENCRYPT_SEEPROM_NOT_FOUND

#define OSSA_ENCRYPT_SEEPROM_NOT_FOUND   0x01 /* SEEPROM is not installed. This condition is reported based on the bootstrap pin setting. */

Definition at line 3899 of file sa.h.

◆ OSSA_ENCRYPT_SEEPROM_WR_ACCESS_TMO

#define OSSA_ENCRYPT_SEEPROM_WR_ACCESS_TMO   0x05 /* access timeout detected while writing initialization password or Allowable Cipher Modes. */

Definition at line 3903 of file sa.h.

◆ OSSA_ERR_DEVICE_ALREADY_REGISTERED

#define OSSA_ERR_DEVICE_ALREADY_REGISTERED   0x1021

Definition at line 1220 of file sa.h.

◆ OSSA_ERR_DEVICE_BUSY

#define OSSA_ERR_DEVICE_BUSY   0x1024 /* MPI_ERR_DEVICE_BUSY Device has outstanding I/Os. */

Definition at line 1238 of file sa.h.

◆ OSSA_ERR_DEVICE_HANDLE_INVALID

#define OSSA_ERR_DEVICE_HANDLE_INVALID   0x1023 /* MPI_ERR_DEVICE_HANDLE_INVALID The device handle associated with DEVICE_ID does not exist. */

Definition at line 1237 of file sa.h.

◆ OSSA_ERR_DEVICE_HANDLE_UNAVAILABLE

#define OSSA_ERR_DEVICE_HANDLE_UNAVAILABLE   0x1020

Definition at line 1219 of file sa.h.

◆ OSSA_ERR_DEVICE_NEW_STATE_INVALID

#define OSSA_ERR_DEVICE_NEW_STATE_INVALID   0x1025

Definition at line 1246 of file sa.h.

◆ OSSA_ERR_DEVICE_STATE_CHANGE_NOT_ALLOWED

#define OSSA_ERR_DEVICE_STATE_CHANGE_NOT_ALLOWED   0x1026

Definition at line 1247 of file sa.h.

◆ OSSA_ERR_DEVICE_STATE_INVALID

#define OSSA_ERR_DEVICE_STATE_INVALID   0x0049

Definition at line 1248 of file sa.h.

◆ OSSA_ERR_DEVICE_TYPE_NOT_VALID

#define OSSA_ERR_DEVICE_TYPE_NOT_VALID   0x1022

Definition at line 1221 of file sa.h.

◆ OSSA_ERR_PHY_ID_ALREADY_REGISTERED

#define OSSA_ERR_PHY_ID_ALREADY_REGISTERED   0x1062

Definition at line 1231 of file sa.h.

◆ OSSA_ERR_PHY_ID_INVALID

#define OSSA_ERR_PHY_ID_INVALID   0x1061

Definition at line 1230 of file sa.h.

◆ OSSA_ERR_PORT_INVALID

#define OSSA_ERR_PORT_INVALID   0x1041

Definition at line 1225 of file sa.h.

◆ OSSA_ERR_PORT_SMP_PHY_WIDTH_EXCEED

#define OSSA_ERR_PORT_SMP_PHY_WIDTH_EXCEED   0x1045

Definition at line 1228 of file sa.h.

◆ OSSA_ERR_PORT_STATE_NOT_VALID

#define OSSA_ERR_PORT_STATE_NOT_VALID   0x1042

Definition at line 1226 of file sa.h.

◆ OSSA_EVENT_SOURCE_DEVICE_HANDLE_ADDED

#define OSSA_EVENT_SOURCE_DEVICE_HANDLE_ADDED   0x00

Definition at line 1399 of file sa.h.

◆ OSSA_EVENT_SOURCE_DEVICE_HANDLE_REMOVED

#define OSSA_EVENT_SOURCE_DEVICE_HANDLE_REMOVED   0x01

Definition at line 1400 of file sa.h.

◆ OSSA_FAILURE

#define OSSA_FAILURE   0x01

flag indicates failed callback status

Definition at line 1201 of file sa.h.

◆ OSSA_FAILURE_DEVICE_ALREADY_REGISTERED

#define OSSA_FAILURE_DEVICE_ALREADY_REGISTERED   0x02

flag indicates failed callback status

Definition at line 1213 of file sa.h.

◆ OSSA_FAILURE_DEVICE_TYPE_NOT_VALID

#define OSSA_FAILURE_DEVICE_TYPE_NOT_VALID   0x07

flag indicates failed callback status

Definition at line 1218 of file sa.h.

◆ OSSA_FAILURE_INVALID_PHY_ID

#define OSSA_FAILURE_INVALID_PHY_ID   0x03

flag indicates failed callback status

Definition at line 1214 of file sa.h.

◆ OSSA_FAILURE_OUT_OF_RESOURCE

#define OSSA_FAILURE_OUT_OF_RESOURCE   0x01

flag indicates failed callback status

Definition at line 1212 of file sa.h.

◆ OSSA_FAILURE_PHY_ID_ALREADY_REGISTERED

#define OSSA_FAILURE_PHY_ID_ALREADY_REGISTERED   0x04

flag indicates failed callback status

Definition at line 1215 of file sa.h.

◆ OSSA_FAILURE_PORT_ID_OUT_OF_RANGE

#define OSSA_FAILURE_PORT_ID_OUT_OF_RANGE   0x05

flag indicates failed callback status

Definition at line 1216 of file sa.h.

◆ OSSA_FAILURE_PORT_NOT_VALID_STATE

#define OSSA_FAILURE_PORT_NOT_VALID_STATE   0x06

flag indicates failed callback status

Definition at line 1217 of file sa.h.

◆ OSSA_FLASH_FWDNLD_DEVICE_UNSUPPORT

#define OSSA_FLASH_FWDNLD_DEVICE_UNSUPPORT   0x12

flag indicates fw flash Update disabled

Definition at line 1364 of file sa.h.

◆ OSSA_FLASH_UPDATE_COMPLETE_PENDING_REBOOT

#define OSSA_FLASH_UPDATE_COMPLETE_PENDING_REBOOT   0x00

flag indicates fw flash update completed

Definition at line 1353 of file sa.h.

◆ OSSA_FLASH_UPDATE_CRC_ERR

#define OSSA_FLASH_UPDATE_CRC_ERR   0x04

flag indicates fw flash CRC error

Definition at line 1357 of file sa.h.

◆ OSSA_FLASH_UPDATE_DISABLED

#define OSSA_FLASH_UPDATE_DISABLED   0x11

flag indicates fw flash Update disabled

Definition at line 1363 of file sa.h.

◆ OSSA_FLASH_UPDATE_DNLD_NOT_SUPPORTED

#define OSSA_FLASH_UPDATE_DNLD_NOT_SUPPORTED   0x10

flag indicates fw flash down load not supported

Definition at line 1362 of file sa.h.

◆ OSSA_FLASH_UPDATE_HDR_ERR

#define OSSA_FLASH_UPDATE_HDR_ERR   0x02

flag indicates fw flash header error

Definition at line 1355 of file sa.h.

◆ OSSA_FLASH_UPDATE_HMAC_ERR

#define OSSA_FLASH_UPDATE_HMAC_ERR   0x0E

flag indicates fw flash Firmware image HMAC authentication failure.

Definition at line 1360 of file sa.h.

◆ OSSA_FLASH_UPDATE_HW_ERR

#define OSSA_FLASH_UPDATE_HW_ERR   0x06

flag indicates fw flash HW error

Definition at line 1359 of file sa.h.

◆ OSSA_FLASH_UPDATE_IN_PROGRESS

#define OSSA_FLASH_UPDATE_IN_PROGRESS   0x01

flag indicates fw flash update in progress

Definition at line 1354 of file sa.h.

◆ OSSA_FLASH_UPDATE_LENGTH_ERR

#define OSSA_FLASH_UPDATE_LENGTH_ERR   0x05

flag indicates fw flash length error

Definition at line 1358 of file sa.h.

◆ OSSA_FLASH_UPDATE_OFFSET_ERR

#define OSSA_FLASH_UPDATE_OFFSET_ERR   0x03

flag indicates fw flash offset error

Definition at line 1356 of file sa.h.

◆ OSSA_FRAME_TYPE_SSP_CMD

#define OSSA_FRAME_TYPE_SSP_CMD   0x06

flag indicates received frame is SSP command

Definition at line 1395 of file sa.h.

◆ OSSA_FRAME_TYPE_SSP_TASK

#define OSSA_FRAME_TYPE_SSP_TASK   0x16

flag indicates received frame is SSP task management

Definition at line 1396 of file sa.h.

◆ OSSA_FREEZE_FAILED

#define OSSA_FREEZE_FAILED   0x05

flag indicates freeze failed callback status

Definition at line 1206 of file sa.h.

◆ OSSA_HW_ENCRYPT_DEK_INVALIDTE

#define OSSA_HW_ENCRYPT_DEK_INVALIDTE   0x0004

Definition at line 1491 of file sa.h.

◆ OSSA_HW_ENCRYPT_DEK_UPDATE

#define OSSA_HW_ENCRYPT_DEK_UPDATE   0x0003

Definition at line 1490 of file sa.h.

◆ OSSA_HW_ENCRYPT_GET_OPERATOR

#define OSSA_HW_ENCRYPT_GET_OPERATOR   0x0008

Definition at line 1495 of file sa.h.

◆ OSSA_HW_ENCRYPT_KEK_INVALIDTE

#define OSSA_HW_ENCRYPT_KEK_INVALIDTE   0x0002

Definition at line 1489 of file sa.h.

◆ OSSA_HW_ENCRYPT_KEK_UPDATE

#define OSSA_HW_ENCRYPT_KEK_UPDATE   0x0000

Definition at line 1487 of file sa.h.

◆ OSSA_HW_ENCRYPT_KEK_UPDATE_AND_STORE

#define OSSA_HW_ENCRYPT_KEK_UPDATE_AND_STORE   0x0001

Definition at line 1488 of file sa.h.

◆ OSSA_HW_ENCRYPT_OPERATOR_MANAGEMENT

#define OSSA_HW_ENCRYPT_OPERATOR_MANAGEMENT   0x0005

Definition at line 1492 of file sa.h.

◆ OSSA_HW_ENCRYPT_SET_OPERATOR

#define OSSA_HW_ENCRYPT_SET_OPERATOR   0x0007

Definition at line 1494 of file sa.h.

◆ OSSA_HW_ENCRYPT_TEST_EXECUTE

#define OSSA_HW_ENCRYPT_TEST_EXECUTE   0x0006

Definition at line 1493 of file sa.h.

◆ OSSA_HW_EVENT_BROADCAST_ASYNCH_EVENT

#define OSSA_HW_EVENT_BROADCAST_ASYNCH_EVENT   0x21

flag indicates Broadcast Asynch Event

Definition at line 1313 of file sa.h.

◆ OSSA_HW_EVENT_BROADCAST_CHANGE

#define OSSA_HW_EVENT_BROADCAST_CHANGE   0x09

flag indicates broadcast change event

Definition at line 1292 of file sa.h.

◆ OSSA_HW_EVENT_BROADCAST_EXP

#define OSSA_HW_EVENT_BROADCAST_EXP   0x10

flag indicates broadcast (EXPANDER) event

Definition at line 1301 of file sa.h.

◆ OSSA_HW_EVENT_BROADCAST_SES

#define OSSA_HW_EVENT_BROADCAST_SES   0x0B

flag indicates broadcast change (SES) event

Definition at line 1295 of file sa.h.

◆ OSSA_HW_EVENT_ENCRYPTION

#define OSSA_HW_EVENT_ENCRYPTION   0x83

TSDK internal flag indicating that an encryption event occurred

Definition at line 1318 of file sa.h.

◆ OSSA_HW_EVENT_HARD_RESET_RECEIVED

#define OSSA_HW_EVENT_HARD_RESET_RECEIVED   0x0D

flag indicates hardware reset received event

Definition at line 1297 of file sa.h.

◆ OSSA_HW_EVENT_ID_FRAME_TIMEOUT

#define OSSA_HW_EVENT_ID_FRAME_TIMEOUT   0x0F

flag indicates ID Frame Timeout event

Definition at line 1300 of file sa.h.

◆ OSSA_HW_EVENT_IT_NEXUS_LOSS

#define OSSA_HW_EVENT_IT_NEXUS_LOSS   0x22

Custom: H/W event for IT Nexus Loss

Definition at line 1314 of file sa.h.

◆ OSSA_HW_EVENT_MALFUNCTION

#define OSSA_HW_EVENT_MALFUNCTION   0x0E

flag indicates unrecoverable Error

Definition at line 1299 of file sa.h.

◆ OSSA_HW_EVENT_MODE

#define OSSA_HW_EVENT_MODE   0x84

TSDK internal flag indicating that a controller mode page operation completed

Definition at line 1319 of file sa.h.

◆ OSSA_HW_EVENT_OPEN_RETRY_BACKOFF_THR_ADJUSTED

#define OSSA_HW_EVENT_OPEN_RETRY_BACKOFF_THR_ADJUSTED   0x25

Definition at line 1316 of file sa.h.

◆ OSSA_HW_EVENT_PHY_DOWN

#define OSSA_HW_EVENT_PHY_DOWN   0x07

flag indicates link down event

Definition at line 1290 of file sa.h.

◆ OSSA_HW_EVENT_PHY_ERR_CODE_VIOLATION

#define OSSA_HW_EVENT_PHY_ERR_CODE_VIOLATION   0x14

flag indicates Phy error code violation

Definition at line 1306 of file sa.h.

◆ OSSA_HW_EVENT_PHY_ERR_DISPARITY_ERROR

#define OSSA_HW_EVENT_PHY_ERR_DISPARITY_ERROR   0x13

flag indicates Phy error disparity

Definition at line 1305 of file sa.h.

◆ OSSA_HW_EVENT_PHY_ERR_INBOUND_CRC

#define OSSA_HW_EVENT_PHY_ERR_INBOUND_CRC   0x0C

Definition at line 1296 of file sa.h.

◆ OSSA_HW_EVENT_PHY_ERR_INVALID_DWORD

#define OSSA_HW_EVENT_PHY_ERR_INVALID_DWORD   0x12

flag indicates Link error invalid DWORD

Definition at line 1304 of file sa.h.

◆ OSSA_HW_EVENT_PHY_ERR_LOSS_OF_DWORD_SYNCH

#define OSSA_HW_EVENT_PHY_ERR_LOSS_OF_DWORD_SYNCH   0x15

flag indicates Link error loss of DWORD synch

Definition at line 1307 of file sa.h.

◆ OSSA_HW_EVENT_PHY_ERR_PHY_RESET_FAILED

#define OSSA_HW_EVENT_PHY_ERR_PHY_RESET_FAILED   0x16

flag indicates Link error phy reset failed

Definition at line 1308 of file sa.h.

◆ OSSA_HW_EVENT_PHY_ERROR

#define OSSA_HW_EVENT_PHY_ERROR   0x0A

flag indicates link error event

Definition at line 1294 of file sa.h.

◆ OSSA_HW_EVENT_PHY_START_STATUS

#define OSSA_HW_EVENT_PHY_START_STATUS   0x11

flag indicates phy start event status

Definition at line 1303 of file sa.h.

◆ OSSA_HW_EVENT_PHY_STOP_STATUS

#define OSSA_HW_EVENT_PHY_STOP_STATUS   0x03

flag indicates phy stop event status

Definition at line 1286 of file sa.h.

◆ OSSA_HW_EVENT_PORT_RECOVER

#define OSSA_HW_EVENT_PORT_RECOVER   0x18

flag indicates Port Recovery

Definition at line 1310 of file sa.h.

◆ OSSA_HW_EVENT_PORT_RECOVERY_TIMER_TMO

#define OSSA_HW_EVENT_PORT_RECOVERY_TIMER_TMO   0x17

flag indicates Port Recovery timeout

Definition at line 1309 of file sa.h.

◆ OSSA_HW_EVENT_PORT_RESET_COMPLETE

#define OSSA_HW_EVENT_PORT_RESET_COMPLETE   0x20

flag indicates Port Reset Complete

Definition at line 1312 of file sa.h.

◆ OSSA_HW_EVENT_PORT_RESET_TIMER_TMO

#define OSSA_HW_EVENT_PORT_RESET_TIMER_TMO   0x19

flag indicates Port Reset Timer out

Definition at line 1311 of file sa.h.

◆ OSSA_HW_EVENT_RESET_COMPLETE

#define OSSA_HW_EVENT_RESET_COMPLETE   0x02

flag indicates chip reset completed event

Definition at line 1285 of file sa.h.

◆ OSSA_HW_EVENT_RESET_START

#define OSSA_HW_EVENT_RESET_START   0x01

flag indicates reset started event

Definition at line 1284 of file sa.h.

◆ OSSA_HW_EVENT_SAS_PHY_UP

#define OSSA_HW_EVENT_SAS_PHY_UP   0x04

flag indicates SAS link up event

Definition at line 1287 of file sa.h.

◆ OSSA_HW_EVENT_SATA_PHY_UP

#define OSSA_HW_EVENT_SATA_PHY_UP   0x05

flag indicates SATA link up event

Definition at line 1288 of file sa.h.

◆ OSSA_HW_EVENT_SATA_SPINUP_HOLD

#define OSSA_HW_EVENT_SATA_SPINUP_HOLD   0x06

flag indicates SATA spinup hold event

Definition at line 1289 of file sa.h.

◆ OSSA_HW_EVENT_SECURITY_MODE

#define OSSA_HW_EVENT_SECURITY_MODE   0x85

TSDK internal flag indicating that saEncryptSetMode() completed

Definition at line 1320 of file sa.h.

◆ OSSA_INBOUND_IOMB_INVALID_OBID

#define OSSA_INBOUND_IOMB_INVALID_OBID   0x03

Definition at line 1348 of file sa.h.

◆ OSSA_INBOUND_OPC_NOT_SUPPORTED

#define OSSA_INBOUND_OPC_NOT_SUPPORTED   0x02

Definition at line 1347 of file sa.h.

◆ OSSA_INBOUND_V_BIT_NOT_SET

#define OSSA_INBOUND_V_BIT_NOT_SET   0x01

Definition at line 1346 of file sa.h.

◆ OSSA_INVALID_ENCRYPTION_SECURITY_MODE

#define OSSA_INVALID_ENCRYPTION_SECURITY_MODE   0x1003

Definition at line 1502 of file sa.h.

◆ OSSA_INVALID_HANDLE

#define OSSA_INVALID_HANDLE   0x02

flag indicates failed callback status

Definition at line 1236 of file sa.h.

◆ OSSA_INVALID_STATE

#define OSSA_INVALID_STATE   0x0001

Definition at line 1245 of file sa.h.

◆ OSSA_KEK_MGMT_SUBOP_NOT_SUPPORTED_

#define OSSA_KEK_MGMT_SUBOP_NOT_SUPPORTED_   0x2000 /*not in PM 101222*/

Definition at line 1503 of file sa.h.

◆ OSSA_MEMORY_ALLOC_FAILURE

#define OSSA_MEMORY_ALLOC_FAILURE   0x05 /* Memory allocation failed in diagnostic. This is applicable only to the SPCv controller. */

Definition at line 1257 of file sa.h.

◆ OSSA_MPI_ENC_ERR_CONTROLLER_NOT_IDLE

#define OSSA_MPI_ENC_ERR_CONTROLLER_NOT_IDLE   0x1005

Definition at line 1519 of file sa.h.

◆ OSSA_MPI_ENC_ERR_ILLEGAL_DEK_PARAM

#define OSSA_MPI_ENC_ERR_ILLEGAL_DEK_PARAM   0x2001

Definition at line 1505 of file sa.h.

◆ OSSA_MPI_ENC_ERR_ILLEGAL_KEK_PARAM

#define OSSA_MPI_ENC_ERR_ILLEGAL_KEK_PARAM   0x2021

Definition at line 1507 of file sa.h.

◆ OSSA_MPI_ENC_ERR_OPR_ID_NOT_FOUND

#define OSSA_MPI_ENC_ERR_OPR_ID_NOT_FOUND   0x2062

Definition at line 1514 of file sa.h.

◆ OSSA_MPI_ENC_ERR_OPR_MAX_NUM_EXCEEDED

#define OSSA_MPI_ENC_ERR_OPR_MAX_NUM_EXCEEDED   0x2064

Definition at line 1516 of file sa.h.

◆ OSSA_MPI_ENC_ERR_OPR_PARAM_ILLEGAL

#define OSSA_MPI_ENC_ERR_OPR_PARAM_ILLEGAL   0x2061

Definition at line 1513 of file sa.h.

◆ OSSA_MPI_ENC_ERR_OPR_ROLE_NOT_MATCH

#define OSSA_MPI_ENC_ERR_OPR_ROLE_NOT_MATCH   0x2063

Definition at line 1515 of file sa.h.

◆ OSSA_MPI_ENC_NVM_MEM_ACCESS_ERR

#define OSSA_MPI_ENC_NVM_MEM_ACCESS_ERR   0x100B

Definition at line 1520 of file sa.h.

◆ OSSA_MPI_ERR_DEK_MANAGEMENT_DEK_UNWRAP_FAIL

#define OSSA_MPI_ERR_DEK_MANAGEMENT_DEK_UNWRAP_FAIL   0x2002

Definition at line 1506 of file sa.h.

◆ OSSA_MPI_ERR_DEVICE_ACCEPT_PENDING

#define OSSA_MPI_ERR_DEVICE_ACCEPT_PENDING   0x1027

Definition at line 1223 of file sa.h.

◆ OSSA_MPI_ERR_KEK_MANAGEMENT_KEK_UNWRAP_FAIL

#define OSSA_MPI_ERR_KEK_MANAGEMENT_KEK_UNWRAP_FAIL   0x2022

Definition at line 1508 of file sa.h.

◆ OSSA_MPI_ERR_KEK_MANAGEMENT_NVRAM_OPERATION_FAIL

#define OSSA_MPI_ERR_KEK_MANAGEMENT_NVRAM_OPERATION_FAIL   0x2023

Definition at line 1509 of file sa.h.

◆ OSSA_MPI_ERR_PORT_INVALID

#define OSSA_MPI_ERR_PORT_INVALID   0x1041

Definition at line 1271 of file sa.h.

◆ OSSA_MPI_ERR_PORT_IO_RESOURCE_UNAVAILABLE

#define OSSA_MPI_ERR_PORT_IO_RESOURCE_UNAVAILABLE   0x1004

Definition at line 1270 of file sa.h.

◆ OSSA_MPI_ERR_PORT_NOT_IN_CORRECT_STATE

#define OSSA_MPI_ERR_PORT_NOT_IN_CORRECT_STATE   0x1047

Definition at line 1275 of file sa.h.

◆ OSSA_MPI_ERR_PORT_OP_NOT_IN_USE

#define OSSA_MPI_ERR_PORT_OP_NOT_IN_USE   0x1043

Definition at line 1272 of file sa.h.

◆ OSSA_MPI_ERR_PORT_OP_NOT_SUPPORTED

#define OSSA_MPI_ERR_PORT_OP_NOT_SUPPORTED   0x1044

Definition at line 1273 of file sa.h.

◆ OSSA_MPI_ERR_PORT_SMP_WIDTH_EXCEEDED

#define OSSA_MPI_ERR_PORT_SMP_WIDTH_EXCEEDED   0x1045

Definition at line 1274 of file sa.h.

◆ OSSA_NVMD_FLASH_BUSY_ERROR

#define OSSA_NVMD_FLASH_BUSY_ERROR   0x9008

Definition at line 1476 of file sa.h.

◆ OSSA_NVMD_FLASH_CFI_INF_ERROR

#define OSSA_NVMD_FLASH_CFI_INF_ERROR   0x900A

Definition at line 1478 of file sa.h.

◆ OSSA_NVMD_FLASH_DEVICEID_ERROR

#define OSSA_NVMD_FLASH_DEVICEID_ERROR   0x9004

Definition at line 1472 of file sa.h.

◆ OSSA_NVMD_FLASH_ERASE_ERROR

#define OSSA_NVMD_FLASH_ERASE_ERROR   0x9007

Definition at line 1475 of file sa.h.

◆ OSSA_NVMD_FLASH_ERASE_TIMEOUT_ERROR

#define OSSA_NVMD_FLASH_ERASE_TIMEOUT_ERROR   0x9006

Definition at line 1474 of file sa.h.

◆ OSSA_NVMD_FLASH_LENGTH_TOOBIG_ERROR

#define OSSA_NVMD_FLASH_LENGTH_TOOBIG_ERROR   0x9002

Definition at line 1470 of file sa.h.

◆ OSSA_NVMD_FLASH_MAP_DISABLE_ERROR

#define OSSA_NVMD_FLASH_MAP_DISABLE_ERROR   0x900E

Definition at line 1482 of file sa.h.

◆ OSSA_NVMD_FLASH_MAP_TYPE_ERROR

#define OSSA_NVMD_FLASH_MAP_TYPE_ERROR   0x900D

Definition at line 1481 of file sa.h.

◆ OSSA_NVMD_FLASH_MORE_ERASE_BLOCK_ERROR

#define OSSA_NVMD_FLASH_MORE_ERASE_BLOCK_ERROR   0x900B

Definition at line 1479 of file sa.h.

◆ OSSA_NVMD_FLASH_NOT_SUPPORT_DEVICE_ERROR

#define OSSA_NVMD_FLASH_NOT_SUPPORT_DEVICE_ERROR   0x9009

Definition at line 1477 of file sa.h.

◆ OSSA_NVMD_FLASH_PARTITION_NUM_ERROR

#define OSSA_NVMD_FLASH_PARTITION_NUM_ERROR   0x9001

Definition at line 1469 of file sa.h.

◆ OSSA_NVMD_FLASH_PROGRAM_ERROR

#define OSSA_NVMD_FLASH_PROGRAM_ERROR   0x9003

Definition at line 1471 of file sa.h.

◆ OSSA_NVMD_FLASH_READ_ONLY_ERROR

#define OSSA_NVMD_FLASH_READ_ONLY_ERROR   0x900C

Definition at line 1480 of file sa.h.

◆ OSSA_NVMD_FLASH_VENDORID_ERROR

#define OSSA_NVMD_FLASH_VENDORID_ERROR   0x9005

Definition at line 1473 of file sa.h.

◆ OSSA_NVMD_LENGTH_ERROR

#define OSSA_NVMD_LENGTH_ERROR   0x0002

Definition at line 1461 of file sa.h.

◆ OSSA_NVMD_MODE_ERROR

#define OSSA_NVMD_MODE_ERROR   0x0001

Definition at line 1460 of file sa.h.

◆ OSSA_NVMD_SUCCESS

#define OSSA_NVMD_SUCCESS   0x0000

Definition at line 1459 of file sa.h.

◆ OSSA_NVMD_TWI_ADDRESS_SIZE_ERROR

#define OSSA_NVMD_TWI_ADDRESS_SIZE_ERROR   0x0005

Definition at line 1462 of file sa.h.

◆ OSSA_NVMD_TWI_ARB_FAILED_ERROR

#define OSSA_NVMD_TWI_ARB_FAILED_ERROR   0x2082

Definition at line 1467 of file sa.h.

◆ OSSA_NVMD_TWI_BUS_NACK_ERROR

#define OSSA_NVMD_TWI_BUS_NACK_ERROR   0x2081

Definition at line 1466 of file sa.h.

◆ OSSA_NVMD_TWI_BUS_TIMEOUT_ERROR

#define OSSA_NVMD_TWI_BUS_TIMEOUT_ERROR   0x20FF

Definition at line 1468 of file sa.h.

◆ OSSA_NVMD_TWI_LOST_ARB_ERROR

#define OSSA_NVMD_TWI_LOST_ARB_ERROR   0x2002

Definition at line 1464 of file sa.h.

◆ OSSA_NVMD_TWI_NACK_ERROR

#define OSSA_NVMD_TWI_NACK_ERROR   0x2001

Definition at line 1463 of file sa.h.

◆ OSSA_NVMD_TWI_TIMEOUT_ERROR

#define OSSA_NVMD_TWI_TIMEOUT_ERROR   0x2021

Definition at line 1465 of file sa.h.

◆ OSSA_OFFSET_OF

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

Definition at line 39 of file sa.h.

◆ OSSA_OPR_MGMT_OP_NOT_SUPPORTED

#define OSSA_OPR_MGMT_OP_NOT_SUPPORTED   0x2060

Definition at line 1512 of file sa.h.

◆ OSSA_PCIE_DIAG_INTERNAL_FAILURE

#define OSSA_PCIE_DIAG_INTERNAL_FAILURE   0x0002

Definition at line 1957 of file sa.h.

◆ OSSA_PCIE_DIAG_INVALID_BLOCK_SIZE

#define OSSA_PCIE_DIAG_INVALID_BLOCK_SIZE   0x1009

Definition at line 1961 of file sa.h.

◆ OSSA_PCIE_DIAG_INVALID_CMD_DESC

#define OSSA_PCIE_DIAG_INVALID_CMD_DESC   0x1007

Definition at line 1959 of file sa.h.

◆ OSSA_PCIE_DIAG_INVALID_CMD_TYPE

#define OSSA_PCIE_DIAG_INVALID_CMD_TYPE   0x1006

Definition at line 1958 of file sa.h.

◆ OSSA_PCIE_DIAG_INVALID_COMMAND

#define OSSA_PCIE_DIAG_INVALID_COMMAND   0x0001

Definition at line 1956 of file sa.h.

◆ OSSA_PCIE_DIAG_INVALID_PCIE_ADDR

#define OSSA_PCIE_DIAG_INVALID_PCIE_ADDR   0x1008

Definition at line 1960 of file sa.h.

◆ OSSA_PCIE_DIAG_IO_XFR_ERROR_DIF_APPLICATION_TAG_MISMATCH

#define OSSA_PCIE_DIAG_IO_XFR_ERROR_DIF_APPLICATION_TAG_MISMATCH   0x3001

Definition at line 1964 of file sa.h.

◆ OSSA_PCIE_DIAG_IO_XFR_ERROR_DIF_CRC_MISMATCH

#define OSSA_PCIE_DIAG_IO_XFR_ERROR_DIF_CRC_MISMATCH   0x3003

Definition at line 1966 of file sa.h.

◆ OSSA_PCIE_DIAG_IO_XFR_ERROR_DIF_MISMATCH

#define OSSA_PCIE_DIAG_IO_XFR_ERROR_DIF_MISMATCH   0x3000

Definition at line 1963 of file sa.h.

◆ OSSA_PCIE_DIAG_IO_XFR_ERROR_DIF_REFERENCE_TAG_MISMATCH

#define OSSA_PCIE_DIAG_IO_XFR_ERROR_DIF_REFERENCE_TAG_MISMATCH   0x3002

Definition at line 1965 of file sa.h.

◆ OSSA_PCIE_DIAG_LENGTH_NOT_BLOCK_SIZE_ALIGNED

#define OSSA_PCIE_DIAG_LENGTH_NOT_BLOCK_SIZE_ALIGNED   0x100A

Definition at line 1962 of file sa.h.

◆ OSSA_PCIE_DIAG_MPI_ERR_CONTROLLER_NOT_IDLE

#define OSSA_PCIE_DIAG_MPI_ERR_CONTROLLER_NOT_IDLE   0x1005

Definition at line 1969 of file sa.h.

◆ OSSA_PCIE_DIAG_MPI_ERR_INVALID_LENGTH

#define OSSA_PCIE_DIAG_MPI_ERR_INVALID_LENGTH   0x0042

Definition at line 1967 of file sa.h.

◆ OSSA_PCIE_DIAG_MPI_ERR_IO_RESOURCE_UNAVAILABLE

#define OSSA_PCIE_DIAG_MPI_ERR_IO_RESOURCE_UNAVAILABLE   0x1004

Definition at line 1968 of file sa.h.

◆ OSSA_PCIE_DIAG_SUCCESS

#define OSSA_PCIE_DIAG_SUCCESS   0x0000

Definition at line 1955 of file sa.h.

◆ OSSA_PHY_CONTROL_FAILURE

#define OSSA_PHY_CONTROL_FAILURE   0x03

flag indicates phy Control operation failure

Definition at line 1209 of file sa.h.

◆ OSSA_PORT_3RDPARTY_RESET

#define OSSA_PORT_3RDPARTY_RESET   0x07

flag indicates port in 3rd party reset state

Definition at line 1328 of file sa.h.

◆ OSSA_PORT_CONTROL_FAILURE

#define OSSA_PORT_CONTROL_FAILURE   0x03

Definition at line 1268 of file sa.h.

◆ OSSA_PORT_IN_RESET

#define OSSA_PORT_IN_RESET   0x04

flag indicates port in reset state

Definition at line 1327 of file sa.h.

◆ OSSA_PORT_INVALID

#define OSSA_PORT_INVALID   0x08

flag indicates port invalid

Definition at line 1329 of file sa.h.

◆ OSSA_PORT_LOSTCOMM

#define OSSA_PORT_LOSTCOMM   0x02

flag indicates port lost communication

Definition at line 1326 of file sa.h.

◆ OSSA_PORT_NOT_ESTABLISHED

#define OSSA_PORT_NOT_ESTABLISHED   0x00

flag indicates port is not established

Definition at line 1324 of file sa.h.

◆ OSSA_PORT_VALID

#define OSSA_PORT_VALID   0x01

flag indicates port valid

Definition at line 1325 of file sa.h.

◆ OSSA_RC_ACCEPT

#define OSSA_RC_ACCEPT   0x00

flag indicates the result of the callback function

Definition at line 1241 of file sa.h.

◆ OSSA_RC_REJECT

#define OSSA_RC_REJECT   0x01

flag indicates the result of the callback function

Definition at line 1242 of file sa.h.

◆ OSSA_REGISTER_ACCESS_TIMEOUT

#define OSSA_REGISTER_ACCESS_TIMEOUT   0x02 /* Register access has been timed-out. This is applicable only to the SPCv controller. */

Definition at line 1253 of file sa.h.

◆ OSSA_RESET_PENDING

#define OSSA_RESET_PENDING   0x03

flag indicates reset pending callback status

Definition at line 1204 of file sa.h.

◆ OSSA_SGPIO_CMD_ERROR_WRONG_ALL_HEADER_PARAMS

#define OSSA_SGPIO_CMD_ERROR_WRONG_ALL_HEADER_PARAMS   0x9D

Definition at line 1615 of file sa.h.

◆ OSSA_SGPIO_CMD_ERROR_WRONG_FRAME_REG_TYPE

#define OSSA_SGPIO_CMD_ERROR_WRONG_FRAME_REG_TYPE   0x05

Definition at line 1607 of file sa.h.

◆ OSSA_SGPIO_CMD_ERROR_WRONG_FRAME_REG_TYPE_REG_INDEX

#define OSSA_SGPIO_CMD_ERROR_WRONG_FRAME_REG_TYPE_REG_INDEX   0x1D

Definition at line 1614 of file sa.h.

◆ OSSA_SGPIO_CMD_ERROR_WRONG_FRAME_TYPE

#define OSSA_SGPIO_CMD_ERROR_WRONG_FRAME_TYPE   0x01

Definition at line 1603 of file sa.h.

◆ OSSA_SGPIO_CMD_ERROR_WRONG_FRAME_TYPE_REG_CNT

#define OSSA_SGPIO_CMD_ERROR_WRONG_FRAME_TYPE_REG_CNT   0x81

Definition at line 1610 of file sa.h.

◆ OSSA_SGPIO_CMD_ERROR_WRONG_FRAME_TYPE_REG_INDEX

#define OSSA_SGPIO_CMD_ERROR_WRONG_FRAME_TYPE_REG_INDEX   0x19

Definition at line 1609 of file sa.h.

◆ OSSA_SGPIO_CMD_ERROR_WRONG_FUNCTION

#define OSSA_SGPIO_CMD_ERROR_WRONG_FUNCTION   0x06

Definition at line 1608 of file sa.h.

◆ OSSA_SGPIO_CMD_ERROR_WRONG_REG_COUNT

#define OSSA_SGPIO_CMD_ERROR_WRONG_REG_COUNT   0x04

Definition at line 1606 of file sa.h.

◆ OSSA_SGPIO_CMD_ERROR_WRONG_REG_INDEX

#define OSSA_SGPIO_CMD_ERROR_WRONG_REG_INDEX   0x03

Definition at line 1605 of file sa.h.

◆ OSSA_SGPIO_CMD_ERROR_WRONG_REG_INDEX_REG_COUNT

#define OSSA_SGPIO_CMD_ERROR_WRONG_REG_INDEX_REG_COUNT   0x83

Definition at line 1613 of file sa.h.

◆ OSSA_SGPIO_CMD_ERROR_WRONG_REG_TYPE

#define OSSA_SGPIO_CMD_ERROR_WRONG_REG_TYPE   0x02

Definition at line 1604 of file sa.h.

◆ OSSA_SGPIO_CMD_ERROR_WRONG_REG_TYPE_REG_COUNT

#define OSSA_SGPIO_CMD_ERROR_WRONG_REG_TYPE_REG_COUNT   0x82

Definition at line 1612 of file sa.h.

◆ OSSA_SGPIO_CMD_ERROR_WRONG_REG_TYPE_REG_INDEX

#define OSSA_SGPIO_CMD_ERROR_WRONG_REG_TYPE_REG_INDEX   0x1A

Definition at line 1611 of file sa.h.

◆ OSSA_SGPIO_COMMAND_SUCCESS

#define OSSA_SGPIO_COMMAND_SUCCESS   0x00

Definition at line 1602 of file sa.h.

◆ OSSA_SGPIO_MAX_READ_DATA_COUNT

#define OSSA_SGPIO_MAX_READ_DATA_COUNT   0x0D

Definition at line 1617 of file sa.h.

◆ OSSA_SGPIO_MAX_WRITE_DATA_COUNT

#define OSSA_SGPIO_MAX_WRITE_DATA_COUNT   0x0C

Definition at line 1618 of file sa.h.

◆ OSSA_SUCCESS

#define OSSA_SUCCESS   0x00

flag indicates successful callback status

Definition at line 1200 of file sa.h.

◆ PCIBAR0

#define PCIBAR0   0

PCI Base Address 0

Definition at line 3606 of file sa.h.

◆ PCIBAR1

#define PCIBAR1   1

PCI Base Address 1

Definition at line 3607 of file sa.h.

◆ PCIBAR2

#define PCIBAR2   2

PCI Base Address 2

Definition at line 3608 of file sa.h.

◆ PCIBAR3

#define PCIBAR3   3

PCI Base Address 3

Definition at line 3609 of file sa.h.

◆ PCIBAR4

#define PCIBAR4   4

PCI Base Address 4

Definition at line 3610 of file sa.h.

◆ PCIBAR5

#define PCIBAR5   5

PCI Base Address 5

Definition at line 3611 of file sa.h.

◆ RESP_OPTION_BITS

#define RESP_OPTION_BITS   0x3 /** bit0-1 */

Definition at line 3044 of file sa.h.

◆ RESP_OPTION_ODS

#define RESP_OPTION_ODS   0x8000 /** bit15 */

Definition at line 3045 of file sa.h.

◆ RETRY_DEVICE_FLAG

#define RETRY_DEVICE_FLAG   (1 << SHIFT0)

Definition at line 2618 of file sa.h.

◆ ReturnToFactoryMode_ARF

#define ReturnToFactoryMode_ARF   2

Definition at line 3216 of file sa.h.

◆ SA_ARBTE

#define SA_ARBTE   0 /* Disable if zero default setting */

Definition at line 3809 of file sa.h.

◆ SA_CONFIG_MDFD_REGISTRY

#define SA_CONFIG_MDFD_REGISTRY

Definition at line 37 of file sa.h.

◆ SA_DEVINFO_GET_DEVICETTYPE

#define SA_DEVINFO_GET_DEVICETTYPE (   devInfo)     (((devInfo)->devType_S_Rate & 0xC0) >> 5)

Definition at line 2633 of file sa.h.

◆ SA_DEVINFO_GET_SAS_ADDRESSHI

#define SA_DEVINFO_GET_SAS_ADDRESSHI (   devInfo)     DMA_BEBIT32_TO_BIT32(*(bit32 *)(devInfo)->sasAddressHi)

Definition at line 2630 of file sa.h.

◆ SA_DEVINFO_GET_SAS_ADDRESSLO

#define SA_DEVINFO_GET_SAS_ADDRESSLO (   devInfo)     DMA_BEBIT32_TO_BIT32(*(bit32 *)(devInfo)->sasAddressLo)

Definition at line 2627 of file sa.h.

◆ SA_DEVINFO_PUT_SAS_ADDRESSHI

#define SA_DEVINFO_PUT_SAS_ADDRESSHI (   devInfo,
  src32 
)     *(bit32 *)((devInfo)->sasAddressHi) = BIT32_TO_DMA_BEBIT32(src32)

Definition at line 2639 of file sa.h.

◆ SA_DEVINFO_PUT_SAS_ADDRESSLO

#define SA_DEVINFO_PUT_SAS_ADDRESSLO (   devInfo,
  src32 
)     *(bit32 *)((devInfo)->sasAddressLo) = BIT32_TO_DMA_BEBIT32(src32)

Definition at line 2636 of file sa.h.

◆ SA_DS_IN_ERROR

#define SA_DS_IN_ERROR   0x4

Definition at line 1182 of file sa.h.

◆ SA_DS_IN_RECOVERY

#define SA_DS_IN_RECOVERY   0x3

Definition at line 1181 of file sa.h.

◆ SA_DS_NON_OPERATIONAL

#define SA_DS_NON_OPERATIONAL   0x7

Definition at line 1183 of file sa.h.

◆ SA_DS_OPERATIONAL

#define SA_DS_OPERATIONAL   0x1

Definition at line 1179 of file sa.h.

◆ SA_DS_PORT_IN_RESET

#define SA_DS_PORT_IN_RESET   0x2

Definition at line 1180 of file sa.h.

◆ SA_MDFD_MULTI_DATA_FETCH

#define SA_MDFD_MULTI_DATA_FETCH   0 /* Enable if zero default setting */

Definition at line 3803 of file sa.h.

◆ SA_OPR_MGMNT_FLAG_MASK

#define SA_OPR_MGMNT_FLAG_MASK   0x00003000

Definition at line 3297 of file sa.h.

◆ SA_OPR_MGMNT_FLAG_SHIFT

#define SA_OPR_MGMNT_FLAG_SHIFT   12

Definition at line 3298 of file sa.h.

◆ SA_OUTBOUND_COALESCE

#define SA_OUTBOUND_COALESCE   1 /* Enable if one default setting */

Definition at line 3815 of file sa.h.

◆ SA_PTNFE_POISION_TLP

#define SA_PTNFE_POISION_TLP   0 /* Disable if zero default setting */

Definition at line 3797 of file sa.h.

◆ SA_RESERVED_REQUEST_COUNT

#define SA_RESERVED_REQUEST_COUNT   16

Definition at line 3597 of file sa.h.

◆ SA_ROLE_CAPABILITIES_CSP

#define SA_ROLE_CAPABILITIES_CSP   0x001

Definition at line 3938 of file sa.h.

◆ SA_ROLE_CAPABILITIES_DEK

#define SA_ROLE_CAPABILITIES_DEK   0x040

Definition at line 3944 of file sa.h.

◆ SA_ROLE_CAPABILITIES_FWU

#define SA_ROLE_CAPABILITIES_FWU   0x100

Definition at line 3946 of file sa.h.

◆ SA_ROLE_CAPABILITIES_IOS

#define SA_ROLE_CAPABILITIES_IOS   0x080

Definition at line 3945 of file sa.h.

◆ SA_ROLE_CAPABILITIES_KEK

#define SA_ROLE_CAPABILITIES_KEK   0x020

Definition at line 3943 of file sa.h.

◆ SA_ROLE_CAPABILITIES_OPR

#define SA_ROLE_CAPABILITIES_OPR   0x002

Definition at line 3939 of file sa.h.

◆ SA_ROLE_CAPABILITIES_PRM

#define SA_ROLE_CAPABILITIES_PRM   0x200

Definition at line 3947 of file sa.h.

◆ SA_ROLE_CAPABILITIES_SCO

#define SA_ROLE_CAPABILITIES_SCO   0x004

Definition at line 3940 of file sa.h.

◆ SA_ROLE_CAPABILITIES_STS

#define SA_ROLE_CAPABILITIES_STS   0x008

Definition at line 3941 of file sa.h.

◆ SA_ROLE_CAPABILITIES_TST

#define SA_ROLE_CAPABILITIES_TST   0x010

Definition at line 3942 of file sa.h.

◆ SA_SASDEV_IS_SATA_DEVICE

#define SA_SASDEV_IS_SATA_DEVICE (   sasDev)     (((sasDev)->target_ssp_stp_smp & SA_SASDEV_SATA_BIT) == SA_SASDEV_SATA_BIT)

Definition at line 2726 of file sa.h.

◆ SA_SASDEV_IS_SMP_INITIATOR

#define SA_SASDEV_IS_SMP_INITIATOR (   sasDev)     (((sasDev)->initiator_ssp_stp_smp & SA_SASDEV_SMP_BIT) == SA_SASDEV_SMP_BIT)

Definition at line 2714 of file sa.h.

◆ SA_SASDEV_IS_SMP_TARGET

#define SA_SASDEV_IS_SMP_TARGET (   sasDev)     (((sasDev)->target_ssp_stp_smp & SA_SASDEV_SMP_BIT) == SA_SASDEV_SMP_BIT)

Definition at line 2723 of file sa.h.

◆ SA_SASDEV_IS_SSP_INITIATOR

#define SA_SASDEV_IS_SSP_INITIATOR (   sasDev)     (((sasDev)->initiator_ssp_stp_smp & SA_SASDEV_SSP_BIT) == SA_SASDEV_SSP_BIT)

Definition at line 2708 of file sa.h.

◆ SA_SASDEV_IS_SSP_TARGET

#define SA_SASDEV_IS_SSP_TARGET (   sasDev)     (((sasDev)->target_ssp_stp_smp & SA_SASDEV_SSP_BIT) == SA_SASDEV_SSP_BIT)

Definition at line 2717 of file sa.h.

◆ SA_SASDEV_IS_STP_INITIATOR

#define SA_SASDEV_IS_STP_INITIATOR (   sasDev)     (((sasDev)->initiator_ssp_stp_smp & SA_SASDEV_STP_BIT) == SA_SASDEV_STP_BIT)

Definition at line 2711 of file sa.h.

◆ SA_SASDEV_IS_STP_TARGET

#define SA_SASDEV_IS_STP_TARGET (   sasDev)     (((sasDev)->target_ssp_stp_smp & SA_SASDEV_STP_BIT) == SA_SASDEV_STP_BIT)

Definition at line 2720 of file sa.h.

◆ SA_SASDEV_SATA_BIT

#define SA_SASDEV_SATA_BIT   SA_IDFRM_SATA_BIT /* SATA device, valid in the discovery response only */

Definition at line 2706 of file sa.h.

◆ SA_SASDEV_SMP_BIT

#define SA_SASDEV_SMP_BIT   SA_IDFRM_SMP_BIT /* SMP Initiator port */

Definition at line 2705 of file sa.h.

◆ SA_SASDEV_SSP_BIT

#define SA_SASDEV_SSP_BIT   SA_IDFRM_SSP_BIT /* SSP Initiator port */

Definition at line 2703 of file sa.h.

◆ SA_SASDEV_STP_BIT

#define SA_SASDEV_STP_BIT   SA_IDFRM_STP_BIT /* STP Initiator port */

Definition at line 2704 of file sa.h.

◆ SIXTYFOURKBYTE

#define SIXTYFOURKBYTE   (1024 * 64)

Definition at line 1892 of file sa.h.

◆ SIZE_DW

#define SIZE_DW   4

Size in bytes

Definition at line 3603 of file sa.h.

◆ SIZE_QW

#define SIZE_QW   8

Size in bytes

Definition at line 3604 of file sa.h.

◆ smpFrameFlagDirectPayload

#define smpFrameFlagDirectPayload   0

Definition at line 3096 of file sa.h.

◆ smpFrameFlagDirectResponse

#define smpFrameFlagDirectResponse   0

Definition at line 3094 of file sa.h.

◆ smpFrameFlagIndirectPayload

#define smpFrameFlagIndirectPayload   2

Definition at line 3097 of file sa.h.

◆ smpFrameFlagIndirectResponse

#define smpFrameFlagIndirectResponse   1

Definition at line 3095 of file sa.h.

◆ SSP_DEVICE_FLAG

#define SSP_DEVICE_FLAG   (1 << SHIFT20)

Definition at line 2620 of file sa.h.

◆ SSP_OPTION_AUTO_GOOD_RESPONSE

#define SSP_OPTION_AUTO_GOOD_RESPONSE   (1 << SHIFT5)

Definition at line 3011 of file sa.h.

◆ SSP_OPTION_BITS

#define SSP_OPTION_BITS   0x3F

bit5-AGR, bit4-RDF bit3,2-RTE, bit1,0-AN

Definition at line 2997 of file sa.h.

◆ SSP_OPTION_DATA_NO_RETRY

#define SSP_OPTION_DATA_NO_RETRY   0

Definition at line 3005 of file sa.h.

◆ SSP_OPTION_DATA_RETRY_ON_ACK_NAK_TIMEOUT

#define SSP_OPTION_DATA_RETRY_ON_ACK_NAK_TIMEOUT   1

Definition at line 3006 of file sa.h.

◆ SSP_OPTION_DATA_RETRY_ON_BOTH_ACK_NAK_TIMEOUT_AND_NAK_RECEIVED

#define SSP_OPTION_DATA_RETRY_ON_BOTH_ACK_NAK_TIMEOUT_AND_NAK_RECEIVED   3

Definition at line 3008 of file sa.h.

◆ SSP_OPTION_DATA_RETRY_ON_NAK_RECEIVED

#define SSP_OPTION_DATA_RETRY_ON_NAK_RECEIVED   2

Definition at line 3007 of file sa.h.

◆ SSP_OPTION_DIF

#define SSP_OPTION_DIF   (1 << SHIFT7)

Definition at line 3013 of file sa.h.

◆ SSP_OPTION_ENCRYPT

#define SSP_OPTION_ENCRYPT   (1 << SHIFT6)

Definition at line 3012 of file sa.h.

◆ SSP_OPTION_ODS

#define SSP_OPTION_ODS   0x8000

bit15-ODS

Definition at line 2998 of file sa.h.

◆ SSP_OPTION_OTHR_NO_RETRY

#define SSP_OPTION_OTHR_NO_RETRY   0

Definition at line 3000 of file sa.h.

◆ SSP_OPTION_OTHR_RETRY_ON_ACK_NAK_TIMEOUT

#define SSP_OPTION_OTHR_RETRY_ON_ACK_NAK_TIMEOUT   1

Definition at line 3001 of file sa.h.

◆ SSP_OPTION_OTHR_RETRY_ON_BOTH_ACK_NAK_TIMEOUT_AND_NAK_RECEIVED

#define SSP_OPTION_OTHR_RETRY_ON_BOTH_ACK_NAK_TIMEOUT_AND_NAK_RECEIVED   3

Definition at line 3003 of file sa.h.

◆ SSP_OPTION_OTHR_RETRY_ON_NAK_RECEIVED

#define SSP_OPTION_OTHR_RETRY_ON_NAK_RECEIVED   2

Definition at line 3002 of file sa.h.

◆ SSP_OPTION_OVERRIDE_DEVICE_STATE

#define SSP_OPTION_OVERRIDE_DEVICE_STATE   (1 << SHIFT15)

Definition at line 3014 of file sa.h.

◆ SSP_OPTION_RETRY_DATA_FRAME_ENABLED

#define SSP_OPTION_RETRY_DATA_FRAME_ENABLED   (1 << SHIFT4)

Definition at line 3010 of file sa.h.

◆ STSDK_LL_12G_INTERFACE_VERSION

#define STSDK_LL_12G_INTERFACE_VERSION   0x302

Definition at line 766 of file sa.h.

◆ STSDK_LL_12G_VERSION

#define STSDK_LL_12G_VERSION   FW_THIS_VERSION_SPC12G

current sTSDK version

Definition at line 767 of file sa.h.

◆ STSDK_LL_INTERFACE_VERSION

#define STSDK_LL_INTERFACE_VERSION   0x20A

Definition at line 759 of file sa.h.

◆ STSDK_LL_INTERFACE_VERSION_IGNORE_MASK

#define STSDK_LL_INTERFACE_VERSION_IGNORE_MASK   0xF00

Definition at line 776 of file sa.h.

◆ STSDK_LL_OLD_INTERFACE_VERSION

#define STSDK_LL_OLD_INTERFACE_VERSION   0x1 /* SPC and SPCv before 02030401 */

Definition at line 760 of file sa.h.

◆ STSDK_LL_SPC_VERSION

#define STSDK_LL_SPC_VERSION   0x01100000

current SPC FW version supported

Definition at line 772 of file sa.h.

◆ STSDK_LL_VERSION

#define STSDK_LL_VERSION   FW_THIS_VERSION_SPC6G

current sTSDK version

Definition at line 761 of file sa.h.

◆ TYPE_FATAL

#define TYPE_FATAL   3

Definition at line 1883 of file sa.h.

◆ TYPE_GSM_SPACE

#define TYPE_GSM_SPACE   1

Definition at line 1881 of file sa.h.

◆ TYPE_INBOUND

#define TYPE_INBOUND   1

Definition at line 1896 of file sa.h.

◆ TYPE_INBOUND_QUEUE

#define TYPE_INBOUND_QUEUE   5

Definition at line 1885 of file sa.h.

◆ TYPE_NON_FATAL

#define TYPE_NON_FATAL   4

Definition at line 1884 of file sa.h.

◆ TYPE_OUTBOUND

#define TYPE_OUTBOUND   2

Definition at line 1897 of file sa.h.

◆ TYPE_OUTBOUND_QUEUE

#define TYPE_OUTBOUND_QUEUE   6

Definition at line 1886 of file sa.h.

◆ TYPE_QUEUE

#define TYPE_QUEUE   2

Definition at line 1882 of file sa.h.

◆ WARNING

#define WARNING   0x2

Definition at line 2494 of file sa.h.

◆ XFER_RDY_PRIORTY_DEVICE_FLAG

#define XFER_RDY_PRIORTY_DEVICE_FLAG   (1 << SHIFT22)

Definition at line 2622 of file sa.h.

Typedef Documentation

◆ agsaBarOffset_t

describe an element of SPC-SPCV converter

This structure is used

◆ agsabit32bit64

◆ agsaContext_t

typedef struct agsaContext_s agsaContext_t

data structure stores OS specific and LL specific context

The agsaContext_t data structure contains two generic pointers, also known as handles, which are used to store OS Layer-specific and LL Layer-specific contexts. Only the handle specific to a layer can be modified by the layer. The other layer's handle must be returned unmodified when communicating between the layers.

A layer's handle is typically typecast to an instance of a layer-specific data structure. The layer can use its handle to point to any data type that is to be associated with a function call. A handle provides a way to uniquely identify responses when multiple calls to the same function are necessary.

◆ agsaControllerEventLog_t

specify the controller Event Log for the SAS/SATA LL Layer

data structure used in the saGetControllerEventLogInfo() function calls

◆ agsaControllerInfo_t

describe a information for a Controller in the SAS/SATA hardware

Describe a general information for a controller in the SAS/SATA hardware

◆ agsaControllerStatus_t

describe a status for a Controller in the SAS/SATA hardware

Describe a general status for a controller in the SAS/SATA hardware

◆ agsaDevHandle_t

holds the pointers to the device data structure used by the LL and OS Layers

The agsaDevHandle_t data structure is the device instance handle. It holds pointer-sized values used internally by each of the LL and OS Layers. It is intended that the agsaDevHandle_t data structure be used to identify a specific device instance. A device instance is uniquely identified by its device handle.

Definition at line 1683 of file sa.h.

◆ agsaDeviceInfo_t

data structure provides some information about a SATA device

data structure provides some information about a SATA device discovered following the SATA discovery.

◆ agsaDif_t

typedef struct agsaDif_s agsaDif_t

◆ agsaDifDetails_t

◆ agsaDifEncPayload_t

◆ agsaEncrypt_t

typedef struct agsaEncrypt_s agsaEncrypt_t

◆ agsaEncryptControlParamPage_t

◆ agsaEncryptDek_t

◆ agsaEncryptDekBlob_t

◆ agsaEncryptDekConfigPage_t

◆ agsaEncryptGeneralPage_t

◆ agsaEncryptHMACConfigPage_t

◆ agsaEncryptHMACTestDescriptor_t

◆ agsaEncryptHMACTestResult_t

◆ agsaEncryptInfo_t

◆ agsaEncryptKekBlob_t

◆ agsaEncryptSelfTestBitMap_t

◆ agsaEncryptSelfTestStatusBitMap_t

◆ agsaEncryptSHATestDescriptor_t

◆ agsaEncryptSHATestResult_t

◆ agsaEsgl_t

typedef struct agsaEsgl_s agsaEsgl_t

data structure is used to pass information about the extended scatter-gather list (ESGL) to the LL Layer

The agsaEsgl_t data structure is used to pass information about the extended scatter-gather list (ESGL) to the LL Layer.

When ESGL is used, its starting address is specified the first descriptor entry (i.e. descriptor[0]) in agsaSgl_t structure.

The ESGL pages are uncached, have a fixed number of SGL of 10, and are 16-byte aligned. Refer the hardware documentation for more detail on ESGL.

◆ agsaEventSource_t

describe a information for a Event in the SAS/SATA hardware

Describe a general information for a Event in the SAS/SATA hardware

◆ agsaFatalErrorInfo_t

describe a fatal error information for a Controller in the SAS/SATA hardware

Describe a fatal error information for a controller in the SAS/SATA hardware

◆ agsaFlashExtExecute_t

data structure for extended firmware flash update saFwFlashExtUpdate().

The agsaFlashExtExecute_s data structure specifies a request to saFwFlashExtUpdate()

◆ agsaFlashExtResponse_t

data structure for firmware flash update saFwFlashUpdate().

The agsaFlashExtResponse_t data structure specifies a request to ossaFlashExtExecuteCB().()

◆ agsaFrameHandle_t

typedef void* agsaFrameHandle_t

handle to access frame

This data structure is the handle to access frame

Definition at line 1719 of file sa.h.

◆ agsaFwImg_t

typedef struct agsaFwImg_s agsaFwImg_t

◆ agsaGpioEventSetupInfo_t

describe a GPIO Event Setup Infomation in the SAS/SATA hardware

Describe a configuration for a GPIO Event Setup Infomation in the SAS/SATA hardware

◆ agsaGpioPinSetupInfo_t

describe a GPIO Pin Setup Infomation in the SAS/SATA hardware

Describe a configuration for a GPIO Pin Setup Infomation in the SAS/SATA hardware

◆ agsaGpioReadInfo_t

describe a GPIO Read Infomation in the SAS/SATA hardware

Describe a configuration for a GPIO read Infomation in the SAS/SATA hardware

◆ agsaGpioWriteSetupInfo_t

describe a serial GPIO operation in the SAS/SATA hardware

Describe a configuration for a GPIO write Setup Infomation in the SAS/SATA hardware

◆ agsaHwConfig_t

structure describe hardware configuration

Structure is used as a parameter passed in saInitialize() to describe the configuration used during hardware initialization

◆ agsaHWEventEncrypt_t

◆ agsaHWEventMode_t

◆ agsaID_t

typedef struct agsaID_s agsaID_t

◆ agsaInterruptConfigPage_t

◆ agsaIOErrorEventStats_t

◆ agsaIoGeneralPage_t

◆ agsaIORequest_t

data structure pointer to IO request structure

It is intended that the agsaIORequest_t structure be used to uniquely identify each I/O Request for either target or initiator. The OS Layer is responsible for allocating and managing agsaIORequest_t structures. The LL Layer uses each structure only between calls to: saSSPStart() and ossaSSPCompleted(), saSATAStart() and ossaSATACompleted(), saSMPStart() and ossaSMPCompleted()

Definition at line 1713 of file sa.h.

◆ agsaMem_t

typedef struct agsaMem_s agsaMem_t

generic memory descriptor

a generic memory descriptor used for describing a memory requirement in a structure

◆ agsaMemoryRequirement_t

specify the memory allocation requirement for the SAS/SATA LL Layer

data structure used in the saGetRequirements() and the saInitialize() function calls

◆ agsaMPIContext_t

data structure for set fields in MPI table. The agsaMPIContext_t data structure is used to set fields in MPI table. For details of MPI table, refer to PM8001 Tachyon SPC 8x6G Programmers' Manual PMC-2080222 or PM8008/PM8009/PM8018 Tachyon SPCv/SPCve/SPCv+ Programmers Manual PMC-2091148/PMC-2102373. sTSDK section 4.39

◆ agsaNVMDData_t

describe a NVMData for a Controller in the SAS/SATA hardware

Describe a NVMData for a controller in the SAS/SATA hardware

◆ agsaOffloadDifDetails_t

◆ agsaPCIeDiagExecute_t

◆ agsaPCIeDiagResponse_t

agsaPCIeDiagResponse_t

status of ossaPCIeDiagExecuteCB() The agsaPCIeDiagResponse_t structure is a parameter passed to ossaPCIeDiagExecuteCB() to contain a PCIe Diagnostic command response.

◆ agsaPhyAnalogSettingsPage_t

describe a Phy Analog Setting

Describe a Phy Analog Setup registers for a controller in the SAS/SATA hardware

◆ agsaPhyAnalogSetupRegisters_t

describe a Phy Analog Setup registers for a Controller in the SAS/SATA hardware

Describe a Phy Analog Setup registers for a controller in the SAS/SATA hardware

◆ agsaPhyAnalogSetupTable_t

◆ agsaPhyBWCountersPage_t

structure describes bandwidth counters of a PHY in the SAS/SATA

Structure is used as a parameter passed in saGetPhyProfile() to describe the error counter

◆ agsaPhyCalibrationTbl_t

◆ agsaPhyConfig_t

describe a configuration for a PHY in the SAS/SATA hardware

Describe a configuration for a PHY in the SAS/SATA hardware

◆ agsaPhyErrCounters_t

structure describe error counters of a PHY in the SAS/SATA

Structure is used as a parameter passed in saLocalPhyControlCB() to describe the error counter

◆ agsaPhyErrCountersPage_t

used in saGetPhyProfile

◆ agsaPhyRateControlPage_t

describe a Phy Rate Control 4.56 agsaPhyRateControlPage_t Description This profile page is used to read or set several rate control parameters. The page code for this profile page is 0x07. This page can be READ by issuing saGetPhyProfile(). It can be read anytime and there is no need to quiesce the I/O to the controller. Related parameters can be modified by issuing saSetPhyProfile() before calling saPhyStart() to the PHY. Note: This page is applicable only to the SPCv controller. Usage Initiator and target.

◆ agsaPhySNW3Page_t

Structure is used as a parameter passed in saLocalPhyControlCB() to describe the error counter.

Description This profile page is used to read or set the SNW-3 PHY capabilities of a SAS PHY. This page can be read by calling saGetPhyProfile(). It can be read anytime and there is no need to quiesce he I/O to the controller. The format of the 32-bit SNW3 is the same as defined in the SAS 2 specification. Local SNW3 can be modified by calling saSetPhyProfile() before saPhyStart() to the PHY. REQUESTED LOGICAL LINK RATE is reserved. The SPCv will calculate the PARITY field.

Note: This page is applicable only to the SPCv controller. Usage Initiator and target.

◆ agsaPortContext_t

holds the pointers to the port data structure used by the LL and OS Layers

The agsaPortContext_t data structure is used to describe an instance of SAS port or SATA port. It holds pointer-sized values used internally by each of the LL and OS Layers.

When connected to other SAS end-devices or expanders, each instance of agsaPortContext_t represents a SAS local narrow-port or wide-port.

When connected to SATA device, each instance of agsaPortContext_t represents a local SATA port.

Definition at line 1700 of file sa.h.

◆ agsaQueueConfig_t

◆ agsaQueueInbound_t

◆ agsaQueueOutbound_t

◆ agsaRegDumpInfo_t

describe a Register Dump information for a Controller in the SAS/SATA hardware

Dword0 Bits 0-11: ALIGN_RATE(ALNR). Align Insertion rate is 2 in every ALIGN_RATE+1 DWord. The default value results in the standard compliant value of 2/256. This rate applies to out of connection, SMP and SSP connections. The default value is 0x0ff. Other bits are reserved. Dword1 Bits 0 -11: STP_ALIGN_RATE(STPALNR) Align Insertion rate is 2 in every ALIGN_RATE+1 DWords. Default value results in standard compliant value of 2/256. This rate applies to out of STP connections. The default value is 0x0ff. Other bits are reserved. Dword2 Bits 0-7: SSP_FRAME_RATE(SSPFRMR) The number of idle DWords between each SSP frame. 0 means no idle cycles. The default value is 0x0. Other bits are reserved.

Describe a register dump information for a controller in the SAS/SATA hardware

◆ agsaRoot_t

hold points to global data structures used by the LL and OS Layers

The agsaRoot_t data structure is used to hold pointer-sized values for internal use by the LL and OS Layers. It is intended that the sdkData element of the agsaRoot_t data structure be used to identify an instance of the hardware context. The sdkData element is set by the LL Layer in the saHwInitialize() function and returned to the OS Layer in the agsaRoot_t data structure

Definition at line 1673 of file sa.h.

◆ agsaSASAddressID_t

describe a SAS address and PHY Identifier

This structure is used

◆ agsaSASDeviceInfo_t

data structure provides some information about a SAS device

data structure provides some information about a SAS device discovered following the SAS discovery

◆ agsaSASDiagExecute_t

specify the SAS Diagnostic Parameters for the SAS/SATA LL Layer

data structure used in the saGetRequirements() and the saInitialize() function calls

◆ agsaSASPhyGeneralStatusPage_t

for the SAS/SATA LL Layer

This data structure contains the general status of a SAS Phy. Section 4.60

◆ agsaSASPhyMiscPage_t

◆ agsaSASPhyOpenRejectRetryBackOffThresholdPage_t

describe a Open reject retry backoff threshold page

Describe a Open reject retry backoff threshold registers in the SAS/SATA hardware

◆ agsaSASProtocolTimerConfigurationPage_t

data structure for SAS protocol timer configuration page.

◆ agsaSASReconfig_t

describe a SAS ReCofiguration structure in the SAS/SATA hardware

Describe a SAS ReConfiguration in the SAS/SATA hardware

◆ agsaSASRequestBody_t

union data structure specifies a request

union data structure specifies a request

◆ agsaSATADeviceInfo_t

data structure provides some information about a SATA device

data structure provides some information about a SATA device discovered following the SATA discovery.

◆ agsaSATAInitiatorRequest_t

data structure describes an STP or direct connect SATA command

The agsaSATAInitiatorRequest_t data structure describes an STP or direct connect SATA command request to be sent to the device and passed as a parameter to saSATAStart() function.

This structure is an encapsulation of SATA FIS (Frame Information Structures), which enables the execution of ATA command descriptor using SATA transport

◆ agsaSgl_t

typedef struct agsaSgl_s agsaSgl_t

data structure used to pass information about the scatter-gather list to the LL Layer

The ESGL pages are uncached, have a configurable number of SGL of (min, max) = (1, 10), and are 16-byte aligned. Although the application can configure the page size, the size must be incremented in TBD-byte increments. Refer the hardware documentation for more detail on the format of ESGL structure.

◆ agsaSGpioCfg0_t

describe a serial GPIO operation response in the SAS/SATA hardware

Describe the fields required for serial GPIO operations response in the SAS/SATA hardware

◆ agsaSGpioCfg1_t

SGPIO configuration register 1.

These fields constitute SGPIO configuration register 1, as defined by SFF-8485 spec

◆ agsaSGpioReqResponse_t

describe a serial GPIO request and response in the SAS/SATA hardware

Describe the fields required for serial GPIO request and response in the SAS/SATA hardware

◆ agsaSMPFrame_t

data structure describes a SMP request or response frame to be sent on the SAS port

The agsaSMPFrame_t data structure describes a SMP request or response frame to be issued or sent on the SAS port.

This data structure is one instance of the generic request issued to saSMPStart() and is passed as an agsaSASRequestBody_t .

◆ agsaSSPCmdInfoUnitExt_t

◆ agsaSSPInitiatorRequest_t

data structure describes a SAS SSP command request to be sent to the target device

data structure describes a SAS SSP command request to be sent to the target device. This structure limits the CDB length in SSP command up to 16 bytes long.

This data structure is one instance of the generic request issued to saSSPStart() and is passed as an agsaSASRequestBody_t .

◆ agsaSSPInitiatorRequestExt_t

data structure describes a SAS SSP command request Ext to be sent to the target device

data structure describes a SAS SSP command request to be sent to the target device. This structure support the CDB length in SSP command more than 16 bytes long.

This data structure is one instance of the generic request issued to saSSPStart() and is passed as an agsaSASRequestBody_t .

◆ agsaSSPInitiatorRequestIndirect_t

◆ agsaSSPTargetRequest_t

data structure describes a SAS SSP target read and write request

The agsaSSPTargetRequest_t data structure describes a SAS SSP target read and write request to be issued on the port. It includes the length of the data to be received or sent, an offset into the data block where the transfer is to start, and a list of scatter-gather buffers.

This data structure is one instance of the generic request issued to saSSPStart() and is passed as an agsaSASRequestBody_t . bit definitions for sspOption Bit 0-1: Transport Layer Retry setting for other phase: 00b: No retry 01b: Retry on ACK/NAK timeout 10b: Retry on NAK received 11b: Retry on both ACK/NAK timeout and NAK received Bit 2-3: Transport Layer Retry setting for data phase: 00b: No retry 01b: Retry on ACK/NAK timeout 10b: Retry on NAK received 11b: Retry on both ACK/NAK timeout and NAK received Bit 4: Retry Data Frame. Valid only on write command. Indicates whether Target supports RTL for this particular IO. 1b: enabled 0b: disabled Bit 5: Auto good response on successful read (data transfer from target to initiator) request. 1b: Enabled 0b: Disabled Bits 6-15 : Reserved.

◆ agsaSSPTargetResponse_t

data structure describes a SAS SSP target response to be issued on the port

This data structure is one instance of the generic request issued to saSSPStart() and is passed as an agsaSASRequestBody_t

◆ agsaSwConfig_t

structure describe software configuration

Structure is used as a parameter passed in saInitialize() to describe the configuration used during software initialization

◆ agsaUpdateFwFlash_t

data structure for firmware flash update saFwFlashUpdate().

The agsaUpdateFwFlash data structure specifies a request to saFwFlashUpdate()

◆ ossaDeregisterDeviceHandleCB_t

typedef void(* ossaDeregisterDeviceHandleCB_t) (agsaRoot_t *agRoot, agsaContext_t *agContext, agsaDevHandle_t *agDevHandle, bit32 status)

Callback definition for.

Definition at line 3480 of file sa.h.

◆ ossaDeviceRegistrationCB_t

typedef void(* ossaDeviceRegistrationCB_t) (agsaRoot_t *agRoot, agsaContext_t *agContext, bit32 status, agsaDevHandle_t *agDevHandle, bit32 deviceID)

Callback definition for .ossaDeviceRegistration.

Definition at line 3469 of file sa.h.

◆ ossaDIFEncryptionOffloadStartCB_t

typedef void(* ossaDIFEncryptionOffloadStartCB_t) (agsaRoot_t *agRoot, agsaContext_t *agContext, bit32 status, agsaOffloadDifDetails_t *agsaOffloadDifDetails)

Definition at line 3590 of file sa.h.

◆ ossaGenericAbortCB_t

typedef void(* ossaGenericAbortCB_t) (agsaRoot_t *agRoot, agsaIORequest_t *agIORequest, bit32 flag, bit32 status)

Callback definition for abort SMP SSP SATA callback.

Definition at line 3496 of file sa.h.

◆ ossaGenericCB_t

typedef void(* ossaGenericCB_t) (void)

Callback definition for.

Definition at line 3490 of file sa.h.

◆ ossaLocalPhyControlCB_t

typedef void(* ossaLocalPhyControlCB_t) (agsaRoot_t *agRoot, agsaContext_t *agContext, bit32 phyId, bit32 phyOperation, bit32 status, void *parm)

Definition at line 3504 of file sa.h.

◆ ossaSATACompletedCB_t

typedef void(* ossaSATACompletedCB_t) (agsaRoot_t *agRoot, agsaIORequest_t *agIORequest, bit32 agIOStatus, void *agFirstDword, bit32 agIOInfoLen, void *agParam)

Callback definition for.

Definition at line 3517 of file sa.h.

◆ ossaSetDeviceInfoCB_t

typedef void(* ossaSetDeviceInfoCB_t) (agsaRoot_t *agRoot, agsaContext_t *agContext, agsaDevHandle_t *agDevHandle, bit32 status, bit32 option, bit32 param)

Callback definition for.

Definition at line 3555 of file sa.h.

◆ ossaSMPCompletedCB_t

typedef void(* ossaSMPCompletedCB_t) (agsaRoot_t *agRoot, agsaIORequest_t *agIORequest, bit32 agIOStatus, bit32 agIOInfoLen, agsaFrameHandle_t agFrameHandle)

Callback definition for.

Definition at line 3530 of file sa.h.

◆ ossaSSPCompletedCB_t

typedef void(* ossaSSPCompletedCB_t) (agsaRoot_t *agRoot, agsaIORequest_t *agIORequest, bit32 agIOStatus, bit32 agIOInfoLen, void *agParam, bit16 sspTag, bit32 agOtherInfo)

Callback definition for.

Definition at line 3542 of file sa.h.

◆ ossaVhistCaptureCB_t

typedef void(* ossaVhistCaptureCB_t) (agsaRoot_t *agRoot, agsaContext_t *agContext, bit32 status, bit32 len)

Definition at line 3584 of file sa.h.

◆ PSASG_DESCRIPTOR

◆ SASG_DESCRIPTOR

the data structure describe SG list

the data structure describe SG list