FreeBSD kernel pms device code
|
Go to the source code of this file.
Functions | |
MALLOC_DEFINE (M_PMC_OSTI, "osti_cacheable", "allocated from ostiAllocMemory as cacheable memory") | |
osGLOBAL U32 | ostiAllocMemory (tiRoot_t *ptiRoot, void **osMemHandle, void **agVirtAddr, U32 *agPhysUpper32, U32 *agPhysLower32, U32 alignment, U32 allocLength, agBOOLEAN isCacheable) |
osGLOBAL void | ostiIOCTLWaitForSignal (tiRoot_t *ptiRoot, void *agParam1, void *agParam2, void *agParam3) |
osGLOBAL void | ostiIOCTLWaitForComplete (tiRoot_t *ptiRoot, void *agParam1, void *agParam2, void *agParam3) |
U32 | ostiChipConfigReadBit32 (tiRoot_t *ptiRoot, U32 chipConfigOffset) |
void | ostiChipConfigWriteBit32 (tiRoot_t *ptiRoot, U32 chipConfigOffset, U32 chipConfigValue) |
U32 | ostiChipReadBit32 (tiRoot_t *ptiRoot, U32 chipOffset) |
void | ostiChipWriteBit32 (tiRoot_t *ptiRoot, U32 chipOffset, U32 chipValue) |
U32 | ostiChipReadBit32Ext (tiRoot_t *ptiRoot, U32 busBaseNumber, U32 chipOffset) |
void | ostiChipWriteBit32Ext (tiRoot_t *ptiRoot, U32 busBaseNumber, U32 chipOffset, U32 aData) |
U08 | ostiChipReadBit8 (tiRoot_t *ptiRoot, U32 chipOffset) |
void | ostiChipWriteBit8 (tiRoot_t *ptiRoot, U32 chipOffset, U08 chipValue) |
void | ostiFlashReadBlock (tiRoot_t *ptiRoot, U32 offset, void *bufPtr, U32 nbytes) |
osGLOBAL U32 | ostiFreeMemory (tiRoot_t *ptiRoot, void *osMemHandle, U32 allocLength) |
static U32 | ostiMakeParamString (S08 *aKey, S08 *aSubkey1, S08 *aSubkey2, S08 *aSubkey3, S08 *aSubkey4, S08 *aSubkey5, S08 *aValueName, S08 *aFullKey, U32 *apLenFullKey) |
U32 | ostiGetTransportParam (tiRoot_t *ptiRoot, S08 *key, S08 *subkey1, S08 *subkey2, S08 *subkey3, S08 *subkey4, S08 *subkey5, S08 *valueName, S08 *buffer, U32 bufferLen, U32 *lenReceived) |
osGLOBAL void | ostiIOCTLClearSignal (tiRoot_t *ptiRoot, void **agParam1, void **agParam2, void **agParam3) |
osGLOBAL void | ostiIOCTLSetSignal (tiRoot_t *ptiRoot, void *agParam1, void *agParam2, void *agParam3) |
osGLOBAL void | ostiIOCTLComplete (tiRoot_t *ptiRoot, void *agParam1, void *agParam2, void *agParam3) |
void | ostiPortEvent (tiRoot_t *ptiRoot, tiPortEvent_t eventType, U32 status, void *pParm) |
void | ostiStallThread (tiRoot_t *ptiRoot, U32 microseconds) |
U32 | ostiTimeStamp (tiRoot_t *ptiRoot) |
U64 | ostiTimeStamp64 (tiRoot_t *ptiRoot) |
osGLOBAL void | ostiCacheFlush (tiRoot_t *ptiRoot, void *osMemHandle, void *virtPtr, bit32 length) |
osGLOBAL void | ostiCacheInvalidate (tiRoot_t *ptiRoot, void *osMemHandle, void *virtPtr, bit32 length) |
osGLOBAL void | ostiCachePreFlush (tiRoot_t *tiRoot, void *osMemHandle, void *virtPtr, bit32 length) |
GLOBAL void | ostiInterruptEnable (tiRoot_t *ptiRoot, bit32 channelNum) |
GLOBAL void | ostiInterruptDisable (tiRoot_t *ptiRoot, bit32 channelNum) |
MALLOC_DEFINE | ( | M_PMC_OSTI | , |
"osti_cacheable" | , | ||
"allocated from ostiAllocMemory as cacheable memory" | |||
) |
osGLOBAL U32 ostiAllocMemory | ( | tiRoot_t * | ptiRoot, |
void ** | osMemHandle, | ||
void ** | agVirtAddr, | ||
U32 * | agPhysUpper32, | ||
U32 * | agPhysLower32, | ||
U32 | alignment, | ||
U32 | allocLength, | ||
agBOOLEAN | isCacheable | ||
) |
Definition at line 51 of file lxosapi.c.
References AGTIAPI_PRINTK, _ag_dma_addr::dmaPhysAddr, _ag_dma_addr::dmaVirtAddr, _ag_card_info::freeDynamicMem, HIGH_32_BITS, LOW_32_BITS, _ag_dma_addr::memSize, _ag_dma_addr::nocache_busaddr, _ag_dma_addr::nocache_mem, pCard, agtiapi_softc::pCardInfo, tiMemoryNotAvail, TIROOT_TO_CARD, TIROOT_TO_CARDINFO, tiSuccess, and _ag_card_info::topOfFreeDynamicMem.
Referenced by itdssTaskCompleted(), ossaSMPCAMCompleted(), ossaSSPEvent(), tdipFWControlIoctl(), tdsaAbortAll(), tdsaNVMDGetIoctl(), tdsaNVMDSetIoctl(), tdsaPhyProfileIoctl(), tdsaRegDumpGetIoctl(), tdsaSendSMPIoctl(), and tiNumOfLunIOCTLreq().
osGLOBAL void ostiCacheFlush | ( | tiRoot_t * | ptiRoot, |
void * | osMemHandle, | ||
void * | virtPtr, | ||
bit32 | length | ||
) |
Definition at line 741 of file lxosapi.c.
Referenced by ossaCacheFlush().
osGLOBAL void ostiCacheInvalidate | ( | tiRoot_t * | ptiRoot, |
void * | osMemHandle, | ||
void * | virtPtr, | ||
bit32 | length | ||
) |
Definition at line 750 of file lxosapi.c.
Referenced by ossaCacheInvalidate().
osGLOBAL void ostiCachePreFlush | ( | tiRoot_t * | tiRoot, |
void * | osMemHandle, | ||
void * | virtPtr, | ||
bit32 | length | ||
) |
Definition at line 759 of file lxosapi.c.
Referenced by ossaCachePreFlush().
Definition at line 155 of file lxosapi.c.
References TIROOT_TO_PCIDEV.
Referenced by ossaHwRegReadConfig32(), and tiCOMMgntIOCTL().
Definition at line 176 of file lxosapi.c.
References TIROOT_TO_PCIDEV.
Definition at line 194 of file lxosapi.c.
References agtiapi_softc::pCardInfo, _ag_card_info::pciMemVirtAddr, and TIROOT_TO_CARDINFO.
Referenced by ossaHwRegRead().
Definition at line 232 of file lxosapi.c.
References agtiapi_softc::pCardInfo, and TIROOT_TO_CARDINFO.
Referenced by ossaHwRegReadExt(), ostiPCI_TRIGGER(), and tdsaRegisterIoctl().
Definition at line 275 of file lxosapi.c.
References agtiapi_softc::pCardInfo, _ag_card_info::pciMemVirtAddr, and TIROOT_TO_CARDINFO.
Definition at line 214 of file lxosapi.c.
References agtiapi_softc::pCardInfo, _ag_card_info::pciMemVirtAddr, and TIROOT_TO_CARDINFO.
Referenced by ossaHwRegWrite().
Definition at line 255 of file lxosapi.c.
References agtiapi_softc::pCardInfo, and TIROOT_TO_CARDINFO.
Referenced by ossaHwRegWriteExt(), and tdsaRegisterIoctl().
Definition at line 292 of file lxosapi.c.
References agtiapi_softc::pCardInfo, _ag_card_info::pciMemVirtAddr, and TIROOT_TO_CARDINFO.
Definition at line 300 of file lxosapi.c.
References AGTIAPI_PRINTK.
Definition at line 320 of file lxosapi.c.
References AGTIAPI_DYNAMIC_MAX, AGTIAPI_PRINTK, _ag_dma_addr::dmaPhysAddr, _ag_dma_addr::dmaVirtAddr, _ag_card_info::freeDynamicMem, _ag_dma_addr::memSize, NULL, pCard, agtiapi_softc::pCardInfo, tiInvalidHandle, TIROOT_TO_CARD, TIROOT_TO_CARDINFO, tiSuccess, and _ag_card_info::topOfFreeDynamicMem.
Referenced by itdssTaskCompleted(), ossaHwCB(), ossaSMPAbortCB(), ossaSMPCAMCompleted(), ossaSSPEvent(), ostiCOMMgntIOCTLRsp(), ostiCOMMgntVPDSetIOCTLRsp(), ostiGenEventIOCTLRsp(), ostiGetNVMDIOCTLRsp(), ostiGetPhyProfileIOCTLRsp(), ostiRegDumpIOCTLRsp(), ostiSendSMPIOCTLRsp(), ostiSetNVMDIOCTLRsp(), tdipFWControlIoctl(), tdsaAbortAll(), tdsaNVMDGetIoctl(), and tiNumOfLunIOCTLreq().
U32 ostiGetTransportParam | ( | tiRoot_t * | ptiRoot, |
S08 * | key, | ||
S08 * | subkey1, | ||
S08 * | subkey2, | ||
S08 * | subkey3, | ||
S08 * | subkey4, | ||
S08 * | subkey5, | ||
S08 * | valueName, | ||
S08 * | buffer, | ||
U32 | bufferLen, | ||
U32 * | lenReceived | ||
) |
Definition at line 464 of file lxosapi.c.
References ostiMakeParamString(), tiError, and tiSuccess.
Referenced by agtiapi_attach(), itdssGetOperatingOptionParams(), tdsaGetCardPhyParams(), tdsaGetGlobalPhyParams(), tdsaGetHwConfigParams(), tdsaGetPortParams(), tdsaGetSwConfigParams(), tdsaLoLevelGetResource(), tdssGetMaxTargetsParams(), tdssGetSATAOnlyModeParams(), ttdssGetOperatingOptionParams(), and ttdssInit().
Definition at line 781 of file lxosapi.c.
Referenced by ossaDisableInterrupts().
Definition at line 773 of file lxosapi.c.
Referenced by ossaReenableInterrupts().
osGLOBAL void ostiIOCTLComplete | ( | tiRoot_t * | ptiRoot, |
void * | agParam1, | ||
void * | agParam2, | ||
void * | agParam3 | ||
) |
Definition at line 556 of file lxosapi.c.
References agtiapi_softc::down_count, pCard, agtiapi_softc::pIoctlSem, TIROOT_TO_CARD, and agtiapi_softc::up_count.
Referenced by ostiSendSMPIOCTLRsp().
osGLOBAL void ostiIOCTLSetSignal | ( | tiRoot_t * | ptiRoot, |
void * | agParam1, | ||
void * | agParam2, | ||
void * | agParam3 | ||
) |
Definition at line 541 of file lxosapi.c.
References agtiapi_softc::down_count, pCard, agtiapi_softc::pIoctlSem, TIROOT_TO_CARD, and agtiapi_softc::up_count.
Referenced by ostiCOMMgntIOCTLRsp(), ostiCOMMgntVPDSetIOCTLRsp(), ostiGenEventIOCTLRsp(), ostiGetDeviceInfoIOCTLRsp(), ostiGetForensicDataIOCTLRsp(), ostiGetGpioIOCTLRsp(), ostiGetNVMDIOCTLRsp(), ostiGetPhyGeneralStatusRsp(), ostiGetPhyProfileIOCTLRsp(), ostiNumOfLUNIOCTLRsp(), ostiRegDumpIOCTLRsp(), ostiSetNVMDIOCTLRsp(), and ostiSgpioIoctlRsp().
osGLOBAL void ostiIOCTLWaitForComplete | ( | tiRoot_t * | ptiRoot, |
void * | agParam1, | ||
void * | agParam2, | ||
void * | agParam3 | ||
) |
Definition at line 132 of file lxosapi.c.
References agtiapi_softc::down_count, pCard, agtiapi_softc::pIoctlSem, and TIROOT_TO_CARD.
osGLOBAL void ostiIOCTLWaitForSignal | ( | tiRoot_t * | ptiRoot, |
void * | agParam1, | ||
void * | agParam2, | ||
void * | agParam3 | ||
) |
Definition at line 118 of file lxosapi.c.
References agtiapi_softc::down_count, pCard, agtiapi_softc::pIoctlSem, and TIROOT_TO_CARD.
Referenced by agtiapi_CharIoctl().
void ostiPortEvent | ( | tiRoot_t * | ptiRoot, |
tiPortEvent_t | eventType, | ||
U32 | status, | ||
void * | pParm | ||
) |
Definition at line 591 of file lxosapi.c.
References AGTIAPI_CB_DONE, AGTIAPI_INIT_TIME, AGTIAPI_PORT_DISC_READY, AGTIAPI_PORT_LINK_UP, AGTIAPI_PORT_PANIC, AGTIAPI_PORT_SHUTDOWN, AGTIAPI_PORT_START, AGTIAPI_PORT_STOPPED, AGTIAPI_PRINTK, AGTIAPI_RESET_SUCCESS, agtiapi_softc::flags, FORCE_PERSISTENT_ASSIGN_MASK, pCard, PORTAL_CONTEXT_TO_PORTALDATA, PORTAL_STATUS, _ag_portal_data::portalInfo, agtiapi_softc::pPortalData, status, tiEncryptOperation, tiINIDiscoverTargets(), tiModePageOperation, _ag_portal_info::tiPortalContext, tiPortDiscoveryReady, tiPortLinkDown, tiPortLinkUp, tiPortNameServerDown, tiPortPanic, tiPortResetComplete, tiPortShutdown, tiPortStarted, tiPortStopped, agtiapi_softc::tiRoot, TIROOT_TO_CARD, and tiSuccess.
Referenced by ossaDeviceRegistrationCB(), ossaEncryptSelftestExecuteCB(), ossaGetOperatorCB(), ossaHwCB(), ossaOperatorManagementCB(), ossaSetOperatorCB(), tiCOMEncryptDekInvalidate(), tiCOMEncryptGetInfo(), tiCOMPortStart(), and tiCOMShutDown().
Definition at line 691 of file lxosapi.c.
Referenced by ossaStallThread().
Definition at line 707 of file lxosapi.c.
Referenced by ossaTimeStamp(), and ostiTimeStamp64().
Definition at line 713 of file lxosapi.c.
References ostiTimeStamp().
Referenced by ossaTimeStamp64().