FreeBSD kernel pms device code
tdioctl.c File Reference
Include dependency graph for tdioctl.c:

Go to the source code of this file.

Macros

#define agFieldOffset(baseType, fieldName)
 

Functions

 __FBSDID ("$FreeBSD$")
 
osGLOBAL bit32 tdipFWControlIoctl (tiRoot_t *tiRoot, tiIOCTLPayload_t *agIOCTLPayload, void *agParam1, void *agParam2, void *agParam3)
 
osGLOBAL bit32 tiCOMMgntIOCTL (tiRoot_t *tiRoot, tiIOCTLPayload_t *agIOCTLPayload, void *agParam1, void *agParam2, void *agParam3)
 
osGLOBAL void ostiGetGpioIOCTLRsp (tiRoot_t *tiRoot, bit32 status, bit32 gpioReadValue, agsaGpioPinSetupInfo_t *gpioPinSetupInfo, agsaGpioEventSetupInfo_t *gpioEventSetupInfo)
 
osGLOBAL bit32 tdsaSGpioIoctlSetup (tiRoot_t *tiRoot, agsaContext_t *agContext, tiIOCTLPayload_t *agIOCTLPayload, void *agParam1, void *agParam2)
 
osGLOBAL void ostiSgpioIoctlRsp (tiRoot_t *tiRoot, agsaSGpioReqResponse_t *pSgpioResponse)
 
osGLOBAL void ostiCOMMgntIOCTLRsp (tiRoot_t *tiRoot, bit32 status)
 
osGLOBAL void ostiRegDumpIOCTLRsp (tiRoot_t *tiRoot, bit32 status)
 
osGLOBAL void ostiSetNVMDIOCTLRsp (tiRoot_t *tiRoot, bit32 status)
 
osGLOBAL void ostiGetNVMDIOCTLRsp (tiRoot_t *tiRoot, bit32 status)
 
osGLOBAL void ostiGetPhyProfileIOCTLRsp (tiRoot_t *tiRoot, bit32 status)
 
osGLOBAL void ostiGenEventIOCTLRsp (tiRoot_t *tiRoot, bit32 status)
 
osGLOBAL void ostiGetDeviceInfoIOCTLRsp (tiRoot_t *tiRoot, bit32 status, void *param)
 
osGLOBAL void ostiGetIoEventStatsIOCTLRsp (tiRoot_t *tiRoot, bit32 status, void *param)
 
osGLOBAL void ostiGetForensicDataIOCTLRsp (tiRoot_t *tiRoot, bit32 status, void *param)
 
osGLOBAL bit32 tdsaRegDumpGetIoctl (tiRoot_t *tiRoot, tiIOCTLPayload_t *agIOCTLPayload, void *agParam1, void *agParam2, void *agParam3)
 
osGLOBAL void ostiCOMMgntVPDSetIOCTLRsp (tiRoot_t *tiRoot, bit32 status)
 
osGLOBAL bit32 tdsaNVMDSetIoctl (tiRoot_t *tiRoot, tiIOCTLPayload_t *agIOCTLPayload, void *agParam1, void *agParam2, void *agParam3)
 
osGLOBAL bit32 tdsaNVMDGetIoctl (tiRoot_t *tiRoot, tiIOCTLPayload_t *agIOCTLPayload, void *agParam1, void *agParam2, void *agParam3)
 
osGLOBAL bit32 tdsaDeviceInfoGetIoctl (tiRoot_t *tiRoot, tiIOCTLPayload_t *agIOCTLPayload, void *agParam1, void *agParam2, void *agParam3)
 
osGLOBAL bit32 tdsaIoErrorStatisticGetIoctl (tiRoot_t *tiRoot, tiIOCTLPayload_t *agIOCTLPayload, void *agParam1, void *agParam2, void *agParam3)
 
osGLOBAL bit32 tdsaIoEventStatisticGetIoctl (tiRoot_t *tiRoot, tiIOCTLPayload_t *agIOCTLPayload, void *agParam1, void *agParam2, void *agParam3)
 
osGLOBAL bit32 tdsaRegisterIoctl (tiRoot_t *tiRoot, tiIOCTLPayload_t *agIOCTLPayload, void *agParam1, void *agParam2, void *agParam3)
 
osGLOBAL bit32 tdsaGetPhyGeneralStatusIoctl (tiRoot_t *tiRoot, agsaPhyGeneralState_t *PhyData)
 
osGLOBAL void ostiGetPhyGeneralStatusRsp (tiRoot_t *tiRoot, agsaSASPhyGeneralStatusPage_t *GenStatus, bit32 phyID)
 
osGLOBAL bit32 tdsaPhyProfileIoctl (tiRoot_t *tiRoot, tiIOCTLPayload_t *agIOCTLPayload, void *agParam1, void *agParam2, void *agParam3)
 
osGLOBAL bit32 tdsaForensicDataGetIoctl (tiRoot_t *tiRoot, tiIOCTLPayload_t *agIOCTLPayload, void *agParam1, void *agParam2, void *agParam3)
 
osGLOBAL bit32 tdsaSendSMPIoctl (tiRoot_t *tiRoot, tiIOCTLPayload_t *agIOCTLPayload, void *agParam1, void *agParam2, void *agParam3)
 
osGLOBAL void ostiSendSMPIOCTLRsp (tiRoot_t *tiRoot, bit32 status)
 
osGLOBAL bit32 tdsaSendBISTIoctl (tiRoot_t *tiRoot, tiIOCTLPayload_t *agIOCTLPayload, void *agParam1, void *agParam2, void *agParam3)
 
osGLOBAL bit32 tdsaSendTMFIoctl (tiRoot_t *tiRoot, tiIOCTLPayload_t *agIOCTLPayload, void *agParam1, void *agParam2, unsigned long resetType)
 
osGLOBAL bit32 tdsaGetNumOfLUNIOCTL (tiRoot_t *tiRoot, tiIOCTLPayload_t *agIOCTLPayload, void *agParam1, void *agParam2, void *agParam3)
 
osGLOBAL void ostiNumOfLUNIOCTLRsp (tiRoot_t *tiRoot, bit32 status)
 

Variables

bit32 volatile sgpioResponseSet
 

Detailed Description

This file contains Management IOCTL APIs

Definition in file tdioctl.c.

Macro Definition Documentation

◆ agFieldOffset

#define agFieldOffset (   baseType,
  fieldName 
)
Value:
/*lint -e545 */ \
((bit32)((bitptr)(&(((baseType *)0)->fieldName)))) \
unsigned long bitptr
Definition: ostypes.h:112
unsigned int bit32
Definition: ostypes.h:99

Definition at line 86 of file tdioctl.c.

Function Documentation

◆ __FBSDID()

__FBSDID ( "$FreeBSD$"  )

◆ ostiCOMMgntIOCTLRsp()

osGLOBAL void ostiCOMMgntIOCTLRsp ( tiRoot_t tiRoot,
bit32  status 
)

Definition at line 1466 of file tdioctl.c.

References NULL, ostiFreeMemory(), ostiIOCTLSetSignal(), status, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, and TI_DBG1.

Referenced by ossaFwFlashUpdateCB().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ostiCOMMgntVPDSetIOCTLRsp()

osGLOBAL void ostiCOMMgntVPDSetIOCTLRsp ( tiRoot_t tiRoot,
bit32  status 
)

Definition at line 2244 of file tdioctl.c.

References NULL, ostiFreeMemory(), ostiIOCTLSetSignal(), status, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, and TI_DBG1.

Here is the call graph for this function:

◆ ostiGenEventIOCTLRsp()

osGLOBAL void ostiGenEventIOCTLRsp ( tiRoot_t tiRoot,
bit32  status 
)

Definition at line 1764 of file tdioctl.c.

References IOCTL_ERR_STATUS_INTERNAL_ERROR, NULL, ostiFreeMemory(), ostiIOCTLSetSignal(), tiIOCTLPayload::Status, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, and TI_DBG1.

Referenced by ossaGeneralEvent().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ostiGetDeviceInfoIOCTLRsp()

◆ ostiGetForensicDataIOCTLRsp()

◆ ostiGetGpioIOCTLRsp()

◆ ostiGetIoEventStatsIOCTLRsp()

osGLOBAL void ostiGetIoEventStatsIOCTLRsp ( tiRoot_t tiRoot,
bit32  status,
void *  param 
)

◆ ostiGetNVMDIOCTLRsp()

osGLOBAL void ostiGetNVMDIOCTLRsp ( tiRoot_t tiRoot,
bit32  status 
)

Definition at line 1640 of file tdioctl.c.

References agNULL, NULL, osti_memcpy, ostiFreeMemory(), ostiIOCTLSetSignal(), status, tiIOCTLPayload::Status, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, and TI_DBG1.

Referenced by ossaGetNVMDResponseCB().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ostiGetPhyGeneralStatusRsp()

◆ ostiGetPhyProfileIOCTLRsp()

◆ ostiNumOfLUNIOCTLRsp()

osGLOBAL void ostiNumOfLUNIOCTLRsp ( tiRoot_t tiRoot,
bit32  status 
)

◆ ostiRegDumpIOCTLRsp()

osGLOBAL void ostiRegDumpIOCTLRsp ( tiRoot_t tiRoot,
bit32  status 
)

Definition at line 1505 of file tdioctl.c.

References NULL, osti_memcpy, ostiFreeMemory(), ostiIOCTLSetSignal(), tiRoot::tdData, tdsaRoot_s::tdsaAllShared, and TI_DBG1.

Referenced by ossaGetRegisterDumpCB().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ostiSendSMPIOCTLRsp()

osGLOBAL void ostiSendSMPIOCTLRsp ( tiRoot_t tiRoot,
bit32  status 
)

Definition at line 3237 of file tdioctl.c.

References NULL, osti_memcpy, ostiFreeMemory(), ostiIOCTLComplete(), status, tiIOCTLPayload::Status, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, and TI_DBG1.

Referenced by ossaSMPIoctlCompleted().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ostiSetNVMDIOCTLRsp()

osGLOBAL void ostiSetNVMDIOCTLRsp ( tiRoot_t tiRoot,
bit32  status 
)

Definition at line 1546 of file tdioctl.c.

References NULL, ostiFreeMemory(), ostiIOCTLSetSignal(), status, tiIOCTLPayload::Status, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, and TI_DBG1.

Referenced by ossaSetNVMDResponseCB().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ostiSgpioIoctlRsp()

osGLOBAL void ostiSgpioIoctlRsp ( tiRoot_t tiRoot,
agsaSGpioReqResponse_t pSgpioResponse 
)

Definition at line 1418 of file tdioctl.c.

References agNULL, tiIOCTLPayload::FunctionSpecificArea, IOCTL_ERR_STATUS_OK, NULL, osti_memcpy, ostiIOCTLSetSignal(), sgpioResponseSet, tiIOCTLPayload::Status, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, and TI_DBG3.

Referenced by ossaSGpioCB().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ tdipFWControlIoctl()

◆ tdsaDeviceInfoGetIoctl()

◆ tdsaForensicDataGetIoctl()

◆ tdsaGetNumOfLUNIOCTL()

osGLOBAL bit32 tdsaGetNumOfLUNIOCTL ( tiRoot_t tiRoot,
tiIOCTLPayload_t agIOCTLPayload,
void *  agParam1,
void *  agParam2,
void *  agParam3 
)

◆ tdsaGetPhyGeneralStatusIoctl()

osGLOBAL bit32 tdsaGetPhyGeneralStatusIoctl ( tiRoot_t tiRoot,
agsaPhyGeneralState_t PhyData 
)

◆ tdsaIoErrorStatisticGetIoctl()

osGLOBAL bit32 tdsaIoErrorStatisticGetIoctl ( tiRoot_t tiRoot,
tiIOCTLPayload_t agIOCTLPayload,
void *  agParam1,
void *  agParam2,
void *  agParam3 
)

Definition at line 2690 of file tdioctl.c.

References agNULL, tdIoErrorStatisticPayload_s::flag, tiIOCTLPayload::FunctionSpecificArea, IOCTL_CALL_SUCCESS, saGetIOErrorStats(), status, tiRoot::tdData, and tdsaRoot_s::tdsaAllShared.

Referenced by tiCOMMgntIOCTL().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ tdsaIoEventStatisticGetIoctl()

osGLOBAL bit32 tdsaIoEventStatisticGetIoctl ( tiRoot_t tiRoot,
tiIOCTLPayload_t agIOCTLPayload,
void *  agParam1,
void *  agParam2,
void *  agParam3 
)

Definition at line 2746 of file tdioctl.c.

References agNULL, tdIoEventStatisticPayload_s::flag, tiIOCTLPayload::FunctionSpecificArea, IOCTL_CALL_SUCCESS, saGetIOEventStats(), status, tiRoot::tdData, and tdsaRoot_s::tdsaAllShared.

Referenced by tiCOMMgntIOCTL().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ tdsaNVMDGetIoctl()

◆ tdsaNVMDSetIoctl()

◆ tdsaPhyProfileIoctl()

osGLOBAL bit32 tdsaPhyProfileIoctl ( tiRoot_t tiRoot,
tiIOCTLPayload_t agIOCTLPayload,
void *  agParam1,
void *  agParam2,
void *  agParam3 
)

◆ tdsaRegDumpGetIoctl()

◆ tdsaRegisterIoctl()

osGLOBAL bit32 tdsaRegisterIoctl ( tiRoot_t tiRoot,
tiIOCTLPayload_t agIOCTLPayload,
void *  agParam1,
void *  agParam2,
void *  agParam3 
)

◆ tdsaSendBISTIoctl()

osGLOBAL bit32 tdsaSendBISTIoctl ( tiRoot_t tiRoot,
tiIOCTLPayload_t agIOCTLPayload,
void *  agParam1,
void *  agParam2,
void *  agParam3 
)

◆ tdsaSendSMPIoctl()

◆ tdsaSendTMFIoctl()

osGLOBAL bit32 tdsaSendTMFIoctl ( tiRoot_t tiRoot,
tiIOCTLPayload_t agIOCTLPayload,
void *  agParam1,
void *  agParam2,
unsigned long  resetType 
)

Definition at line 3383 of file tdioctl.c.

References tiIOCTLPayload::FunctionSpecificArea, IOCTL_CALL_SUCCESS, tmf_pass_through_req::lun, ostiSendResetDeviceIoctl(), tmf_pass_through_req::pathId, status, tiIOCTLPayload::Status, tmf_pass_through_req::targetId, and TI_DBG3.

Referenced by tiCOMMgntIOCTL().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ tdsaSGpioIoctlSetup()

◆ tiCOMMgntIOCTL()

osGLOBAL bit32 tiCOMMgntIOCTL ( tiRoot_t tiRoot,
tiIOCTLPayload_t agIOCTLPayload,
void *  agParam1,
void *  agParam2,
void *  agParam3 
)

Definition at line 364 of file tdioctl.c.

References AG_LOGICAL_UNIT_RESET, AG_TARGET_WARM_RESET, AGSA_INTERRUPT_CONFIGURATION_PAGE, AGSA_RC_FAILURE, AGSA_RC_SUCCESS, AGSA_SAS_PROTOCOL_TIMER_CONFIG_PAGE, AGTIAPI_DRIVER_VERSION, _PHY_DETAILS_::attached_dev_type, _PHY_DETAILS_::attached_phy, _PHY_DETAILS_::attached_sasAddressLo, _TSTMTID_TRACE_BUFFER_FETCH::BufferOffsetBegin, hpTraceBufferParms_s::BufferSize, _TSTMTID_TRACE_BUFFER_INFO::BufferSize, hpTraceBufferParms_s::CurrentIndex, _TSTMTID_TRACE_BUFFER_INFO::CurrentIndex, hpTraceBufferParms_s::CurrentTraceIndexWrapCount, _TSTMTID_TRACE_BUFFER_INFO::CurrentTraceIndexWrapCount, _TSTMTID_TRACE_BUFFER_FETCH::Data, agsaSASIdentify_s::deviceType_addressFrameType, agsaControllerEventLog_s::eventLog1, agsaControllerEventLog_s::eventLog1Option, agsaControllerEventLog_s::eventLog2, agsaControllerEventLog_s::eventLog2Option, FetchBufferSIZE, _TSTMTID_TRACE_BUFFER_RESET::Flag, tiIOCTLPayload::FunctionSpecificArea, agsaControllerInfo_s::fwRevision, _TSTMTID_TRACE_BUFFER_FETCH::HighFence, HighFence32Bits, IOCTL_CALL_FAIL, IOCTL_CALL_INVALID_CODE, IOCTL_CALL_INVALID_DEVICE, IOCTL_CALL_PENDING, IOCTL_CALL_SUCCESS, IOCTL_ERR_FW_EVENTLOG_DISABLED, IOCTL_ERR_STATUS_INTERNAL_ERROR, IOCTL_ERR_STATUS_NO_MORE_DATA, IOCTL_ERR_STATUS_NOT_SUPPORTED, IOCTL_ERR_STATUS_OK, IOCTL_MJ_CARD_PARAMETER, IOCTL_MJ_FW_CONTROL, IOCTL_MJ_FW_INFO, IOCTL_MJ_FW_PROFILE, IOCTL_MJ_GET_CORE_DUMP, IOCTL_MJ_GET_DEVICE_INFO, IOCTL_MJ_GET_DEVICE_LUN, IOCTL_MJ_GET_DRIVER_VERSION, IOCTL_MJ_GET_EVENT_LOG1, IOCTL_MJ_GET_EVENT_LOG2, IOCTL_MJ_GET_FORENSIC_DATA, IOCTL_MJ_GET_FW_REV, IOCTL_MJ_GET_IO_ERROR_STATISTIC, IOCTL_MJ_GET_IO_EVENT_STATISTIC, IOCTL_MJ_GET_PHY_PROFILE, IOCTL_MJ_GPIO, IOCTL_MJ_INI_DRIVER_IDENTIFY, IOCTL_MJ_LL_API_TEST, IOCTL_MJ_LL_TRACING, IOCTL_MJ_MODE_CTL_PAGE, IOCTL_MJ_NVMD_GET, IOCTL_MJ_NVMD_SET, IOCTL_MJ_PHY_DETAILS, IOCTL_MJ_PHY_GENERAL_STATUS, IOCTL_MJ_PORT_START, IOCTL_MJ_PORT_STOP, IOCTL_MJ_SEND_BIST, IOCTL_MJ_SEND_TMF, IOCTL_MJ_SET_OR_GET_REGISTER, IOCTL_MJ_SGPIO, IOCTL_MJ_SMP_REQUEST, IOCTL_MN_CARD_GET_INTERRUPT_CONFIG, IOCTL_MN_CARD_GET_TIMER_CONFIG, IOCTL_MN_FW_GET_EVENT_FLASH_LOG1, IOCTL_MN_FW_GET_EVENT_FLASH_LOG2, IOCTL_MN_FW_GET_TRACE_BUFFER, IOCTL_MN_LL_GET_TRACE_BUFFER, IOCTL_MN_LL_GET_TRACE_BUFFER_INFO, IOCTL_MN_LL_RESET_TRACE_INDEX, IOCTL_MN_TMF_DEVICE_RESET, IOCTL_MN_TMF_LUN_RESET, tiIOCTLPayload::Length, _TSTMTID_TRACE_BUFFER_FETCH::LowFence, LowFence32Bits, tiIOCTLPayload::MajorFunction, MIN, tiIOCTLPayload::MinorFunction, NULL, osti_memcpy, osti_sprintf, ostiChipConfigReadBit32(), tiEncryptDekConfigPage::pageCode, agsaControllerInfo_s::PCILinkRate, agsaControllerInfo_s::PCIWidth, hpTraceBufferParms_s::pCurrentTraceIndex, agsaLLRoot_s::phyCount, agsaSASIdentify_s::phyIdentifier, agsaLLRoot_s::phys, PMC_IOCTL_SIGNATURE, hpTraceBufferParms_s::pTrace, hpTraceBufferParms_s::pTraceIndexWrapCount, hpTraceBufferParms_s::pTraceMask, tiIOCTLPayload::Reserved, agsaPhyGeneralState_s::Reserved2, _TSTMTID_TRACE_BUFFER_RESET::Reset, saGetControllerConfig(), saGetControllerEventLogInfo(), saGetControllerInfo(), SAS_PHY_SATA_DEVICE, agsaSASIdentify_s::sasAddressHi, _PHY_DETAILS_::sasAddressHi, agsaSASIdentify_s::sasAddressLo, _PHY_DETAILS_::sasAddressLo, saSetControllerConfig(), agsaPhy_s::sasIdentify, agsaContext_s::sdkData, agsaControllerInfo_s::sdkRevision, agsaControllerInfo_s::signature, tiIOCTLPayload::Signature, smResetTraceBuffer, smTraceGetInfo, smTraceSetMask, status, agsaPhy_s::status, tiIOCTLPayload::Status, tiRoot::tdData, tdipFWControlIoctl(), tdsaRoot_s::tdsaAllShared, tdsaDeviceInfoGetIoctl(), tdsaForensicDataGetIoctl(), tdsaGetNumOfLUNIOCTL(), tdsaGetPhyGeneralStatusIoctl(), tdsaGpioSetup(), tdsaIoErrorStatisticGetIoctl(), tdsaIoEventStatisticGetIoctl(), tdsaNVMDGetIoctl(), tdsaNVMDSetIoctl(), tdsaPhyProfileIoctl(), tdsaRegDumpGetIoctl(), tdsaRegisterIoctl(), tdsaSendBISTIoctl(), tdsaSendSMPIoctl(), tdsaSendTMFIoctl(), tdsaSGpioIoctlSetup(), TI_DBG1, TI_DBG3, TI_DBG5, TI_DBG6, TI_ENCRYPTION_CONTROL_PARM_PAGE, TI_ENCRYPTION_DEK_CONFIG_PAGE, TI_ENCRYPTION_GENERAL_CONFIG_PAGE, tiCOMPortStart(), tiCOMPortStop(), tiIniGetDirectSataSasAddr(), tiIS_SPC, tiModePageGet, tiModePageSet, tiSuccess, agsaMem_s::totalLength, hpTraceBufferParms_s::TraceCompiled, _TSTMTID_TRACE_BUFFER_INFO::TraceCompiled, _TSTMTID_TRACE_BUFFER_INFO::TraceMask, _TSTMTID_TRACE_BUFFER_RESET::TraceMask, hpTraceBufferParms_s::TraceWrap, _TSTMTID_TRACE_BUFFER_INFO::TraceWrap, agsaInterruptConfigPage_s::vectorMask0, agsaInterruptConfigPage_s::vectorMask1, and agsaMem_s::virtPtr.

Referenced by agtiapi_CharIoctl().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ sgpioResponseSet

bit32 volatile sgpioResponseSet
extern

Definition at line 97 of file tdport.c.

Referenced by ostiSgpioIoctlRsp(), and SendSgpioRequest().