FreeBSD kernel pms device code
lxosapi.c File Reference
This graph shows which files directly or indirectly include this file:

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)
 

Function Documentation

◆ MALLOC_DEFINE()

MALLOC_DEFINE ( M_PMC_OSTI  ,
"osti_cacheable"  ,
"allocated from ostiAllocMemory as cacheable memory"   
)

◆ ostiAllocMemory()

◆ ostiCacheFlush()

osGLOBAL void ostiCacheFlush ( tiRoot_t ptiRoot,
void *  osMemHandle,
void *  virtPtr,
bit32  length 
)

Definition at line 741 of file lxosapi.c.

Referenced by ossaCacheFlush().

Here is the caller graph for this function:

◆ ostiCacheInvalidate()

osGLOBAL void ostiCacheInvalidate ( tiRoot_t ptiRoot,
void *  osMemHandle,
void *  virtPtr,
bit32  length 
)

Definition at line 750 of file lxosapi.c.

Referenced by ossaCacheInvalidate().

Here is the caller graph for this function:

◆ ostiCachePreFlush()

osGLOBAL void ostiCachePreFlush ( tiRoot_t tiRoot,
void *  osMemHandle,
void *  virtPtr,
bit32  length 
)

Definition at line 759 of file lxosapi.c.

Referenced by ossaCachePreFlush().

Here is the caller graph for this function:

◆ ostiChipConfigReadBit32()

U32 ostiChipConfigReadBit32 ( tiRoot_t ptiRoot,
U32  chipConfigOffset 
)

Definition at line 155 of file lxosapi.c.

References TIROOT_TO_PCIDEV.

Referenced by ossaHwRegReadConfig32(), and tiCOMMgntIOCTL().

Here is the caller graph for this function:

◆ ostiChipConfigWriteBit32()

void ostiChipConfigWriteBit32 ( tiRoot_t ptiRoot,
U32  chipConfigOffset,
U32  chipConfigValue 
)

Definition at line 176 of file lxosapi.c.

References TIROOT_TO_PCIDEV.

◆ ostiChipReadBit32()

U32 ostiChipReadBit32 ( tiRoot_t ptiRoot,
U32  chipOffset 
)

Definition at line 194 of file lxosapi.c.

References agtiapi_softc::pCardInfo, _ag_card_info::pciMemVirtAddr, and TIROOT_TO_CARDINFO.

Referenced by ossaHwRegRead().

Here is the caller graph for this function:

◆ ostiChipReadBit32Ext()

U32 ostiChipReadBit32Ext ( tiRoot_t ptiRoot,
U32  busBaseNumber,
U32  chipOffset 
)

Definition at line 232 of file lxosapi.c.

References agtiapi_softc::pCardInfo, and TIROOT_TO_CARDINFO.

Referenced by ossaHwRegReadExt(), ostiPCI_TRIGGER(), and tdsaRegisterIoctl().

Here is the caller graph for this function:

◆ ostiChipReadBit8()

U08 ostiChipReadBit8 ( tiRoot_t ptiRoot,
U32  chipOffset 
)

◆ ostiChipWriteBit32()

void ostiChipWriteBit32 ( tiRoot_t ptiRoot,
U32  chipOffset,
U32  chipValue 
)

Definition at line 214 of file lxosapi.c.

References agtiapi_softc::pCardInfo, _ag_card_info::pciMemVirtAddr, and TIROOT_TO_CARDINFO.

Referenced by ossaHwRegWrite().

Here is the caller graph for this function:

◆ ostiChipWriteBit32Ext()

void ostiChipWriteBit32Ext ( tiRoot_t ptiRoot,
U32  busBaseNumber,
U32  chipOffset,
U32  aData 
)

Definition at line 255 of file lxosapi.c.

References agtiapi_softc::pCardInfo, and TIROOT_TO_CARDINFO.

Referenced by ossaHwRegWriteExt(), and tdsaRegisterIoctl().

Here is the caller graph for this function:

◆ ostiChipWriteBit8()

void ostiChipWriteBit8 ( tiRoot_t ptiRoot,
U32  chipOffset,
U08  chipValue 
)

◆ ostiFlashReadBlock()

void ostiFlashReadBlock ( tiRoot_t ptiRoot,
U32  offset,
void *  bufPtr,
U32  nbytes 
)

Definition at line 300 of file lxosapi.c.

References AGTIAPI_PRINTK.

◆ ostiFreeMemory()

◆ ostiGetTransportParam()

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 
)

◆ ostiInterruptDisable()

GLOBAL void ostiInterruptDisable ( tiRoot_t ptiRoot,
bit32  channelNum 
)

Definition at line 781 of file lxosapi.c.

Referenced by ossaDisableInterrupts().

Here is the caller graph for this function:

◆ ostiInterruptEnable()

GLOBAL void ostiInterruptEnable ( tiRoot_t ptiRoot,
bit32  channelNum 
)

Definition at line 773 of file lxosapi.c.

Referenced by ossaReenableInterrupts().

Here is the caller graph for this function:

◆ ostiIOCTLClearSignal()

osGLOBAL void ostiIOCTLClearSignal ( tiRoot_t ptiRoot,
void **  agParam1,
void **  agParam2,
void **  agParam3 
)

Definition at line 520 of file lxosapi.c.

◆ ostiIOCTLComplete()

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().

Here is the caller graph for this function:

◆ ostiIOCTLSetSignal()

◆ ostiIOCTLWaitForComplete()

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.

◆ ostiIOCTLWaitForSignal()

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().

Here is the caller graph for this function:

◆ ostiMakeParamString()

static U32 ostiMakeParamString ( S08 aKey,
S08 aSubkey1,
S08 aSubkey2,
S08 aSubkey3,
S08 aSubkey4,
S08 aSubkey5,
S08 aValueName,
S08 aFullKey,
U32 apLenFullKey 
)
inlinestatic

Definition at line 377 of file lxosapi.c.

References agNULL, tiError, and tiSuccess.

Referenced by ostiGetTransportParam().

Here is the caller graph for this function:

◆ ostiPortEvent()

◆ ostiStallThread()

void ostiStallThread ( tiRoot_t ptiRoot,
U32  microseconds 
)

Definition at line 691 of file lxosapi.c.

Referenced by ossaStallThread().

Here is the caller graph for this function:

◆ ostiTimeStamp()

U32 ostiTimeStamp ( tiRoot_t ptiRoot)

Definition at line 707 of file lxosapi.c.

Referenced by ossaTimeStamp(), and ostiTimeStamp64().

Here is the caller graph for this function:

◆ ostiTimeStamp64()

U64 ostiTimeStamp64 ( tiRoot_t ptiRoot)

Definition at line 713 of file lxosapi.c.

References ostiTimeStamp().

Referenced by ossaTimeStamp64().

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