# SRIO Functions
[SRIO]

## Functions

CSL_IDEF_INLINE void | CSL_SRIO_GetPID (CSL_SrioHandle hSrio, Uint32 *pid)
CSL_IDEF_INLINE void | CSL_SRIO_EnablePeripheral (CSL_SrioHandle hSrio)
CSL_IDEF_INLINE void | CSL_SRIO_DisablePeripheral (CSL_SrioHandle hSrio)
CSL_IDEF_INLINE void | CSL_SRIO_SetMAUSwappingMode (CSL_SrioHandle hSrio, Uint8 mode)
CSL_IDEF_INLINE void | CSL_SRIO_GetMAUSwappingMode (CSL_SrioHandle hSrio, Uint8 *mode)
CSL_IDEF_INLINE void | CSL_SRIO_SetLSUSwappingMode (CSL_SrioHandle hSrio, Uint8 mode)
CSL_IDEF_INLINE void | CSL_SRIO_GetLSUSwappingMode (CSL_SrioHandle hSrio, Uint8 *mode)
CSL_IDEF_INLINE void | CSL_SRIO_EnablePromiscuous (CSL_SrioHandle hSrio)
CSL_IDEF_INLINE void | CSL_SRIO_DisablePromiscuous (CSL_SrioHandle hSrio)
CSL_IDEF_INLINE Bool | CSL_SRIO_IsPromiscuous (CSL_SrioHandle hSrio)
CSL_IDEF_INLINE void | CSL_SRIO_SetAMUSwappingMode (CSL_SrioHandle hSrio, Uint8 mode)
CSL_IDEF_INLINE void | CSL_SRIO_GetAMUSwappingMode (CSL_SrioHandle hSrio, Uint8 *mode)
CSL_IDEF_INLINE void | CSL_SRIO_SetBootComplete (CSL_SrioHandle hSrio, Uint8 bootCompleteFlag)
CSL_IDEF_INLINE void | CSL_SRIO_GetBootComplete (CSL_SrioHandle hSrio, Uint8 *bootCompleteFlag)
CSL_IDEF_INLINE void | CSL_SRIO_SetTXURXUSwappingMode (CSL_SrioHandle hSrio, Uint8 mode)
CSL_IDEF_INLINE void | CSL_SRIO_GetTXURXUSwappingMode (CSL_SrioHandle hSrio, Uint8 *mode)
CSL_IDEF_INLINE void | CSL_SRIO_EnableAutomaticPriorityPromotion (CSL_SrioHandle hSrio)
CSL_IDEF_INLINE void | CSL_SRIO_DisableAutomaticPriorityPromotion (CSL_SrioHandle hSrio)
CSL_IDEF_INLINE Bool | CSL_SRIO_IsAutomaticPriorityPromotionEnabled (CSL_SrioHandle hSrio)
CSL_IDEF_INLINE void | CSL_SRIO_SetTxCreditThreshold (CSL_SrioHandle hSrio, Uint8 priority, Uint8 credit)
CSL_IDEF_INLINE void | CSL_SRIO_GetTxCreditThreshold (CSL_SrioHandle hSrio, Uint8 priority, Uint8 *credit)
CSL_IDEF_INLINE void | CSL_SRIO_SetTransactionPriority (CSL_SrioHandle hSrio, Uint8 priority)
CSL_IDEF_INLINE void | CSL_SRIO_GetTransactionPriority (CSL_SrioHandle hSrio, Uint8 *priority)
CSL_IDEF_INLINE void | CSL_SRIO_SetPrescalarSelect (CSL_SrioHandle hSrio, Uint8 prescalarSelect)
CSL_IDEF_INLINE void | CSL_SRIO_GetPrescalarSelect (CSL_SrioHandle hSrio, Uint8 *prescalarSelect)
CSL_IDEF_INLINE void | CSL_SRIO_SetResponseCRF (CSL_SrioHandle hSrio, Uint8 value)
CSL_IDEF_INLINE void | CSL_SRIO_GetResponseCRF (CSL_SrioHandle hSrio, Uint8 *value)
CSL_IDEF_INLINE void | CSL_SRIO_SetRXUWatermark (CSL_SrioHandle hSrio, Uint8 value)
CSL_IDEF_INLINE void | CSL_SRIO_GetRXUWatermark (CSL_SrioHandle hSrio, Uint8 *value)
CSL_IDEF_INLINE void | CSL_SRIO_SetSysClkSel (CSL_SrioHandle hSrio, Uint8 value)
CSL_IDEF_INLINE void | CSL_SRIO_GetSysClkSel (CSL_SrioHandle hSrio, Uint8 *value)
CSL_IDEF_INLINE void | CSL_SRIO_SetLoopbackMode (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_SetNormalMode (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE Bool | CSL_SRIO_IsLoopbackMode (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_EnableCOS (CSL_SrioHandle hSrio)
CSL_IDEF_INLINE void | CSL_SRIO_DisableCOS (CSL_SrioHandle hSrio)
CSL_IDEF_INLINE Bool | CSL_SRIO_IsCOSEnabled (CSL_SrioHandle hSrio)
CSL_IDEF_INLINE void | CSL_SRIO_GlobalEnable (CSL_SrioHandle hSrio)
CSL_IDEF_INLINE void | CSL_SRIO_GlobalDisable (CSL_SrioHandle hSrio)
CSL_IDEF_INLINE Bool | CSL_SRIO_IsSRIOEnabled (CSL_SrioHandle hSrio)
CSL_IDEF_INLINE void | CSL_SRIO_EnableBlock (CSL_SrioHandle hSrio, Uint16 blockNumber)
CSL_IDEF_INLINE void | CSL_SRIO_DisableBlock (CSL_SrioHandle hSrio, Uint16 blockNumber)
CSL_IDEF_INLINE Bool | CSL_SRIO_IsSRIOBlockEnabled (CSL_SrioHandle hSrio, Uint16 blockNumber)
CSL_IDEF_INLINE void | CSL_SRIO_SetDeviceID (CSL_SrioHandle hSrio, Uint8 index, Uint8 NodeId8bit, Uint16 NodeId16bit)
CSL_IDEF_INLINE void | CSL_SRIO_GetDeviceID (CSL_SrioHandle hSrio, Uint8 index, Uint8 *NodeId8bit, Uint16 *NodeId16bit)
CSL_IDEF_INLINE void | CSL_SRIO_SetPacketForwarding (CSL_SrioHandle hSrio, Uint8 index, Uint16 low16bitDeviceID, Uint16 up16bitDeviceID, Uint8 low8bitDeviceID, Uint8 up8bitDeviceID, Uint8 outPort)
CSL_IDEF_INLINE void | CSL_SRIO_GetPacketForwarding (CSL_SrioHandle hSrio, Uint8 index, Uint16 *low16bitDeviceID, Uint16 *up16bitDeviceID, Uint8 *low8bitDeviceID, Uint8 *up8bitDeviceID, Uint8 *outPort)
CSL_IDEF_INLINE void | CSL_SRIO_GetDoorbellPendingInterrupt (CSL_SrioHandle hSrio, Uint8 port, Uint16 *doorbellStatus)
CSL_IDEF_INLINE void | CSL_SRIO_ClearDoorbellPendingInterrupt (CSL_SrioHandle hSrio, Uint8 port, Uint16 doorbellInterrupt)
CSL_IDEF_INLINE void | CSL_SRIO_GetLSUPendingInterrupt (CSL_SrioHandle hSrio, Uint32 *lsuStatus1, Uint32 *lsuStatus2)
CSL_IDEF_INLINE void | CSL_SRIO_ClearLSUPendingInterrupt (CSL_SrioHandle hSrio, Uint32 lsuInterrupt1, Uint32 lsuInterrupt2)
CSL_IDEF_INLINE void | CSL_SRIO_ClearLSU0PendingInterrupt (CSL_SrioHandle hSrio, Uint32 lsuInterrupt)
CSL_IDEF_INLINE void | CSL_SRIO_GetErrorPendingInterrupt (CSL_SrioHandle hSrio, Uint32 *errStatus)
CSL_IDEF_INLINE void | CSL_SRIO_ClearErrorPendingInterrupt (CSL_SrioHandle hSrio, Uint32 errStatus)
CSL_IDEF_INLINE void | CSL_SRIO_GetAMUPendingInterrupt (CSL_SrioHandle hSrio, Uint16 *amuIntrStatus)
CSL_IDEF_INLINE void | CSL_SRIO_ClearAMUPendingInterrupt (CSL_SrioHandle hSrio, Uint16 amuIntrStatus)
CSL_IDEF_INLINE void | CSL_SRIO_RouteDoorbellInterrupts (CSL_SrioHandle hSrio, Uint8 regNum, Uint8 doorBellBit, Uint8 destination)
CSL_IDEF_INLINE void | CSL_SRIO_RouteLSUInterrupts (CSL_SrioHandle hSrio, Uint8 lsuIntrReq, Uint8 destination)
CSL_IDEF_INLINE void | CSL_SRIO_RouteErrorInterrupts (CSL_SrioHandle hSrio, Uint8 errIntrReq, Uint8 destination)
CSL_IDEF_INLINE void | CSL_SRIO_RouteAMUInterrupts (CSL_SrioHandle hSrio, Uint8 amuIntr, Uint8 destination)
CSL_IDEF_INLINE void | CSL_SRIO_GetDoorbellRoute (CSL_SrioHandle hSrio, Uint8 *routeInfo)
CSL_IDEF_INLINE void | CSL_SRIO_SetDoorbellRoute (CSL_SrioHandle hSrio, Uint8 routeInfo)
CSL_IDEF_INLINE void | CSL_SRIO_GetInterruptStatusDecode (CSL_SrioHandle hSrio, Uint8 intrDst, Uint32 *status)
CSL_IDEF_INLINE void | CSL_SRIO_EnableInterruptPacing (CSL_SrioHandle hSrio, Uint8 destination)
CSL_IDEF_INLINE void | CSL_SRIO_DisableInterruptPacing (CSL_SrioHandle hSrio, Uint8 destination)
CSL_IDEF_INLINE void | CSL_SRIO_SetInterruptPacing (CSL_SrioHandle hSrio, Uint8 destination, Uint32 rate)
CSL_IDEF_INLINE void | CSL_SRIO_GetInterruptRate (CSL_SrioHandle hSrio, Uint8 destination, Uint32 *rate)
CSL_IDEF_INLINE void | CSL_SRIO_SetType11PSInfo (Uint32 psInfo[2], Uint16 dstId, Uint16 srcId, Uint8 mbox, Uint8 letter, Uint8 tt, Uint8 ssize, Uint8 retryCount)
CSL_IDEF_INLINE void | CSL_SRIO_ExtractType11PSInfo (Uint32 psInfo[2], Uint16 *dstId, Uint16 *srcId, Uint8 *mbox, Uint8 *letter, Uint8 *tt, Uint8 *pri, Uint8 *cc)
CSL_IDEF_INLINE void | CSL_SRIO_MapMessageToQueue (CSL_SrioHandle hSrio, Uint8 index, SRIO_MESSAGE *ptrMessage, Uint16 queueId)
CSL_IDEF_INLINE void | CSL_SRIO_GetMessageToQueueMapping (CSL_SrioHandle hSrio, Uint8 index, SRIO_MESSAGE *ptrMessage, Uint16 *queueId)
CSL_IDEF_INLINE void | CSL_SRIO_SetType9PSInfo (Uint32 psInfo[2], Uint16 dstId, Uint16 srcId, Uint8 cos, Uint8 cosMask, Uint8 tt, Uint16 streamId)
CSL_IDEF_INLINE void | CSL_SRIO_ExtractType9PSInfo (Uint32 psInfo[2], Uint16 *dstId, Uint16 *srcId, Uint8 *cos, Uint8 *cc, Uint8 *tt, Uint8 *pri, Uint16 *streamId)
CSL_IDEF_INLINE void | CSL_SRIO_MapType9MessageToQueue (CSL_SrioHandle hSrio, Uint8 index, SRIO_TYPE9_MESSAGE *ptrMessage, Uint16 queueId)
CSL_IDEF_INLINE void | CSL_SRIO_GetType9MessageToQueueMapping (CSL_SrioHandle hSrio, Uint8 index, SRIO_TYPE9_MESSAGE *ptrMessage, Uint16 *queueId)
CSL_IDEF_INLINE void | CSL_SRIO_MapAMUPrivIdToSourceId (CSL_SrioHandle hSrio, Uint8 privId, Uint8 srcId)
CSL_IDEF_INLINE void | CSL_SRIO_GetAMUPrivIdToSourceIdMapping (CSL_SrioHandle hSrio, Uint8 privId, Uint8 *srcId)
CSL_IDEF_INLINE void | CSL_SRIO_MapVBUSPriorityToRIO (CSL_SrioHandle hSrio, Uint8 vbusPriority, Uint8 priority)
CSL_IDEF_INLINE void | CSL_SRIO_GetVBUSPriorityToRIOMapping (CSL_SrioHandle hSrio, Uint8 vbusPriority, Uint8 *priority)
CSL_IDEF_INLINE void | CSL_SRIO_GetAMUErrorCaptureInfo (CSL_SrioHandle hSrio, Uint32 *transAddress, Uint8 *privId, Uint8 *mstID, Uint16 *doorbellInfo)
CSL_IDEF_INLINE void | CSL_SRIO_SetAMUWindow (CSL_SrioHandle hSrio, Uint8 index, SRIO_AMU_WINDOW *amuWindow)
CSL_IDEF_INLINE void | CSL_SRIO_GetAMUWindow (CSL_SrioHandle hSrio, Uint8 index, SRIO_AMU_WINDOW *amuWindow)
CSL_IDEF_INLINE void | CSL_SRIO_SetAMUPane (CSL_SrioHandle hSrio, Uint8 index, SRIO_AMU_PANE *amuPane)
CSL_IDEF_INLINE void | CSL_SRIO_GetAMUPane (CSL_SrioHandle hSrio, Uint8 index, SRIO_AMU_PANE *amuPane)
CSL_IDEF_INLINE void | CSL_SRIO_SetAMUFlowMask (CSL_SrioHandle hSrio, Uint16 flowMask)
CSL_IDEF_INLINE void | CSL_SRIO_GetAMUFlowMask (CSL_SrioHandle hSrio, Uint16 *flowMask)
CSL_IDEF_INLINE void | CSL_SRIO_SetLSUTransfer (CSL_SrioHandle hSrio, Uint8 lsu, SRIO_LSU_TRANSFER *lsuTransfer)
CSL_IDEF_INLINE void | CSL_SRIO_SetLSUReg0 (CSL_SrioHandle hSrio, Uint8 lsu, Uint32 rapidIOMSB)
CSL_IDEF_INLINE void | CSL_SRIO_SetLSUReg1 (CSL_SrioHandle hSrio, Uint8 lsu, Uint32 rapidIOLSB)
CSL_IDEF_INLINE void | CSL_SRIO_SetLSUReg2 (CSL_SrioHandle hSrio, Uint8 lsu, Uint32 dspAddress)
CSL_IDEF_INLINE void | CSL_SRIO_SetLSUReg3 (CSL_SrioHandle hSrio, Uint8 lsu, Uint32 byteCount, Uint8 doorbellValid)
CSL_IDEF_INLINE void | CSL_SRIO_SetLSUReg4 (CSL_SrioHandle hSrio, Uint8 lsu, Uint16 dstId, Uint8 srcIdMap, Uint8 idSize, Uint8 outPortId, Uint8 priority, Uint8 xambs, Uint8 supGoodInt, Uint8 intRequest)
CSL_IDEF_INLINE void | CSL_SRIO_SetLSUReg5 (CSL_SrioHandle hSrio, Uint8 lsu, Uint8 ttype, Uint8 ftype, Uint8 hopCount, Uint16 doorbellInfo)
CSL_IDEF_INLINE Bool | CSL_SRIO_IsLSUFull (CSL_SrioHandle hSrio, Uint8 lsu)
CSL_IDEF_INLINE Bool | CSL_SRIO_IsLSUBusy (CSL_SrioHandle hSrio, Uint8 lsu)
CSL_IDEF_INLINE void | CSL_SRIO_GetLSUContextTransaction (CSL_SrioHandle hSrio, Uint8 lsu, Uint8 *context, Uint8 *transID)
CSL_IDEF_INLINE void | CSL_SRIO_CancelLSUTransaction (CSL_SrioHandle hSrio, Uint8 lsu, Uint8 privID)
CSL_IDEF_INLINE void | CSL_SRIO_RestartLSUTransaction (CSL_SrioHandle hSrio, Uint8 lsu)
CSL_IDEF_INLINE void | CSL_SRIO_FlushLSUTransaction (CSL_SrioHandle hSrio, Uint8 lsu, Uint8 srcIDMap)
CSL_IDEF_INLINE void | CSL_SRIO_SetLSUShadowRegs (CSL_SrioHandle hSrio, Uint32 shadowGrp0, Uint32 shadowGrp1)
CSL_IDEF_INLINE void | CSL_SRIO_GetLSUShadowRegs (CSL_SrioHandle hSrio, Uint8 index, Uint8 *count)
CSL_IDEF_INLINE void | CSL_SRIO_EnableSrcIDInterrupts (CSL_SrioHandle hSrio, Uint8 index)
CSL_IDEF_INLINE void | CSL_SRIO_DisableSrcIDInterrupts (CSL_SrioHandle hSrio, Uint8 index)
CSL_IDEF_INLINE void | CSL_SRIO_SetTimeoutCnt (CSL_SrioHandle hSrio, Uint8 timeoutCnt)
CSL_IDEF_INLINE void | CSL_SRIO_GetTimeoutCnt (CSL_SrioHandle hSrio, Uint8 *timeoutCnt)
CSL_IDEF_INLINE void | CSL_SRIO_GetLSUCompletionCode (CSL_SrioHandle hSrio, Uint8 lsu, Uint8 transID, Uint8 *compCode, Uint8 *contextBit)
CSL_IDEF_INLINE void | CSL_SRIO_SetLSUFlowMask (CSL_SrioHandle hSrio, Uint8 lsu, Uint16 flowMask)
CSL_IDEF_INLINE void | CSL_SRIO_GetLSUFlowMask (CSL_SrioHandle hSrio, Uint8 lsu, Uint16 *flowMask)
CSL_IDEF_INLINE void | CSL_SRIO_SetSupervisorPerms (CSL_SrioHandle hSrio, Uint16 supervisor16ID, Uint8 supervisor8ID)
CSL_IDEF_INLINE void | CSL_SRIO_GetSupervisorPerms (CSL_SrioHandle hSrio, Uint16 *supervisor16ID, Uint8 *supervisor8ID)
CSL_IDEF_INLINE void | CSL_SRIO_SetFlowControl (CSL_SrioHandle hSrio, Uint8 flowControlIdx, Uint8 tt, Uint16 dstID)
CSL_IDEF_INLINE void | CSL_SRIO_GetFlowControl (CSL_SrioHandle hSrio, Uint8 flowControlIdx, Uint8 *tt, Uint16 *dstID)
CSL_IDEF_INLINE void | CSL_SRIO_SetTxCPPIFlowMask (CSL_SrioHandle hSrio, Uint8 txCPPI, Uint16 flowMask)
CSL_IDEF_INLINE void | CSL_SRIO_GetTxCPPIFlowMask (CSL_SrioHandle hSrio, Uint8 txCPPI, Uint16 *flowMask)
CSL_IDEF_INLINE void | CSL_SRIO_SetTxQueueSchedInfo (CSL_SrioHandle hSrio, Uint8 txQueue, Uint8 portNum, Uint8 crf)
CSL_IDEF_INLINE void | CSL_SRIO_GetTxQueueSchedInfo (CSL_SrioHandle hSrio, Uint8 txQueue, Uint8 *portNum, Uint8 *priority, Uint8 *crf)
CSL_IDEF_INLINE void | CSL_SRIO_SetTxGarbageCollectionInfo (CSL_SrioHandle hSrio, Uint16 qidLength, Uint16 qidTimeout, Uint16 qidRetry, Uint16 qidTransErr, Uint16 qidProg, Uint16 qidSsize)
CSL_IDEF_INLINE void | CSL_SRIO_GetTxGarbageCollectionInfo (CSL_SrioHandle hSrio, Uint16 *qidLength, Uint16 *qidTimeout, Uint16 *qidRetry, Uint16 *qidTransErr, Uint16 *qidProg, Uint16 *qidSsize)
CSL_IDEF_INLINE void | CSL_SRIO_GetQMBaseAddress (CSL_SrioHandle hSrio, Uint8 qmIndex, Uint32 *qmBaseAddress)
CSL_IDEF_INLINE void | CSL_SRIO_SetQMBaseAddress (CSL_SrioHandle hSrio, Uint8 qmIndex, Uint32 qmBaseAddress)
CSL_IDEF_INLINE void | CSL_SRIO_GetDeviceInfo (CSL_SrioHandle hSrio, Uint16 *deviceId, Uint16 *deviceVendorId, Uint32 *deviceRev)
CSL_IDEF_INLINE void | CSL_SRIO_SetDeviceInfo (CSL_SrioHandle hSrio, Uint16 deviceId, Uint16 deviceVendorId, Uint32 deviceRev)
CSL_IDEF_INLINE void | CSL_SRIO_GetAssemblyInfo (CSL_SrioHandle hSrio, Uint16 *asblyId, Uint16 *asblyVendorId, Uint16 *asblyRev, Uint16 *extFeaturePtr)
CSL_IDEF_INLINE void | CSL_SRIO_SetAssemblyInfo (CSL_SrioHandle hSrio, Uint16 asblyId, Uint16 asblyVendorId, Uint16 asblyRev, Uint16 extFeaturePtr)
CSL_IDEF_INLINE void | CSL_SRIO_GetProcessingElementFeatures (CSL_SrioHandle hSrio, SRIO_PE_FEATURES *ptrPEFeatures)
CSL_IDEF_INLINE void | CSL_SRIO_SetProcessingElementFeatures (CSL_SrioHandle hSrio, SRIO_PE_FEATURES *ptrPEFeatures)
CSL_IDEF_INLINE void | CSL_SRIO_GetSwitchPortInfo (CSL_SrioHandle hSrio, Uint8 *numPorts, Uint8 *portNum)
CSL_IDEF_INLINE void | CSL_SRIO_GetSourceOperationCAR (CSL_SrioHandle hSrio, SRIO_OP_CAR *ptrSrcOp)
CSL_IDEF_INLINE void | CSL_SRIO_SetSourceOperationCAR (CSL_SrioHandle hSrio, SRIO_OP_CAR *ptrSrcOp)
CSL_IDEF_INLINE void | CSL_SRIO_GetDestOperationCAR (CSL_SrioHandle hSrio, SRIO_OP_CAR *ptrDstOp)
CSL_IDEF_INLINE void | CSL_SRIO_SetDestOperationCAR (CSL_SrioHandle hSrio, SRIO_OP_CAR *ptrDstOp)
CSL_IDEF_INLINE void | CSL_SRIO_GetDataStreamingInfo (CSL_SrioHandle hSrio, Uint16 *maxPDU, Uint16 *segSupport)
CSL_IDEF_INLINE void | CSL_SRIO_SetDataStreamingInfo (CSL_SrioHandle hSrio, Uint16 maxPDU, Uint16 segSupport)
CSL_IDEF_INLINE void | CSL_SRIO_GetDataStreamingType (CSL_SrioHandle hSrio, Uint8 *type)
CSL_IDEF_INLINE void | CSL_SRIO_GetDataStreamingMode (CSL_SrioHandle hSrio, Uint8 *mode)
CSL_IDEF_INLINE void | CSL_SRIO_SetDataStreamingMode (CSL_SrioHandle hSrio, Uint8 mode)
CSL_IDEF_INLINE void | CSL_SRIO_GetDataStreamingMTU (CSL_SrioHandle hSrio, Uint8 *mtu)
CSL_IDEF_INLINE void | CSL_SRIO_SetDataStreamingMTU (CSL_SrioHandle hSrio, Uint8 mtu)
CSL_IDEF_INLINE void | CSL_SRIO_SetPEExtendedAddressingControl (CSL_SrioHandle hSrio, Uint8 controlInfo)
CSL_IDEF_INLINE void | CSL_SRIO_GetPEExtendedAddressingControl (CSL_SrioHandle hSrio, Uint8 *controlInfo)
CSL_IDEF_INLINE void | CSL_SRIO_SetLocalConfig0SpaceInfo (CSL_SrioHandle hSrio, Uint16 baseInfo0, Uint16 baseInfo1)
CSL_IDEF_INLINE void | CSL_SRIO_GetLocalConfig0SpaceInfo (CSL_SrioHandle hSrio, Uint16 *baseInfo0, Uint16 *baseInfo1)
CSL_IDEF_INLINE void | CSL_SRIO_SetLocalConfig1SpaceInfo (CSL_SrioHandle hSrio, Uint8 baseInfo0, Uint32 baseInfo1)
CSL_IDEF_INLINE void | CSL_SRIO_GetLocalConfig1SpaceInfo (CSL_SrioHandle hSrio, Uint8 *baseInfo0, Uint32 *baseInfo1)
CSL_IDEF_INLINE void | CSL_SRIO_SetDeviceIDCSR (CSL_SrioHandle hSrio, Uint8 baseID8Bit, Uint16 baseID16Bit)
CSL_IDEF_INLINE void | CSL_SRIO_GetDeviceIDCSR (CSL_SrioHandle hSrio, Uint8 *baseID8Bit, Uint16 *baseID16Bit)
CSL_IDEF_INLINE void | CSL_SRIO_SetHostDeviceID (CSL_SrioHandle hSrio, Uint16 identifier)
CSL_IDEF_INLINE void | CSL_SRIO_GetHostDeviceID (CSL_SrioHandle hSrio, Uint16 *identifier)
CSL_IDEF_INLINE void | CSL_SRIO_SetCompTagCSR (CSL_SrioHandle hSrio, Uint32 ctag)
CSL_IDEF_INLINE void | CSL_SRIO_GetCompTagCSR (CSL_SrioHandle hSrio, Uint32 *ctag)
CSL_IDEF_INLINE void | CSL_SRIO_GetMaintBlockHeaderInfo (CSL_SrioHandle hSrio, Uint16 *extFeatPtr, Uint16 *extFeatID)
CSL_IDEF_INLINE void | CSL_SRIO_GetPortLinkTimeoutCSR (CSL_SrioHandle hSrio, Uint32 *timeout)
CSL_IDEF_INLINE void | CSL_SRIO_SetPortLinkTimeoutCSR (CSL_SrioHandle hSrio, Uint32 timeout)
CSL_IDEF_INLINE void | CSL_SRIO_GetPortResponseTimeoutCSR (CSL_SrioHandle hSrio, Uint32 *timeout)
CSL_IDEF_INLINE void | CSL_SRIO_SetPortResponseTimeoutCSR (CSL_SrioHandle hSrio, Uint32 timeout)
CSL_IDEF_INLINE void | CSL_SRIO_GetPortGeneralCSR (CSL_SrioHandle hSrio, Uint8 *hostDev, Uint8 *masterEn, Uint8 *disc)
CSL_IDEF_INLINE void | CSL_SRIO_SetPortGeneralCSR (CSL_SrioHandle hSrio, Uint8 hostDev, Uint8 masterEn, Uint8 disc)
CSL_IDEF_INLINE void | CSL_SRIO_SendPortLinkMaintRequest (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 cmd)
CSL_IDEF_INLINE Bool | CSL_SRIO_IsLinkResponseReceived (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_GetLinkResponseStatusInfo (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 *ackIdStatus, Uint8 *linkStatus)
CSL_IDEF_INLINE void | CSL_SRIO_ClearOutstandingACK (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_GetACKStatus (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 *inputAckID, Uint8 *outputUnAckID, Uint8 *outputAckID)
CSL_IDEF_INLINE void | CSL_SRIO_SetACKStatus (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 inputAckID, Uint8 outputAckID)
CSL_IDEF_INLINE void | CSL_SRIO_GetPortBaudRate (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 *baudSel)
CSL_IDEF_INLINE Bool | CSL_SRIO_IsAutomaticBaudRateDiscoverySupported (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE Bool | CSL_SRIO_Is1_25GBaudSupported (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_Enable1_25GBaud (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_Disable1_25GBaud (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE Bool | CSL_SRIO_Is2_5GBaudSupported (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_Enable2_5GBaud (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_Disable2_5GBaud (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE Bool | CSL_SRIO_Is3_125GBaudSupported (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_Enable3_125GBaud (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_Disable3_125GBaud (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE Bool | CSL_SRIO_Is5GBaudSupported (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_Enable5GBaud (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_Disable5GBaud (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE Bool | CSL_SRIO_Is6_25GBaudSupported (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_Enable6_25GBaud (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_Disable6_25GBaud (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_EnableDataScrambling (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_DisableDataScrambling (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE Bool | CSL_SRIO_IsRemoteTxEmphasisEnabled (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE Bool | CSL_SRIO_IsOutputPktDropped (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_ClearOutputPktDropped (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE Bool | CSL_SRIO_IsOutputFailed (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_ClearOutputFailed (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE Bool | CSL_SRIO_IsOutputDegraded (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_ClearOutputDegrade (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE Bool | CSL_SRIO_IsOutputRetryStopped (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_ClearOutputRetry (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE Bool | CSL_SRIO_IsOutputErrorStopped (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_ClearOutputErrorStopped (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE Bool | CSL_SRIO_IsInputErrorStopped (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_ClearInputErrorStopped (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE Bool | CSL_SRIO_IsPortWritePending (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_ClearPortWritePending (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE Bool | CSL_SRIO_IsPortAvailable (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE Bool | CSL_SRIO_IsPortFatalErrorDetected (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE Bool | CSL_SRIO_IsPortOk (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE Bool | CSL_SRIO_IsPortInitialized (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_GetSupportedPortWidth (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 *portWidth)
CSL_IDEF_INLINE void | CSL_SRIO_GetInitializedPortWidth (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 *portWidth)
CSL_IDEF_INLINE void | CSL_SRIO_GetSoftwarePortWidth (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 *portWidth)
CSL_IDEF_INLINE void | CSL_SRIO_SetSoftwarePortWidth (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 portWidth)
CSL_IDEF_INLINE void | CSL_SRIO_EnablePort (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_DisablePort (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE Bool | CSL_SRIO_IsPortEnabled (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_EnableOutputPort (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_DisableOutputPort (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE Bool | CSL_SRIO_IsOutputPortEnabled (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_EnableInputPort (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_DisableInputPort (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE Bool | CSL_SRIO_IsInputPortEnabled (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_EnablePortErrorChecking (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_DisablePortErrorChecking (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE Bool | CSL_SRIO_IsPortErrorCheckingEnabled (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_GetMulticastEventParticipant (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 *multicastEvent)
CSL_IDEF_INLINE void | CSL_SRIO_SetMulticastEventParticipant (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 multicastEvent)
CSL_IDEF_INLINE void | CSL_SRIO_EnablePortFlowControl (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_DisablePortFlowControl (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE Bool | CSL_SRIO_IsPortFlowControlEnabled (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_EnablePortFlowArbiteration (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_DisablePortFlowArbiteration (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE Bool | CSL_SRIO_IsPortFlowArbiterationEnabled (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_EnablePortStopFail (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_DisablePortStopFail (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE Bool | CSL_SRIO_IsPortStopFailEnabled (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_EnablePortDrop (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_DisablePortDrop (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE Bool | CSL_SRIO_IsPortDropEnabled (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_EnablePortLockout (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_DisablePortLockout (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE Bool | CSL_SRIO_IsPortLockedout (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_GetPortType (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 *portType)
CSL_IDEF_INLINE void | CSL_SRIO_GetErrorReportBlockHeader (CSL_SrioHandle hSrio, Uint16 *efPtr, Uint16 *efId)
CSL_IDEF_INLINE void | CSL_SRIO_GetErrorDetectCSR (CSL_SrioHandle hSrio, Uint32 *errDetect)
CSL_IDEF_INLINE void | CSL_SRIO_SetErrorDetectCSR (CSL_SrioHandle hSrio, Uint32 errDetect)
CSL_IDEF_INLINE void | CSL_SRIO_GetErrorEnable (CSL_SrioHandle hSrio, Uint32 *errEnable)
CSL_IDEF_INLINE void | CSL_SRIO_SetErrorEnable (CSL_SrioHandle hSrio, Uint32 errEnable)
CSL_IDEF_INLINE void | CSL_SRIO_GetHighAddressCapture (CSL_SrioHandle hSrio, Uint32 *hiAddress)
CSL_IDEF_INLINE void | CSL_SRIO_SetHighAddressCapture (CSL_SrioHandle hSrio, Uint32 hiAddress)
CSL_IDEF_INLINE void | CSL_SRIO_GetAddressCapture (CSL_SrioHandle hSrio, Uint32 *address, Uint8 *xamsbs)
CSL_IDEF_INLINE void | CSL_SRIO_SetAddressCapture (CSL_SrioHandle hSrio, Uint32 address, Uint8 xamsbs)
CSL_IDEF_INLINE void | CSL_SRIO_GetIDCapture (CSL_SrioHandle hSrio, Uint8 *msbdstId, Uint8 *lsbdstId, Uint8 *msbsrcId, Uint8 *lsbsrcId)
CSL_IDEF_INLINE void | CSL_SRIO_SetIDCapture (CSL_SrioHandle hSrio, Uint8 msbdstId, Uint8 lsbdstId, Uint8 msbsrcId, Uint8 lsbsrcId)
CSL_IDEF_INLINE void | CSL_SRIO_GetControlCapture (CSL_SrioHandle hSrio, Uint8 *ftype, Uint8 *ttype, Uint8 *msgInfo, Uint16 *implSpecific)
CSL_IDEF_INLINE void | CSL_SRIO_SetControlCapture (CSL_SrioHandle hSrio, Uint8 ftype, Uint8 ttype, Uint8 msgInfo, Uint16 implSpecific)
CSL_IDEF_INLINE void | CSL_SRIO_GetPortWriteDeviceId (CSL_SrioHandle hSrio, Uint8 *msbTargetId, Uint8 *lsbTargetID, Uint8 *lrgTrans)
CSL_IDEF_INLINE void | CSL_SRIO_SetPortWriteDeviceId (CSL_SrioHandle hSrio, Uint8 msbTargetId, Uint8 lsbTargetID, Uint8 lrgTrans)
CSL_IDEF_INLINE void | CSL_SRIO_GetPortError (CSL_SrioHandle hSrio, Uint8 portNum, Uint32 *errStatus)
CSL_IDEF_INLINE void | CSL_SRIO_ClearPortError (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_EnableImpSpecificPortError (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_DisableImpSpecificPortError (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_EnableControlSymBadCRCPortError (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_DisableControlSymBadCRCPortError (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_EnableUnexpectedAckIDPortError (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_DisableUnexpectedAckIDPortError (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_EnablePacketNotAcceptedPortError (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_DisablePacketNotAcceptedPortError (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_EnablePacketUnexpectedAckIdError (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_DisablePacketUnexpectedAckIdError (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_EnablePacketBadCRCError (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_DisablePacketBadCRCError (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_EnableIllegalSizePortError (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_DisableIllegalSizePortError (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_EnableDescramblingLOSPortError (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_DisableDescramblingLOSPortError (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_EnableIllegalAckIDPortError (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_DisableIllegalAckIDPortError (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_EnableProtocolPortError (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_DisableProtocolPortError (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_EnableDelineationPortError (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_DisableDelineationPortError (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_EnableIllegalCSPortError (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_DisableIllegalCSPortError (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_EnableLinkTimeoutPortError (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_GetErrorCaptureInfo (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 *infoType, Uint8 *errType, Uint32 *implDep, Uint8 *valCapt)
CSL_IDEF_INLINE void | CSL_SRIO_GetErrorCapture (CSL_SrioHandle hSrio, Uint8 portNum, Uint32 *errCap0, Uint32 *errCap1, Uint32 *errCap2, Uint32 *errCap3)
CSL_IDEF_INLINE void | CSL_SRIO_GetErrorRateCSR (CSL_SrioHandle hSrio, Uint8 portNum, SRIO_ERR_RATE *ptrErrorRate)
CSL_IDEF_INLINE void | CSL_SRIO_SetErrorRateCSR (CSL_SrioHandle hSrio, Uint8 portNum, SRIO_ERR_RATE *ptrErrorRate)
CSL_IDEF_INLINE void | CSL_SRIO_GetErrorRateThreshold (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 *errRateFailedThreshold, Uint8 *errRateDegradeThreshold)
CSL_IDEF_INLINE void | CSL_SRIO_SetErrorRateThreshold (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 errRateFailedThreshold, Uint8 errRateDegradeThreshold)
CSL_IDEF_INLINE void | CSL_SRIO_GetLaneStatus (CSL_SrioHandle hSrio, Uint8 portNum, SRIO_LANE_STATUS *ptrLaneStatus)
CSL_IDEF_INLINE void | CSL_SRIO_GetPortPLMImplSpecificControl (CSL_SrioHandle hSrio, Uint8 portNum, SRIO_PLM_IMPL_CONTROL *ptrPLMControl)
CSL_IDEF_INLINE void | CSL_SRIO_SetPLMPortImplSpecificControl (CSL_SrioHandle hSrio, Uint8 portNum, SRIO_PLM_IMPL_CONTROL *ptrPLMControl)
CSL_IDEF_INLINE void | CSL_SRIO_GetPLMPortPowerDownControl (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 *powerDownStatus)
CSL_IDEF_INLINE void | CSL_SRIO_SetPLMPortPowerDownControl (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 powerDownStatus)
CSL_IDEF_INLINE Bool | CSL_SRIO_IsPLMPortMaxDenialErrorSet (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_ClearPLMPortMaxDenialErrorSet (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE Bool | CSL_SRIO_IsPLMPortLinkInitialized (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_ClearPLMPortLinkInitialized (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE Bool | CSL_SRIO_IsPLMPortDeadLink (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_ClearPLMPortDeadLink (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE Bool | CSL_SRIO_IsPLMPortError (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_ClearPLMPortError (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE Bool | CSL_SRIO_IsPLMPortOutputFail (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_ClearPLMPortOutputFail (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE Bool | CSL_SRIO_IsPLMPortOutputDegrade (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_ClearPLMPortOutputDegrade (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE Bool | CSL_SRIO_IsPLMPortMulticastCSDetected (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_ClearPLMPortMulticastCS (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_GetPLMPortInterrupts (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 *intStatus)
CSL_IDEF_INLINE void | CSL_SRIO_SetPLMPortInterrupts (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 intStatus)
CSL_IDEF_INLINE void | CSL_SRIO_GetPLMPortWriteEnables (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 *portWriteStatus)
CSL_IDEF_INLINE void | CSL_SRIO_SetPLMPortWriteEnables (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 portWriteStatus)
CSL_IDEF_INLINE void | CSL_SRIO_GetPLMPortEventGenerate (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 *eventStatus)
CSL_IDEF_INLINE void | CSL_SRIO_SetPLMPortEventGenerate (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 eventStatus)
CSL_IDEF_INLINE void | CSL_SRIO_EnablePLMPortAllInterrupts (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_DisablePLMPortAllInterrupts (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE Bool | CSL_SRIO_IsPLMPortAllInterruptsEnabled (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_EnablePLMPortAllPortWrites (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_DisablePLMPortAllPortWrites (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE Bool | CSL_SRIO_IsPLMPortAllPortWritesEnabled (CSL_SrioHandle hSrio, Uint8 portNum)
CSL_IDEF_INLINE void | CSL_SRIO_GetPLMPortPathControl (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 *pathID, Uint8 *pathConfig, Uint8 *pathMode)
CSL_IDEF_INLINE void | CSL_SRIO_SetPLMPortPathControlMode (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 pathMode)
CSL_IDEF_INLINE void | CSL_SRIO_GetPLMPortDiscoveryTimer (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 *portDiscoveryTimer)
CSL_IDEF_INLINE void | CSL_SRIO_SetPLMPortDiscoveryTimer (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 portDiscoveryTimer)
CSL_IDEF_INLINE void | CSL_SRIO_GetPLMPortSilenceTimer (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 *portSilenceTimer)
CSL_IDEF_INLINE void | CSL_SRIO_SetPLMPortSilenceTimer (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 portSilenceTimer)
CSL_IDEF_INLINE void | CSL_SRIO_GetPLMPortVMinExponentConfig (CSL_SrioHandle hSrio, Uint8 portNum, SRIO_PLM_VMIN_EXPONENT *ptrVminExponent)
CSL_IDEF_INLINE void | CSL_SRIO_SetPLMPortVMinExponentConfig (CSL_SrioHandle hSrio, Uint8 portNum, SRIO_PLM_VMIN_EXPONENT *ptrVminExponent)
CSL_IDEF_INLINE void | CSL_SRIO_GetPLMPortPolarityControl (CSL_SrioHandle hSrio, Uint8 portNum, SRIO_PLM_POLARITY_CONTROL *ptrPolarityConfig)
CSL_IDEF_INLINE void | CSL_SRIO_SetPLMPortPolarityControl (CSL_SrioHandle hSrio, Uint8 portNum, SRIO_PLM_POLARITY_CONTROL *ptrPolarityConfig)
CSL_IDEF_INLINE void | CSL_SRIO_GetPLMPortPacketDenialControl (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 *cntPacketNotAccepted, Uint8 *cntRetry, Uint8 *denialThreshold)
CSL_IDEF_INLINE void | CSL_SRIO_SetPLMPortPacketDenialControl (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 cntPacketNotAccepted, Uint8 cntRetry, Uint8 denialThreshold)
CSL_IDEF_INLINE void | CSL_SRIO_GetPLMPortMECSStatus (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 *cmd)
CSL_IDEF_INLINE void | CSL_SRIO_ClearPLMPortMECSStatus (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 cmd)
CSL_IDEF_INLINE void | CSL_SRIO_GetPLMPortMECSForwarding (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 *subscription)
CSL_IDEF_INLINE void | CSL_SRIO_SetPLMPortMECSForwarding (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 subscription)
CSL_IDEF_INLINE void | CSL_SRIO_GetPLMPortCSTransmit (CSL_SrioHandle hSrio, Uint8 portNum, SRIO_PLM_CONTROL_SYMBOL *ptrCSTransmit)
CSL_IDEF_INLINE void | CSL_SRIO_SetPLMPortCSTransmit (CSL_SrioHandle hSrio, Uint8 portNum, SRIO_PLM_CONTROL_SYMBOL *ptrCSTransmit)
CSL_IDEF_INLINE void | CSL_SRIO_GetTLMPortControl (CSL_SrioHandle hSrio, Uint8 portNum, SRIO_TLM_CONTROL *ptrTLMControl)
CSL_IDEF_INLINE void | CSL_SRIO_SetTLMPortControl (CSL_SrioHandle hSrio, Uint8 portNum, SRIO_TLM_CONTROL *ptrTLMControl)
CSL_IDEF_INLINE void | CSL_SRIO_GetTLMPortStatus (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 *igBadVC, Uint8 *igBrrFilter)
CSL_IDEF_INLINE void | CSL_SRIO_ClearTLMPortStatus (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 igBadVC, Uint8 igBrrFilter)
CSL_IDEF_INLINE void | CSL_SRIO_GetTLMPortInterrupts (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 *igBadVC, Uint8 *igBrrFilter)
CSL_IDEF_INLINE void | CSL_SRIO_SetTLMPortInterrupts (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 igBadVC, Uint8 igBrrFilter)
CSL_IDEF_INLINE void | CSL_SRIO_GetTLMPortWriteEnable (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 *igBadVC, Uint8 *igBrrFilter)
CSL_IDEF_INLINE void | CSL_SRIO_SetTLMPortWriteEnable (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 igBadVC, Uint8 igBrrFilter)
CSL_IDEF_INLINE void | CSL_SRIO_SetTLMPortEventGenerate (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 igBadVC, Uint8 igBrrFilter)
CSL_IDEF_INLINE void | CSL_SRIO_GetTLMPortBaseRoutingInfo (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 brrNum, Uint8 *enableStatus, Uint8 *maintRouting, Uint8 *privateStatus)
CSL_IDEF_INLINE void | CSL_SRIO_SetTLMPortBaseRoutingInfo (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 brrNum, Uint8 enableStatus, Uint8 maintRouting, Uint8 privateStatus)
CSL_IDEF_INLINE void | CSL_SRIO_GetTLMPortBaseRoutingPatternMatch (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 brrNum, Uint16 *pattern, Uint16 *match)
CSL_IDEF_INLINE void | CSL_SRIO_SetTLMPortBaseRoutingPatternMatch (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 brrNum, Uint16 pattern, Uint16 match)
CSL_IDEF_INLINE void | CSL_SRIO_GetPBMPortControl (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 *egReorderMode, Uint8 *egReorderStick)
CSL_IDEF_INLINE void | CSL_SRIO_SetPBMPortControl (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 egReorderMode, Uint8 egReorderStick)
CSL_IDEF_INLINE void | CSL_SRIO_GetPBMPortStatus (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 *igEmpty, Uint8 *egEmpty, Uint8 *egDataOverflow, Uint8 *egCRQOverflow, Uint8 *egBadChannel, Uint8 *egBabblePacket)
CSL_IDEF_INLINE void | CSL_SRIO_ClearPBMPortStatus (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 egDataOverflow, Uint8 egCRQOverflow, Uint8 egBadChannel, Uint8 egBabblePacket)
CSL_IDEF_INLINE void | CSL_SRIO_GetPBMPortInterrupts (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 *egDataOverflow, Uint8 *egCRQOverflow, Uint8 *egBadChannel, Uint8 *egBabblePacket)
CSL_IDEF_INLINE void | CSL_SRIO_SetPBMPortInterrupts (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 egDataOverflow, Uint8 egCRQOverflow, Uint8 egBadChannel, Uint8 egBabblePacket)
CSL_IDEF_INLINE void | CSL_SRIO_GetPBMPortWriteEnables (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 *egDataOverflow, Uint8 *egCRQOverflow, Uint8 *egBadChannel, Uint8 *egBabblePacket)
CSL_IDEF_INLINE void | CSL_SRIO_SetPBMPortWriteEnables (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 egDataOverflow, Uint8 egCRQOverflow, Uint8 egBadChannel, Uint8 egBabblePacket)
CSL_IDEF_INLINE void | CSL_SRIO_GetPBMPortEventGenerate (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 *egDataOverflow, Uint8 *egCRQOverflow, Uint8 *egBadChannel, Uint8 *egBabblePacket)
CSL_IDEF_INLINE void | CSL_SRIO_SetPBMPortEventGenerate (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 egDataOverflow, Uint8 egCRQOverflow, Uint8 egBadChannel, Uint8 egBabblePacket)
CSL_IDEF_INLINE void | CSL_SRIO_GetPBMPortIngressResources (CSL_SrioHandle hSrio, Uint8 portNum, Uint16 *dataNodes, Uint16 *tags)
CSL_IDEF_INLINE void | CSL_SRIO_GetPBMPortEgressResources (CSL_SrioHandle hSrio, Uint8 portNum, Uint16 *dataNodes, Uint8 *crqEntries)
CSL_IDEF_INLINE void | CSL_SRIO_GetPBMPortIngressPriorityWatermark (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 priority, Uint16 *crfWatermark, Uint16 *priWatermark)
CSL_IDEF_INLINE void | CSL_SRIO_SetPBMPortIngressPriorityWatermark (CSL_SrioHandle hSrio, Uint8 portNum, Uint8 priority, Uint16 crfWatermark, Uint16 priWatermark)
CSL_IDEF_INLINE void | CSL_SRIO_GetEventMgmtInterruptStatus (CSL_SrioHandle hSrio, Uint32 *intStatus)
CSL_IDEF_INLINE void | CSL_SRIO_GetEventMgmtInterrupts (CSL_SrioHandle hSrio, Uint8 *log, Uint8 *mecs, Uint8 *pwRx, Uint8 *localLog)
CSL_IDEF_INLINE void | CSL_SRIO_SetEventMgmtInterrupts (CSL_SrioHandle hSrio, Uint8 log, Uint8 mecs, Uint8 pwRx, Uint8 localLog)
CSL_IDEF_INLINE void | CSL_SRIO_GetEventMgmtInterruptPortStatus (CSL_SrioHandle hSrio, Uint8 *irqPending)
CSL_IDEF_INLINE void | CSL_SRIO_GetEventMgmtPortWriteStatus (CSL_SrioHandle hSrio, Uint8 *port, Uint8 *log, Uint8 *rcs, Uint8 *multiportErr, Uint8 *localLog)
CSL_IDEF_INLINE void | CSL_SRIO_GetEventMgmtPortWriteEnable (CSL_SrioHandle hSrio, Uint8 *log, Uint8 *localLog)
CSL_IDEF_INLINE void | CSL_SRIO_SetEventMgmtPortWriteEnable (CSL_SrioHandle hSrio, Uint8 log, Uint8 localLog)
CSL_IDEF_INLINE void | CSL_SRIO_GetEventMgmtPortWritePendingStatus (CSL_SrioHandle hSrio, Uint8 *pwPending)
CSL_IDEF_INLINE void | CSL_SRIO_EnableEventMgmtInterrupts (CSL_SrioHandle hSrio)
CSL_IDEF_INLINE void | CSL_SRIO_DisableEventMgmtInterrupts (CSL_SrioHandle hSrio)
CSL_IDEF_INLINE Bool | CSL_SRIO_IsEventMgmtInterruptsEnabled (CSL_SrioHandle hSrio)
CSL_IDEF_INLINE void | CSL_SRIO_EnableEventMgmtPortWrite (CSL_SrioHandle hSrio)
CSL_IDEF_INLINE void | CSL_SRIO_DisableEventMgmtPortWrite (CSL_SrioHandle hSrio)
CSL_IDEF_INLINE Bool | CSL_SRIO_IsEventMgmtPortWriteEnabled (CSL_SrioHandle hSrio)
CSL_IDEF_INLINE void | CSL_SRIO_GetEventMgmtMECSStatus (CSL_SrioHandle hSrio, Uint8 *mecsStatus)
CSL_IDEF_INLINE void | CSL_SRIO_ClearEventMgmtMECSStatus (CSL_SrioHandle hSrio, Uint8 mecsStatus)
CSL_IDEF_INLINE void | CSL_SRIO_GetEventMgmtMECSInterrupt (CSL_SrioHandle hSrio, Uint8 *mecsStatus)
CSL_IDEF_INLINE void | CSL_SRIO_SetEventMgmtMECSInterrupt (CSL_SrioHandle hSrio, Uint8 mecsStatus)
CSL_IDEF_INLINE void | CSL_SRIO_GetEventMgmtMECSCaptureOut (CSL_SrioHandle hSrio, Uint8 *cmdEn)
CSL_IDEF_INLINE void | CSL_SRIO_SetEventMgmtMECSCaptureOut (CSL_SrioHandle hSrio, Uint8 cmdEn)
CSL_IDEF_INLINE void | CSL_SRIO_GetEventMgmtMECSTriggerIn (CSL_SrioHandle hSrio, Uint8 *cmdStat, Uint8 *cmdEn)
CSL_IDEF_INLINE void | CSL_SRIO_SetEventMgmtMECSTriggerIn (CSL_SrioHandle hSrio, Uint8 cmdStat, Uint8 cmdEn)
CSL_IDEF_INLINE void | CSL_SRIO_GetEventMgmtMECSRequest (CSL_SrioHandle hSrio, Uint8 *sendStatus, Uint8 *cmd)
CSL_IDEF_INLINE void | CSL_SRIO_SetEventMgmtMECSRequest (CSL_SrioHandle hSrio, Uint8 sendStatus, Uint8 cmd)
CSL_IDEF_INLINE void | CSL_SRIO_GetEventMgmtMECSPortStatus (CSL_SrioHandle hSrio, Uint8 *port)
CSL_IDEF_INLINE void | CSL_SRIO_SetEventMgmtMECSPortStatus (CSL_SrioHandle hSrio, Uint8 port)
CSL_IDEF_INLINE void | CSL_SRIO_GetEventMgmtCmdStatus (CSL_SrioHandle hSrio, Uint8 *cmdStat)
CSL_IDEF_INLINE void | CSL_SRIO_SetEventMgmtCmdStatus (CSL_SrioHandle hSrio, Uint8 cmdStat)
CSL_IDEF_INLINE void | CSL_SRIO_GetEventMgmtResetRequest (CSL_SrioHandle hSrio, Uint8 *rstReq)
CSL_IDEF_INLINE void | CSL_SRIO_SetEventMgmtResetRequest (CSL_SrioHandle hSrio, Uint8 rstReq)
CSL_IDEF_INLINE void | CSL_SRIO_GetEventMgmtResetRequestInterrupt (CSL_SrioHandle hSrio, Uint8 *rstIntEn)
CSL_IDEF_INLINE void | CSL_SRIO_SetEventMgmtResetRequestInterrupt (CSL_SrioHandle hSrio, Uint8 rstIntEn)
CSL_IDEF_INLINE void | CSL_SRIO_GetEventMgmtResetRequestPortWrite (CSL_SrioHandle hSrio, Uint8 *rstPwEn)
CSL_IDEF_INLINE void | CSL_SRIO_SetEventMgmtResetRequestPortWrite (CSL_SrioHandle hSrio, Uint8 rstPwEn)
CSL_IDEF_INLINE void | CSL_SRIO_GetPortWriteControl (CSL_SrioHandle hSrio, Uint8 *pwTimer, Uint8 *pwcMode)
CSL_IDEF_INLINE void | CSL_SRIO_SetPortWriteControl (CSL_SrioHandle hSrio, Uint8 pwTimer, Uint8 pwcMode)
CSL_IDEF_INLINE void | CSL_SRIO_GetPortWriteRouting (CSL_SrioHandle hSrio, Uint8 *port)
CSL_IDEF_INLINE void | CSL_SRIO_SetPortWriteRouting (CSL_SrioHandle hSrio, Uint8 port)
CSL_IDEF_INLINE void | CSL_SRIO_GetPortWriteReceptionStatus (CSL_SrioHandle hSrio, Uint8 *wrSize, Uint8 *wdPtr, Uint8 *pwDisc, Uint8 *pwVal)
CSL_IDEF_INLINE void | CSL_SRIO_GetPortWriteEventGenerate (CSL_SrioHandle hSrio, Uint8 *pwDisc, Uint8 *pwVal)
CSL_IDEF_INLINE void | CSL_SRIO_SetPortWriteEventGenerate (CSL_SrioHandle hSrio, Uint8 pwDisc, Uint8 pwVal)
CSL_IDEF_INLINE void | CSL_SRIO_GetPortWriteReceptionCapture (CSL_SrioHandle hSrio, Uint32 *cap0, Uint32 *cap1, Uint32 *cap2, Uint32 *cap3)
CSL_IDEF_INLINE void | CSL_SRIO_SetPortWriteReceptionCapture (CSL_SrioHandle hSrio, Uint8 port, Uint32 cap)
CSL_IDEF_INLINE void | CSL_SRIO_GetPortNumberInfo (CSL_SrioHandle hSrio, Uint8 *portNum, Uint8 *totalPort)
CSL_IDEF_INLINE void | CSL_SRIO_GetLLMPortIPPrescalar (CSL_SrioHandle hSrio, Uint8 *prescalarClock)
CSL_IDEF_INLINE void | CSL_SRIO_SetLLMPortIPPrescalar (CSL_SrioHandle hSrio, Uint8 prescalarClock)
CSL_IDEF_INLINE void | CSL_SRIO_GetLLMResetControl (CSL_SrioHandle hSrio, Uint8 *clearSticky)
CSL_IDEF_INLINE void | CSL_SRIO_SetLLMResetControl (CSL_SrioHandle hSrio, Uint8 clearSticky)
CSL_IDEF_INLINE void | CSL_SRIO_GetErrorDetect (CSL_SrioHandle hSrio, Uint8 *illID, Uint8 *illType)
CSL_IDEF_INLINE void | CSL_SRIO_SetErrorDetect (CSL_SrioHandle hSrio, Uint8 illID, Uint8 illType)
CSL_IDEF_INLINE void | CSL_SRIO_GetErrorDetectEnable (CSL_SrioHandle hSrio, Uint8 *illID, Uint8 *illType)
CSL_IDEF_INLINE void | CSL_SRIO_SetErrorDetectEnable (CSL_SrioHandle hSrio, Uint8 illID, Uint8 illType)
CSL_IDEF_INLINE void | CSL_SRIO_GetHiAddressCapture (CSL_SrioHandle hSrio, Uint32 *address)
CSL_IDEF_INLINE void | CSL_SRIO_GetLoAddressCapture (CSL_SrioHandle hSrio, Uint32 *address, Uint8 *xambs)
CSL_IDEF_INLINE void | CSL_SRIO_ClearLoAddressCapture (CSL_SrioHandle hSrio)
CSL_IDEF_INLINE void | CSL_SRIO_GetDeviceIDCapture (CSL_SrioHandle hSrio, Uint8 *msbDstID, Uint8 *lsbDstID, Uint8 *msbSrcID, Uint8 *lsbSrcID)
CSL_IDEF_INLINE void | CSL_SRIO_ClearDeviceIDCapture (CSL_SrioHandle hSrio)
CSL_IDEF_INLINE void | CSL_SRIO_GetLocalControlCapture (CSL_SrioHandle hSrio, Uint8 *ftype, Uint8 *ttype, Uint8 *msgInfo)
CSL_IDEF_INLINE void | CSL_SRIO_ClearLocalControlCapture (CSL_SrioHandle hSrio)
CSL_IDEF_INLINE void | CSL_SRIO_GetFabricControlStatus (CSL_SrioHandle hSrio, Uint8 *igLLMBackPressure, Uint8 *igUCBackPressure)
CSL_IDEF_INLINE void | CSL_SRIO_GetFabricControlPortStatus (CSL_SrioHandle hSrio, Uint8 port, Uint8 *igPktEnableStatus, Uint8 *egPktEnableStatus)

## Function Documentation

CSL_IDEF_INLINE void CSL_SRIO_CancelLSUTransaction | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | lsu,
|  | Uint8 | privID |
| ) |  |  |

============================================================================
CSL_SRIO_CancelLSUTransaction

Description
The function is used to cancel an LSU Transaction previously submitted.

Arguments

              hSrio             Handle of the SRIO device
              lsu               LSU Index
              privID            Priv ID of the original transaction submitter.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_LSU_REG6_CBUSY = 1,
SRIO_RIO_LSU_REG6_PRIVID

Example

            CSL_SrioHandle     hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);
            ...
            // Cancel the LSU Transaction for LSU 0 for PRIV-ID 1
            CSL_SRIO_CancelLSUTransaction (hSrio, 0, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_ClearAMUPendingInterrupt | ( | CSL_SrioHandle | hSrio,
|  | Uint16 | amuIntrStatus |
| ) |  |  |

============================================================================
CSL_SRIO_ClearAMUPendingInterrupt

Description
The function clears the AMU pending interrupts.

Arguments

              hSrio             Handle of the SRIO device
              amuIntrStatus     AMU pending interrupt status to be cleared.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_AMU_ICCR_CPRIVID

Affects
SRIO_RIO_AMU_ICSR_CPRIVID=0

Example

            CSL_SrioHandle  hSrio;
            Uint16          amuIntrStatus;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the pending AMU interrupt status
            CSL_SRIO_GetAMUPendingInterrupt (hSrio, &amuIntrStatus);
            if (amuIntrStatus != 0)
            {
                // Pending AMU interrupts detected.
                ...
                // Clear the pending interrupts.
                CSL_SRIO_ClearAMUPendingInterrupt (hSrio, amuIntrStatus);
            }
            else
            {
                // No AMU interrupts were pending.
            }
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_ClearDeviceIDCapture | ( | CSL_SrioHandle | hSrio | ) |

============================================================================
CSL_SRIO_ClearDeviceIDCapture

Description
The function is used to clear the Device ID capture CSR information

Arguments

              hSrio             Handle of the SRIO device

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_LOCAL_ID_CAPT=0

Example

            CSL_SrioHandle      hSrio;
            Uint8               msbDstID;
            Uint8               lsbDstID;
            Uint8               msbSrcID;
            Uint8               lsbSrcID;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Device ID Capture information
            CSL_SRIO_GetDeviceIDCapture(hSrio, &msbDstID, &lsbDstID, &msbSrcID, &lsbSrcID);
            ...
            // Clear the Address capture information
            CSL_SRIO_ClearDeviceIDCapture(hSrio);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_ClearDoorbellPendingInterrupt | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | port,
|  | Uint16 | doorbellInterrupt |
| ) |  |  |

============================================================================
CSL_SRIO_ClearDoorbellPendingInterrupt

Description
The function clears a specific door bell interrupt in the specified door bell interrupt register.

Arguments

              hSrio             Handle of the SRIO device
              port              SRIO Port (Zero Based) for which the doorbell status is required.
              doorbellInterrupt Door Bell Interrupt to be cleared.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_DOORBELL_ICCR

Affects
SRIO_RIO_DOORBELL_ICSR_RIO_DOORBELL=0

Example

            CSL_SrioHandle  hSrio;
            Uint16          doorbellStatus;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the status of doorbell interrupts for port 0
            CSL_SRIO_GetDoorbellPendingInterrupt (hSrio, 0, &doorbellStatus);
            if (doorbellStatus != 0)
            {
                // Door bell Interrupts were pending and need to be serviced.
                ...
                // Clear the Door Bell Pending Interrupts.
                CSL_SRIO_ClearDoorbellPendingInterrupt (hSrio, 0, doorbellStatus);
            }
            else
            {
                // There are no door bell interrupts pending.
            }
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_ClearErrorPendingInterrupt | ( | CSL_SrioHandle | hSrio,
|  | Uint32 | errStatus |
| ) |  |  |

============================================================================
CSL_SRIO_ClearErrorPendingInterrupt

Description
The function clears the pending error interrupts

Arguments

              hSrio             Handle of the SRIO device
              errStatus         Error Status to be cleared.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_ERR_RST_EVNT_ICCR_MCAST_INT_RECEIVED, SRIO_RIO_ERR_RST_EVNT_ICCR_PORT_WRITE_IN_REQUEST_RECEIVED, SRIO_RIO_ERR_RST_EVNT_ICCR_LOGICAL_LAYER_ERROR_MANAGEMENT_EVENT_CAPTURE, SRIO_RIO_ERR_RST_EVNT_ICCR_PORT0_ERROR, SRIO_RIO_ERR_RST_EVNT_ICCR_PORT1_ERROR, SRIO_RIO_ERR_RST_EVNT_ICCR_PORT2_ERROR, SRIO_RIO_ERR_RST_EVNT_ICCR_PORT3_ERROR, SRIO_RIO_ERR_RST_EVNT_ICCR_DEVICE_RST_INT

Affects
SRIO_RIO_ERR_RST_EVNT_ICSR_MCAST_INT_RECEIVED=0, SRIO_RIO_ERR_RST_EVNT_ICSR_PORT_WRITE_IN_RECEIVED=0, SRIO_RIO_ERR_RST_EVNT_ICSR_LLERR_CAPTURE=0, SRIO_RIO_ERR_RST_EVNT_ICSR_PORT0_ERR=0, SRIO_RIO_ERR_RST_EVNT_ICSR_PORT1_ERR=0, SRIO_RIO_ERR_RST_EVNT_ICSR_PORT2_ERR=0, SRIO_RIO_ERR_RST_EVNT_ICSR_PORT3_ERR=0, SRIO_RIO_ERR_RST_EVNT_ICSR_DEVICE_RST_INT=0

Example

            CSL_SrioHandle  hSrio;
            Uint32          errStatus;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get any pending error status.
            CSL_SRIO_GetErrorPendingInterrupt (hSrio,&errStatus);
            if (errStatus != 0)
            {
                // Pending error interrupts detected.
                ...
                // Clear the pending interrupts.
                CSL_SRIO_ClearErrorPendingInterrupt (hSrio, errStatus);
            }
            else
            {
                // No pending error status
            }
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_ClearEventMgmtMECSStatus | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | mecsStatus |
| ) |  |  |

============================================================================
CSL_SRIO_ClearEventMgmtMECSStatus

Description
The function is used to clear the event management MECS status

Arguments

              hSrio         Handle of the SRIO device
              mecsStatus    MECS Command received by any SRIO port

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_EM_MECS_STAT_CMD_STAT

Affects
SRIO_RIO_EM_MECS_STAT_CMD_STAT=0

Example

            CSL_SrioHandle      hSrio;
            Uint8               mecsStatus;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Event Management MECS Status
            CSL_SRIO_GetEventMgmtMECSStatus(hSrio, &mecsStatus);
            if (mecsStatus != 0)
            {
                // MECS with a command has been received.
                ...
                // Clear the MECS Event Management Status
                CSL_SRIO_ClearEventMgmtMECSStatus (hSrio, mecsStatus);
            }
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_ClearInputErrorStopped | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_ClearInputErrorStopped

Description
The function is used to clear the status of the input port after the input error stopped condition was detected.

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_ERR_STAT_INPUT_ERR_ENCTR=1

Affects
SRIO_RIO_SP_ERR_STAT_INPUT_ERR_STOPPED=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Check if Port1 has detected an INPUT Error stopped condition?
            if (CSL_SRIO_IsInputErrorStopped (hSrio, 1) == TRUE)
            {
                // Port1 has detected an INPUT Error stopped condition
                ...
                // Clear this error condition
                CSL_SRIO_ClearInputErrorStopped (hSrio, 1);
            }
            else
            {
                // Port1 has NOT detected an INPUT Error stopped condition
            }
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_ClearLoAddressCapture | ( | CSL_SrioHandle | hSrio | ) |

============================================================================
CSL_SRIO_ClearLoAddressCapture

Description
The function is used to clear the Low Address capture CSR information.

Arguments

              hSrio             Handle of the SRIO device

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_LOCAL_ADDR_CAPT=0

Example

            CSL_SrioHandle      hSrio;
            Uint32              address;
            Uint8               xambs;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Address Capture Information
            CSL_SRIO_GetLoAddressCapture(hSrio, &address, &xambs);
            ...
            // Clear the Address capture information
            CSL_SRIO_ClearLoAddressCapture(hSrio);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_ClearLocalControlCapture | ( | CSL_SrioHandle | hSrio | ) |

============================================================================
CSL_SRIO_ClearLocalControlCapture

Description
The function is used to clear the Local Control capture CSR information

Arguments

              hSrio             Handle of the SRIO device

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_LOCAL_CTRL_CAPT=0

Example

            CSL_SrioHandle      hSrio;
            Uint8               ftype;
            Uint8               ttype;
            Uint8               msgInfo;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Local control Capture information
            CSL_SRIO_GetLocalControlCapture(hSrio, &ftype, &ttype, &msgInfo);
            ...
            // Clear the local control capture
            CSL_SRIO_ClearLocalControlCapture(hSrio);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_ClearLSU0PendingInterrupt | ( | CSL_SrioHandle | hSrio,
|  | Uint32 | lsuInterrupt |
| ) |  |  |

============================================================================
CSL_SRIO_ClearLSU0PendingInterrupt

Description
The function clears the LSU0 pending interrupt

Arguments

              hSrio             Handle of the SRIO device
              lsuInterrupt      LSU Interrupt to be cleared.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_LSU_ICCR

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);
            ...
            // Clear the ICS0 indicating that the SRCID0 Transaction was successfully complete.
            CSL_SRIO_ClearLSU0PendingInterrupt (hSrio, 0x1);

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_ClearLSUPendingInterrupt | ( | CSL_SrioHandle | hSrio,
|  | Uint32 | lsuInterrupt1,
|  | Uint32 | lsuInterrupt2 |
| ) |  |  |

============================================================================
CSL_SRIO_ClearLSUPendingInterrupt

Description
The function clears the LSU pending interrupt

Arguments

              hSrio             Handle of the SRIO device
              lsuInterrupt1     LSU Interrupt to be cleared.
              lsuInterrupt2     LSU Interrupt to be cleared.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_LSU_ICCR

Example

            CSL_SrioHandle  hSrio;
            Uint32          lsuStatus1;
            Uint32          lsuStatus2;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Check the LSU Pending Interrupt Status.
            CSL_SRIO_GetLSUPendingInterrupt (hSrio, &lsuStatus1, &lsuStatus2);
            ...
            // Clear the pending interrupts.
            CSL_SRIO_ClearLSUPendingInterrupt (hSrio, lsuStatus1, lsuStatus);

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_ClearOutputDegrade | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_ClearOutputDegrade

Description
The function is used to clear the status of the output port after a failed condition was detected

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_ERR_STAT_OUTPUT_DEGR=1

Affects
SRIO_RIO_SP_ERR_STAT_OUTPUT_DEGR=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Check if Port1 has detected an OUTPUT degraded condition?
            if (CSL_SRIO_IsOutputDegraded (hSrio, 1) == TRUE)
            {
                // Port1 has detected an OUTPUT degraded condition
                ...
                // Clear this error condition
                CSL_SRIO_ClearOutputDegrade (hSrio, 1);
            }
            else
            {
                // Port1 has NOT detected an OUTPUT degraded condition
            }
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_ClearOutputErrorStopped | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_ClearOutputErrorStopped

Description
The function is used to clear the status of the output port after the output error stopped condition was detected.

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_ERR_STAT_OUTPUT_ERR_ENCTR=1

Affects
SRIO_RIO_SP_ERR_STAT_OUTPUT_ERR_STOPPED=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Check if Port1 has detected an OUTPUT Error stopped condition?
            if (CSL_SRIO_IsOutputErrorStopped (hSrio, 1) == TRUE)
            {
                // Port1 has detected an OUTPUT Error stopped condition
                ...
                // Clear this error condition
                CSL_SRIO_ClearOutputErrorStopped (hSrio, 1);
            }
            else
            {
                // Port1 has NOT detected an OUTPUT Error stopped condition
            }
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_ClearOutputFailed | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_ClearOutputFailed

Description
The function is used to clear the status of the output port after a failed condition was detected

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_ERR_STAT_OUTPUT_FAIL=1

Affects
SRIO_RIO_SP_ERR_STAT_OUTPUT_FAIL=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Check if Port1 has detected a failed condition or not?
            if (CSL_SRIO_IsOutputFailed (hSrio, 1) == TRUE)
            {
                // Port1 has detected an OUTPUT failed condition
                ...
                // Clear this error condition
                CSL_SRIO_ClearOutputFailed (hSrio, 1);
            }
            else
            {
                // Port1 has NOT detected an OUTPUT failed condition
            }
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_ClearOutputPktDropped | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_ClearOutputPktDropped

Description
The function is used to clear the status of the output port after the output port discarded condition has been detected

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_ERR_STAT_OUTPUT_DROP=1

Affects
SRIO_RIO_SP_ERR_STAT_OUTPUT_DROP=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Check if Port1 has discarded a packet or not?
            if (CSL_SRIO_IsOutputPktDropped (hSrio, 1) == TRUE)
            {
                // Port1 has discarded the packet
                ...
                // Clear this error condition
                CSL_SRIO_ClearOutputPktDropped (hSrio, 1);
            }
            else
            {
                // Port1 has NOT discarded the packet
            }
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_ClearOutputRetry | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_ClearOutputRetry

Description
The function is used to clear the status of the output port after the output retry condition was detected.

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_ERR_STAT_OUTPUT_RETRY=1

Affects
SRIO_RIO_SP_ERR_STAT_OUTPUT_RETRY_STOPPED=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Check if Port1 has detected an OUTPUT Retry condition?
            if (CSL_SRIO_IsOutputRetryStopped (hSrio, 1) == TRUE)
            {
                // Port1 has detected an OUTPUT Retry condition
                ...
                // Clear this error condition
                CSL_SRIO_ClearOutputRetry (hSrio, 1);
            }
            else
            {
                // Port1 has NOT detected an OUTPUT Retry condition
            }
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_ClearOutstandingACK | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_ClearOutstandingACK

Description
The function is used to clear the outstanding acknowledgment ids and is used for software assisted ackID realignment.

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_ACKID_STAT_CLR_OUTSTD_ACKID=1

Affects
SRIO_RIO_SP_ACKID_STAT_OUTSTD_ACKID=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Clear outstanding ackID for SRIO Port 1
            CSL_SRIO_ClearOutstandingACK (hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_ClearPBMPortStatus | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 | egDataOverflow,
|  | Uint8 | egCRQOverflow,
|  | Uint8 | egBadChannel,
|  | Uint8 | egBabblePacket |
| ) |  |  |

============================================================================
CSL_SRIO_ClearPBMPortStatus

Description
The function is used to clear the PBM Port Status

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number
              egDataOverflow        PBMe received a request to enqueue a packet
                                    for which it did not have enough data storage.
              egCRQOverflow         PBMe received a request to enqueue a packet
                                    for which it did not have CRQ Entry.
              egBadChannel          PBMe received a request to enqueue a packet
                                    on a channel enqueue interface which should be
                                    unused for the path’s Mode.
              egBabblePacket        PBMe detected a packet that exceeded 276 bytes
                                    on its enqueue interface

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PBM_SP_STATUS_EG_DATA_OVERFLOW=1, SRIO_RIO_PBM_SP_STATUS_EG_CRQ_OVERFLOW=1,
SRIO_RIO_PBM_SP_STATUS_EG_BAD_CHANNEL=1, SRIO_RIO_PBM_SP_STATUS_EG_BABBLE_PACKET=1

Affects
SRIO_RIO_PBM_SP_STATUS_EG_DATA_OVERFLOW=0, SRIO_RIO_PBM_SP_STATUS_EG_CRQ_OVERFLOW=0,
SRIO_RIO_PBM_SP_STATUS_EG_BAD_CHANNEL=0, SRIO_RIO_PBM_SP_STATUS_EG_BABBLE_PACKET=0

Example

            CSL_SrioHandle      hSrio;
            Uint8               igEmpty;
            Uint8               egEmpty;
            Uint8               egDataOverflow;
            Uint8               egCRQOverflow;
            Uint8               egBadChannel;
            Uint8               egBabblePacket;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the PBM Port Status
            CSL_SRIO_GetPBMPortStatus(hSrio, 1, &igEmpty, &egEmpty,
                                      &egDataOverflow, &egCRQOverflow, &egBadChannel, &egBabblePacket);
            ...
            // Clear the PBM Port Status
            CSL_SRIO_ClearPBMPortStatus(hSrio, 1, egDataOverflow, egCRQOverflow, egBadChannel, egBabblePacket);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_ClearPLMPortDeadLink | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_ClearPLMPortDeadLink

Description
The function is used to clear the PLM Port Dead Link event

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PLM_SP_STATUS_DLT=1

Affects
SRIO_RIO_PLM_SP_STATUS_DLT=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Is the PLM Port Dead Link detected?
            if (CSL_SRIO_IsPLMPortDeadLink (hSrio, 1) == TRUE)
            {
                // PLM Port Dead Link detected
                ...
                // Clear the Dead Link Event
                CSL_SRIO_ClearPLMPortDeadLink (hSrio, 1);
            }
            else
            {
                // PLM Port Dead Link NOT detected
            }
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_ClearPLMPortError | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_ClearPLMPortError

Description
The function is used to clear the PLM Port Error

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PLM_SP_STATUS_PORT_ERR=1

Affects
SRIO_RIO_PLM_SP_STATUS_PORT_ERR=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Is the PLM Port error detected?
            if (CSL_SRIO_IsPLMPortError (hSrio, 1) == TRUE)
            {
                // PLM Port error detected
                ...
                // Clear the PLM Port Error.
                CSL_SRIO_ClearPLMPortError(hSrio, 1);
            }
            else
            {
                // PLM Port error NOT detected
            }
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_ClearPLMPortLinkInitialized | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_ClearPLMPortLinkInitialized

Description
The function is used to clear the PLM Port Link Initialization notification

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PLM_SP_STATUS_LINK_INIT=1

Affects
SRIO_RIO_PLM_SP_STATUS_LINK_INIT=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Is the PLM Link Initialized?
            if (CSL_SRIO_IsPLMPortLinkInitialized (hSrio, 1) == TRUE)
            {
                // Link is initialized
                ...
                // Clear the Link initialization notification
                CSL_SRIO_ClearPLMPortMaxDenialErrorSet (hSrio, 1);
            }
            else
            {
                // Link is not initialized
            }
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_ClearPLMPortMaxDenialErrorSet | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_ClearPLMPortMaxDenialErrorSet

Description
The function is used to clear the PLM Port Max. Denial error

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PLM_SP_STATUS_MAX_DENIAL=1

Affects
SRIO_RIO_PLM_SP_STATUS_MAX_DENIAL=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Is the MAX Denial Error set?
            if (CSL_SRIO_IsPLMPortMaxDenialErrorSet (hSrio, 1) == TRUE)
            {
                // MAX Denial error is set
                ...
                // Clear the MAX Denial Error
                CSL_SRIO_ClearPLMPortMaxDenialErrorSet (hSrio, 1);
            }
            else
            {
                // MAX Denial error is NOT set
            }
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_ClearPLMPortMECSStatus | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 | cmd |
| ) |  |  |

============================================================================
CSL_SRIO_ClearPLMPortMECSStatus

Description
The function is used to clear the PLM Port MECS status

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number
              cmd                   Indicates which MECS commands need to be cleared.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PLM_SP_RCVD_MECS_CMD_STAT

Affects
SRIO_RIO_PLM_SP_RCVD_MECS_CMD_STAT=0

Example

            CSL_SrioHandle  hSrio;
            Uint8           cmd;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the PLM Port MECS Status
            CSL_SRIO_GetPLMPortMECSStatus(hSrio, 1, &cmd);
            ...
            // Clear the PLM Port MECS Status.
            CSL_SRIO_ClearPLMPortMECSStatus(hSrio, 1, cmd);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_ClearPLMPortMulticastCS | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_ClearPLMPortMulticastCS

Description
The function is used to clear the PLM Port Multicast Control Symbol

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PLM_SP_STATUS_MECS=1

Affects
SRIO_RIO_PLM_SP_STATUS_MECS=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Is the PLM Port Multicast Event Control Symbol detected?
            if (CSL_SRIO_IsPLMPortMulticastCSDetected (hSrio, 1) == TRUE)
            {
                // PLM Port Multicast Event Control Symbol detected
                ...
                // Clear the PLM Port Multicast Event Control Symbol
                CSL_SRIO_ClearPLMPortMulticastCS (hSrio, 1);
            }
            else
            {
                // PLM Port Multicast Event Control Symbol NOT detected
            }
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_ClearPLMPortOutputDegrade | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_ClearPLMPortOutputDegrade

Description
The function is used to clear the PLM Output Degrade Port Error

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PLM_SP_STATUS_OUTPUT_DEGR=1

Affects
SRIO_RIO_PLM_SP_STATUS_OUTPUT_DEGR=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Is the PLM Port Output degrade detected?
            if (CSL_SRIO_IsPLMPortOutputDegrade (hSrio, 1) == TRUE)
            {
                // PLM Port Output degrade detected
                ...
                // Clear the PLM Output degrade condition
                CSL_SRIO_ClearPLMPortOutputDegrade (hSrio, 1);
            }
            else
            {
                // PLM Port Output degrade NOT detected
            }
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_ClearPLMPortOutputFail | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_ClearPLMPortOutputFail

Description
The function is used to clear the PLM Output Fail Port Error

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PLM_SP_STATUS_OUTPUT_FAIL=1

Affects
SRIO_RIO_PLM_SP_STATUS_OUTPUT_FAIL=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Is the PLM Port Output fail detected?
            if (CSL_SRIO_IsPLMPortOutputFail (hSrio, 1) == TRUE)
            {
                // PLM Port Output fail detected
                ...
                // Clear the PLM Outport error
                CSL_SRIO_ClearPLMPortOutputFail (hSrio, 1);
            }
            else
            {
                // PLM Port Output fail NOT detected
            }
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_ClearPortError | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_ClearPortError

Description
The function is used to clear any port errors which were detected by the port Physical layer.

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_ERR_DET=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Port 1 Error Status
            CSL_SRIO_GetPortError(hSrio, 1, &errStatus);
            if (errStatus != 0)
            {
                // Port Errors detected
                ...
                // Clear port errors.
                CSL_SRIO_ClearPortError (hSrio, 1);
            }
            else
            {
                // No port errors detected
            }

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_ClearPortWritePending | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_ClearPortWritePending

Description
The function is used to clear the port write pending condition

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_ERR_STAT_PORT_WRITE_PEND=1

Affects
SRIO_RIO_SP_ERR_STAT_PORT_WRITE_PEND=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Check if Port1 has detected a port write pending condition?
            if (CSL_SRIO_IsPortWritePending (hSrio, 1) == TRUE)
            {
                // Port1 has detected a port write pending condition
                ...
                // Clear this error condition
                CSL_SRIO_ClearInputErrorStopped (hSrio, 1);
            }
            else
            {
                // Port1 has NOT detected a port write pending condition
            }
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_ClearTLMPortStatus | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 | igBadVC,
|  | Uint8 | igBrrFilter |
| ) |  |  |

============================================================================
CSL_SRIO_ClearTLMPortStatus

Description
The function is used to clear the TLM port status

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number
              igBadVC               Detected an inbound packet with the VC bit set
              igBrrFilter           Discarded an inbound transaction based on the BRR

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_TLM_SP_STATUS_IG_BAD_VC=1, SRIO_RIO_TLM_SP_STATUS_IG_BRR_FILTER=1

Affects
SRIO_RIO_TLM_SP_STATUS_IG_BAD_VC=0, SRIO_RIO_TLM_SP_STATUS_IG_BRR_FILTER=0

Example

            CSL_SrioHandle      hSrio;
            Uint8               igBadVC;
            Uint8               igBrrFilter;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the TLM Port Status
            CSL_SRIO_GetTLMPortStatus(hSrio, 1, &igBadVC, &igBrrFilter);
            ...
            // Clear the TLM Port Status
            CSL_SRIO_ClearTLMPortStatus (hSrio, 1, igBadVC, igBrrFilter);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_Disable1_25GBaud | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_Disable1_25GBaud

Description
The function is used to enable 1.25GBaud for the specified port

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_CTL2_GB_1P25_EN=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Disable Port1 1.25G Baud
            CSL_SRIO_Disable1_25GBaud (hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_Disable2_5GBaud | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_Disable2_5GBaud

Description
The function is used to disable 2.5GBaud for the specified port

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_CTL2_GB_2P5_EN=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Disable Port1 2.5GBaud
            CSL_SRIO_Disable2_5GBaud (hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_Disable3_125GBaud | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_Disable3_125GBaud

Description
The function is used to disable 3.125GBaud for the specified port

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_CTL2_GB_3P125_EN=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Disable Port1 3.125GBaud
            CSL_SRIO_Disable3_125GBaud (hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_Disable5GBaud | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_Disable5GBaud

Description
The function is used to disable 5GBaud for the specified port

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_CTL2_GB_5P0_EN=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Disable Port1 5GBaud
            CSL_SRIO_Disable5GBaud (hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_Disable6_25GBaud | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_Disable6_25GBaud

Description
The function is used to disable 6.25GBaud for the specified port

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_CTL2_GB_6P25_EN=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Disable Port1 6.25GBaud
            CSL_SRIO_Disable6_25GBaud (hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_DisableAutomaticPriorityPromotion | ( | CSL_SrioHandle | hSrio | ) |

============================================================================
CSL_SRIO_DisableAutomaticPriorityPromotion

Description
This function disables the automatic promotion of response priority by RXU and MAU.

Arguments

              hSrio     Handle of the SRIO device

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PER_SET_CNTL_PROMOTE_DIS=1

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Disable Automatic Priority Promotion.
            CSL_SRIO_DisableAutomaticPriorityPromotion (hSrio);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_DisableBlock | ( | CSL_SrioHandle | hSrio,
|  | Uint16 | blockNumber |
| ) |  |  |

============================================================================
CSL_SRIO_DisableBlock

Description
This function disables the specific block in the SRIO peripheral.

Arguments

              hSrio             Handle of the SRIO device
              blockNum          Block Number to be disabled.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_BLK_EN_EN=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Disable the SRIO Block 1 for LSU.
            CSL_SRIO_DisableBlock (hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_DisableControlSymBadCRCPortError | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_DisableControlSymBadCRCPortError

Description
The function is used to disable the error rate counting for Received Control Symbol with a bad CRC

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_RATE_EN_CS_CRC_EN=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Disable the Control Symbol Bad CRC rate counting.
            CSL_SRIO_DisableControlSymBadCRCPortError (hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_DisableCOS | ( | CSL_SrioHandle | hSrio | ) |

============================================================================
CSL_SRIO_DisableCOS

Description
This function disables Class of Service for the device.

Arguments

              hSrio             Handle of the SRIO device

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PER_SET_CNTL1_COS_EN=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Disable COS.
            CSL_SRIO_DisableCOS (hSrio);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_DisableDataScrambling | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_DisableDataScrambling

Description
The function is used to disable data scrambling for the specific port

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_CTL2_D_SCRM_DIS=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Disable Port1 Data Scrambling
            CSL_SRIO_DisableDataScrambling (hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_DisableDelineationPortError | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_DisableDelineationPortError

Description
The function is used to disable the error rate counting for delineation errors

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_RATE_EN_DELIN_ERR_EN=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Disable the error rate counting for delineation errors.
            CSL_SRIO_DisableDelineationPortError (hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_DisableDescramblingLOSPortError | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_DisableDescramblingLOSPortError

Description
The function is used to disable the error rate counting of the loss of receiver de-scrambler synchronization when control symbol and packet data is being scrambled before transmission.

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_RATE_EN_DSCRAM_LOS_EN=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Disable the error rate counting for the LOS Descrambling
            CSL_SRIO_DisableDescramblingLOSPortError (hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_DisableEventMgmtInterrupts | ( | CSL_SrioHandle | hSrio | ) |

============================================================================
CSL_SRIO_DisableEventMgmtInterrupts

Description
The function is used to disable the Event Management Interrupts

Arguments

              hSrio         Handle of the SRIO device

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_EM_DEV_INT_EN_INT_EN=0

Example

            CSL_SrioHandle      hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Disable the Event Management Interrupts
            CSL_SRIO_DisableEventMgmtInterrupts(hSrio);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_DisableEventMgmtPortWrite | ( | CSL_SrioHandle | hSrio | ) |

============================================================================
CSL_SRIO_DisableEventMgmtPortWrite

Description
The function is used to disable the Event Management Port Write

Arguments

              hSrio         Handle of the SRIO device

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_EM_DEV_PW_EN_PW_EN=0

Example

            CSL_SrioHandle      hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Disable the Event Management Port Writes
            CSL_SRIO_DisableEventMgmtPortWrite(hSrio);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_DisableIllegalAckIDPortError | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_DisableIllegalAckIDPortError

Description
The function is used to disable the error rate counting for receiving an ACK ID that is not outstanding.

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_RATE_EN_LR_ACKID_ILL_EN=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Disable the error rate counting for the illegal ACK ID.
            CSL_SRIO_DisableIllegalAckIDPortError (hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_DisableIllegalCSPortError | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_DisableIllegalCSPortError

Description
The function is used to disable the error rate counting for illegal control symbols.

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_RATE_EN_CS_ACK_ILL_EN=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Disable the error rate counting for illegal control symbols.
            CSL_SRIO_DisableIllegalCSPortError (hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_DisableIllegalSizePortError | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_DisableIllegalSizePortError

Description
The function is used to disable the error rate counting for packets with illegal size

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_RATE_EN_PKT_ILL_SIZE_EN=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Disable the rate counting of packets with illegal size error
            CSL_SRIO_DisableIllegalSizePortError (hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_DisableImpSpecificPortError | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_DisableImpSpecificPortError

Description
The function is used to disable the ability for the SRIO port to rate count implementation specific errors.

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_RATE_EN_IMP_SPEC_EN=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Disable the Implementation specific Port 1 Rate counting
            CSL_SRIO_DisableImpSpecificPortError (hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_DisableInputPort | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_DisableInputPort

Description
The function is used to disable the input port to issue any packets

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_CTL_INP_EN=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Disable input port 1
            CSL_SRIO_DisableInputPort(hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_DisableInterruptPacing | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | destination |
| ) |  |  |

============================================================================
CSL_SRIO_DisableInterruptPacing

Description
The function disables interrupt pacing for the specific destination.

Arguments

              hSrio             Handle of the SRIO device
              destination       Destination Address for which interrupt pacing is disabled.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_INTDST_RATE_DIS_RATEN_DIS=1;SRIO_RIO_INTDST_RATE_DIS_RATEN_DIS=1;SRIO_RIO_INTDST_RATE_DIS_RATEN_DIS=1;SRIO_RIO_INTDST_RATE_DIS_RATEN_DIS=1; SRIO_RIO_INTDST_RATE_DIS_RATEN_DIS=1;SRIO_RIO_INTDST_RATE_DIS_RATEN_DIS=1;SRIO_RIO_INTDST_RATE_DIS_RATEN_DIS=1;SRIO_RIO_INTDST_RATE_DIS_RATEN_DIS=1; SRIO_RIO_INTDST_RATE_DIS_RATEN_DIS=1;SRIO_RIO_INTDST_RATE_DIS_RATEN_DIS=1;SRIO_RIO_INTDST_RATE_DIS_RATEN_DIS=1;SRIO_RIO_INTDST_RATE_DIS_RATEN_DIS=1; SRIO_RIO_INTDST_RATE_DIS_RATEN_DIS=1;SRIO_RIO_INTDST_RATE_DIS_RATEN_DIS=1;SRIO_RIO_INTDST_RATE_DIS_RATEN_DIS=1;SRIO_RIO_INTDST_RATE_DIS_RATEN_DIS=1 Example

            CSL_SrioHandle  hSrio;
            Uint32          rate;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Disable Interrupt Pacing for Destination 5.
            CSL_SRIO_DisableInterruptPacing (hSrio, 5);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_DisableOutputPort | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_DisableOutputPort

Description
The function is used to disable the output port and is unable to issue any packets except to route or respond to MAINTENANCE packets.

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_CTL_OTP_EN=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Disable output port 1
            CSL_SRIO_DisableOutputPort(hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_DisablePacketBadCRCError | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_DisablePacketBadCRCError

Description
The function is used to disable the error rate counting for packets with bad CRC

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_RATE_EN_PKT_CRC_ERR_EN=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Disable the packet with bad CRC error rate counting
            CSL_SRIO_DisablePacketBadCRCError (hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_DisablePacketNotAcceptedPortError | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_DisablePacketNotAcceptedPortError

Description
The function is used to disable the error rate counting for packet not accepted control symbol.

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_RATE_EN_CS_NOT_ACC_EN=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Disable the packet not accepted port error
            CSL_SRIO_DisablePacketNotAcceptedPortError (hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_DisablePacketUnexpectedAckIdError | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_DisablePacketUnexpectedAckIdError

Description
The function is used to disable the error rate counting for packets with unexpected ack id

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_RATE_EN_PKT_ILL_ACKID_EN=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Disable the packet with unexpected ack id rate counting
            CSL_SRIO_DisablePacketUnexpectedAckIdError (hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_DisablePeripheral | ( | CSL_SrioHandle | hSrio | ) |

============================================================================
CSL_SRIO_DisablePeripheral

Description
This function resets the PEREN bit in the Peripheral Control register and disables the SRIO peripheral.

Arguments

              hSrio   Handle of the SRIO device

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PCR_PEREN=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Disable the SRIO peripheral.
            CSL_SRIO_DisablePeripheral (hSrio);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_DisablePLMPortAllInterrupts | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_DisablePLMPortAllInterrupts

Description
The function is used to disable all interrupts

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PLM_SP_ALL_INT_EN_IRQ_EN=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Disable all PLM Interrupts
            CSL_SRIO_DisablePLMPortAllInterrupts(hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_DisablePLMPortAllPortWrites | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_DisablePLMPortAllPortWrites

Description
The function is used to disable all port writes

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PLM_SP_ALL_PW_EN_PW_EN=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Disable all PLM Port Writes
            CSL_SRIO_DisablePLMPortAllPortWrites(hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_DisablePort | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_DisablePort

Description
The function is used to disable the specific port

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_CTL_PORT_DIS=1

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Disable port 1
            CSL_SRIO_DisablePort(hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_DisablePortDrop | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_DisablePortDrop

Description
The function is used to disable the port drop

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_CTL_DROP_EN=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Disable drop for port 1
            CSL_SRIO_DisablePortDrop(hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_DisablePortErrorChecking | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_DisablePortErrorChecking

Description
The function is used to disable the error checking

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_CTL_ERR_DIS=1

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Disable error checking for port 1
            CSL_SRIO_DisablePortErrorChecking(hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_DisablePortFlowArbiteration | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_DisablePortFlowArbiteration

Description
The function is used to disable the port flow arbiteration

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_CTL_FLOW_ARB=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Disable flow arbiteration for port 1
            CSL_SRIO_DisablePortFlowArbiteration(hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_DisablePortFlowControl | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_DisablePortFlowControl

Description
The function is used to disable the port flow control

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_CTL_FLOW_CTRL=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Disable flow control for port 1
            CSL_SRIO_DisablePortFlowControl(hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_DisablePortLockout | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_DisablePortLockout

Description
The function is used to disable the port lockout

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_CTL_PORT_LOCKOUT=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Disable port lockout for port 1
            CSL_SRIO_DisablePortLockout(hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_DisablePortStopFail | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_DisablePortStopFail

Description
The function is used to disable the port stop fail

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_CTL_STOP_FAIL_EN=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Disable stop fail for port 1
            CSL_SRIO_DisablePortStopFail(hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_DisablePromiscuous | ( | CSL_SrioHandle | hSrio | ) |

============================================================================
CSL_SRIO_DisablePromiscuous

Description
This function disables the LOG_TGT_ID_DIS bit which ensures that the SRIO packets are accepted at the logical layer only if there is a match with the specific destination identifier.

Arguments

              hSrio     Handle of the SRIO device

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PER_SET_CNTL_LOG_TGT_ID_DIS=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Operate the peripheral in non-PROMISC mode.
            CSL_SRIO_DisablePromiscuous (hSrio);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_DisableProtocolPortError | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_DisableProtocolPortError

Description
The function is used to disable the error rate counting for protocol errors

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_RATE_EN_PROT_ERR_EN=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Disable the error rate counting for protocol errors.
            CSL_SRIO_DisableProtocolPortError (hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_DisableSrcIDInterrupts | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | index |
| ) |  |  |

============================================================================
CSL_SRIO_DisableSrcIDInterrupts

Description
The function is used to enable the LSU interrupts to based on the LSU specific interrupt bit and not on the SRCID.

Arguments

              hSrio             Handle of the SRIO device
              index             LSU Index to be configured.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_LSU_SETUP_REG1_LSU_EDMA=1;SRIO_RIO_LSU_SETUP_REG1_LSU_EDMA=2;
SRIO_RIO_LSU_SETUP_REG1_LSU_EDMA=4;SRIO_RIO_LSU_SETUP_REG1_LSU_EDMA=8;
SRIO_RIO_LSU_SETUP_REG1_LSU_EDMA=16;SRIO_RIO_LSU_SETUP_REG1_LSU_EDMA=32;
SRIO_RIO_LSU_SETUP_REG1_LSU_EDMA=64

Example

            CSL_SrioHandle     hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);
            ...
            // Disable SRC ID interrupts for LSU 2
            CSL_SRIO_DisableSrcIDInterrupts (hSrio, 2);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_DisableUnexpectedAckIDPortError | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_DisableUnexpectedAckIDPortError

Description
The function is used to disable the error rate counting for Received Control Symbol with an unexpected ACK ID

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_RATE_EN_CS_ILL_ID_EN=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Disable the unexpected ACK ID Port Error
            CSL_SRIO_DisableUnexpectedAckIDPortError (hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_Enable1_25GBaud | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_Enable1_25GBaud

Description
The function is used to enable 1.25GBaud for the specified port

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_CTL2_GB_1P25_EN=1

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Enable Port1 1.25G Baud
            CSL_SRIO_Enable1_25GBaud (hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_Enable2_5GBaud | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_Enable2_5GBaud

Description
The function is used to enable 2.5GBaud for the specified port

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_CTL2_GB_2P5_EN=1

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Enable Port1 2.5GBaud
            CSL_SRIO_Enable2_5GBaud (hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_Enable3_125GBaud | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_Enable3_125GBaud

Description
The function is used to enable 3.125GBaud for the specified port

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_CTL2_GB_3P125_EN=1

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Enable Port1 3.125GBaud
            CSL_SRIO_Enable3_125GBaud (hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_Enable5GBaud | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_Enable5GBaud

Description
The function is used to enable 5GBaud for the specified port

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_CTL2_GB_5P0_EN=1

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Enable Port1 5GBaud
            CSL_SRIO_Enable5GBaud (hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_Enable6_25GBaud | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_Enable6_25GBaud

Description
The function is used to enable 6.25GBaud for the specified port

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_CTL2_GB_6P25_EN=1

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Enable Port1 6.25GBaud
            CSL_SRIO_Enable6_25GBaud (hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_EnableAutomaticPriorityPromotion | ( | CSL_SrioHandle | hSrio | ) |

============================================================================
CSL_SRIO_EnableAutomaticPriorityPromotion

Description
This function enables the automatic promotion of response priority by RXU and MAU.

Arguments

              hSrio     Handle of the SRIO device

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PER_SET_CNTL_PROMOTE_DIS=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Enable Automatic Priority Promotion.
            CSL_SRIO_EnableAutomaticPriorityPromotion (hSrio);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_EnableBlock | ( | CSL_SrioHandle | hSrio,
|  | Uint16 | blockNumber |
| ) |  |  |

============================================================================
CSL_SRIO_EnableBlock

Description
This function enables the specific block in the SRIO peripheral.

Arguments

              hSrio             Handle of the SRIO device
              blockNum          Block Number to be enabled.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_BLK_EN_EN=1

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Enable the SRIO block for LSU .
            CSL_SRIO_GlobalEnable (hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_EnableControlSymBadCRCPortError | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_EnableControlSymBadCRCPortError

Description
The function is used to enable the error rate counting for Received Control Symbol with a bad CRC

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_RATE_EN_CS_CRC_EN=1

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Enable the Control Symbol Bad CRC rate counting.
            CSL_SRIO_EnableControlSymBadCRCPortError (hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_EnableCOS | ( | CSL_SrioHandle | hSrio | ) |

============================================================================
CSL_SRIO_EnableCOS

Description
This function enables Class of Service

Arguments

              hSrio             Handle of the SRIO device

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PER_SET_CNTL1_COS_EN=1

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Enable Class of Service
            CSL_SRIO_EnableCOS (hSrio);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_EnableDataScrambling | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_EnableDataScrambling

Description
The function is used to enable data scrambling for the specific port

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_CTL2_D_SCRM_DIS=1

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Enable Port1 Data Scrambling
            CSL_SRIO_EnableDataScrambling (hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_EnableDelineationPortError | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_EnableDelineationPortError

Description
The function is used to enable the error rate counting for delineation errors

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_RATE_EN_DELIN_ERR_EN=1

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Enable the error rate counting for delineation errors.
            CSL_SRIO_EnableDelineationPortError (hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_EnableDescramblingLOSPortError | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_EnableDescramblingLOSPortError

Description
The function is used to enable the error rate counting of the loss of receiver de-scrambler synchronization when control symbol and packet data is being scrambled before transmission.

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_RATE_EN_DSCRAM_LOS_EN=1

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Enable the error rate counting for the LOS Descrambling
            CSL_SRIO_EnableDescramblingLOSPortError (hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_EnableEventMgmtInterrupts | ( | CSL_SrioHandle | hSrio | ) |

============================================================================
CSL_SRIO_EnableEventMgmtInterrupts

Description
The function is used to enable the Event Management Interrupts

Arguments

              hSrio         Handle of the SRIO device

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_EM_DEV_INT_EN_INT_EN=1

Example

            CSL_SrioHandle      hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Enable the Event Management Interrupts
            CSL_SRIO_EnableEventMgmtInterrupts(hSrio);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_EnableEventMgmtPortWrite | ( | CSL_SrioHandle | hSrio | ) |

============================================================================
CSL_SRIO_EnableEventMgmtPortWrite

Description
The function is used to enable the Event Management Port Write

Arguments

              hSrio         Handle of the SRIO device

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_EM_DEV_PW_EN_PW_EN=1

Example

            CSL_SrioHandle      hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Enable the Event Management Port Writes
            CSL_SRIO_EnableEventMgmtPortWrite(hSrio);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_EnableIllegalAckIDPortError | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_EnableIllegalAckIDPortError

Description
The function is used to enable the error rate counting for receiving an ACK ID that is not outstanding.

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_RATE_EN_LR_ACKID_ILL_EN=1

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Enable the error rate counting for the illegal ACK ID.
            CSL_SRIO_EnableIllegalAckIDPortError (hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_EnableIllegalCSPortError | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_EnableIllegalCSPortError

Description
The function is used to enable the error rate counting for illegal control symbols.

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_RATE_EN_CS_ACK_ILL_EN=1

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Enable the error rate counting for illegal control symbols.
            CSL_SRIO_EnableIllegalCSPortError (hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_EnableIllegalSizePortError | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_EnableIllegalSizePortError

Description
The function is used to enable the error rate counting for packets with illegal size

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_RATE_EN_PKT_ILL_SIZE_EN=1

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Enable the rate counting of packets with illegal size error
            CSL_SRIO_EnableIllegalSizePortError (hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_EnableImpSpecificPortError | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_EnableImpSpecificPortError

Description
The function is used to enable the ability for the SRIO port to rate count implementation specific errors.

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_RATE_EN_IMP_SPEC_EN=1

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Enable the Implementation specific Port 1 Rate counting
            CSL_SRIO_EnableImpSpecificPortError (hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_EnableInputPort | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_EnableInputPort

Description
The function is used to enable the input port to issue any packets

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_CTL_INP_EN=1

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Enable input port 1
            CSL_SRIO_EnableInputPort(hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_EnableInterruptPacing | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | destination |
| ) |  |  |

============================================================================
CSL_SRIO_EnableInterruptPacing

Description
The function enables interrupt pacing for the specific destination.

Arguments

              hSrio             Handle of the SRIO device
              destination       Destination Address for which interrupt pacing is enabled.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_INTDST_RATE_DIS_RATEN_DIS=0;SRIO_RIO_INTDST_RATE_DIS_RATEN_DIS=0;SRIO_RIO_INTDST_RATE_DIS_RATEN_DIS=0;SRIO_RIO_INTDST_RATE_DIS_RATEN_DIS=0; SRIO_RIO_INTDST_RATE_DIS_RATEN_DIS=0;SRIO_RIO_INTDST_RATE_DIS_RATEN_DIS=0;SRIO_RIO_INTDST_RATE_DIS_RATEN_DIS=0;SRIO_IO_INTDST_RATE_DIS_RATEN_DIS=0; SRIO_RIO_INTDST_RATE_DIS_RATEN_DIS=0;SRIO_RIO_INTDST_RATE_DIS_RATEN_DIS=0;SRIO_RIO_INTDST_RATE_DIS_RATEN_DIS=0;SRIO_RIO_INTDST_RATE_DIS_RATEN_DIS=0; SRIO_RIO_INTDST_RATE_DIS_RATEN_DIS=0;SRIO_RIO_INTDST_RATE_DIS_RATEN_DIS=0;SRIO_RIO_INTDST_RATE_DIS_RATEN_DIS=0;SRIO_RIO_INTDST_RATE_DIS_RATEN_DIS=0;

Example

            CSL_SrioHandle  hSrio;
            Uint32          rate;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Enable Interrupt Pacing for Destination 4.
            CSL_SRIO_EnableInterruptPacing (hSrio, 4);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_EnableLinkTimeoutPortError | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_EnableLinkTimeoutPortError

Description
The function is used to enable the error rate counting for link responses not received within the specific timeout.

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_RATE_EN_LINK_TO_EN=1

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Enable the error rate counting for link timeout errors.
            CSL_SRIO_EnableLinkTimeoutPortError (hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_EnableOutputPort | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_EnableOutputPort

Description
The function is used to enable the output port to issue any packets

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_CTL_OTP_EN=1

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Enable output port 1
            CSL_SRIO_EnableOutputPort(hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_EnablePacketBadCRCError | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_EnablePacketBadCRCError

Description
The function is used to enable the error rate counting for packets with bad CRC

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_RATE_EN_PKT_CRC_ERR_EN=1

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Enable the packet with bad CRC error rate counting
            CSL_SRIO_EnablePacketBadCRCError (hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_EnablePacketNotAcceptedPortError | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_EnablePacketNotAcceptedPortError

Description
The function is used to enable the error rate counting for packet not accepted control symbol.

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_RATE_EN_CS_NOT_ACC_EN=1

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Enable the packet not accepted port error
            CSL_SRIO_EnablePacketNotAcceptedPortError (hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_EnablePacketUnexpectedAckIdError | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_EnablePacketUnexpectedAckIdError

Description
The function is used to enable the error rate counting for packets with unexpected ack id

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_RATE_EN_PKT_ILL_ACKID_EN=1

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Enable the packet with unexpected ack id rate counting
            CSL_SRIO_EnablePacketUnexpectedAckIdError (hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_EnablePeripheral | ( | CSL_SrioHandle | hSrio | ) |

============================================================================
CSL_SRIO_EnablePeripheral

Description
This function sets the PEREN bit in the Peripheral Control register and if not set this will prevent the peripheral from participating in any transmit transactions and will disable all incoming requests. This should be the last enable bit when bringing the device out of reset.

Arguments

              hSrio   Handle of the SRIO device

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PCR_PEREN=1

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Enable the SRIO peripheral.
            CSL_SRIO_EnablePeripheral (hSrio);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_EnablePLMPortAllInterrupts | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_EnablePLMPortAllInterrupts

Description
The function is used to enable all interrupts

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PLM_SP_ALL_INT_EN_IRQ_EN=1

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Enable all PLM Interrupts
            CSL_SRIO_EnablePLMPortAllInterrupts(hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_EnablePLMPortAllPortWrites | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_EnablePLMPortAllPortWrites

Description
The function is used to enable all port writes

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PLM_SP_ALL_PW_EN_PW_EN=1

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Enable all PLM Port Writes
            CSL_SRIO_EnablePLMPortAllPortWrites(hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_EnablePort | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_EnablePort

Description
The function is used to enable the specific port

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_CTL_PORT_DIS=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Enable port 1
            CSL_SRIO_EnablePort(hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_EnablePortDrop | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_EnablePortDrop

Description
The function is used to enable the port drop

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_CTL_DROP_EN=1

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Enable drop for port 1
            CSL_SRIO_EnablePortDrop(hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_EnablePortErrorChecking | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_EnablePortErrorChecking

Description
The function is used to enable the error checking

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_CTL_ERR_DIS=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Enable error checking for port 1
            CSL_SRIO_EnablePortErrorChecking(hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_EnablePortFlowArbiteration | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_EnablePortFlowArbiteration

Description
The function is used to enable the port flow arbiteration

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_CTL_FLOW_ARB=1

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Enable flow arbiteration for port 1
            CSL_SRIO_EnablePortFlowArbiteration(hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_EnablePortFlowControl | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_EnablePortFlowControl

Description
The function is used to enable the port flow control

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_CTL_FLOW_CTRL=1

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Enable flow control for port 1
            CSL_SRIO_EnablePortFlowControl(hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_EnablePortLockout | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_EnablePortLockout

Description
The function is used to enable the port lockout

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_CTL_PORT_LOCKOUT=1

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Enable port lockout for port 1
            CSL_SRIO_EnablePortLockout(hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_EnablePortStopFail | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_EnablePortStopFail

Description
The function is used to enable the port stop fail

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_CTL_STOP_FAIL_EN=1

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Enable stop fail for port 1
            CSL_SRIO_EnablePortStopFail(hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_EnablePromiscuous | ( | CSL_SrioHandle | hSrio | ) |

============================================================================
CSL_SRIO_EnablePromiscuous

Description
This function enables the LOG_TGT_ID_DIS bit which ensures that the SRIO packets are accepted at the logical layer even if there is no match with the destination identifier.

Arguments

              hSrio     Handle of the SRIO device

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PER_SET_CNTL_LOG_TGT_ID_DIS=1

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Operate the peripheral in PROMISCUOUS mode.
            CSL_SRIO_EnablePromiscuous (hSrio);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_EnableProtocolPortError | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_EnableProtocolPortError

Description
The function is used to enable the error rate counting for protocol errors

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_RATE_EN_PROT_ERR_EN=1

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Enable the error rate counting for protocol errors.
            CSL_SRIO_EnableProtocolPortError (hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_EnableSrcIDInterrupts | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | index |
| ) |  |  |

============================================================================
CSL_SRIO_EnableSrcIDInterrupts

Description
The function is used to enable the LSU interrupts to based on the SRCID and not on the LSU specific interrupt bit.

Arguments

              hSrio             Handle of the SRIO device
              index             LSU Index to be configured.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_LSU_SETUP_REG1_LSU_EDMA=0;SRIO_RIO_LSU_SETUP_REG1_LSU_EDMA=0;
SRIO_RIO_LSU_SETUP_REG1_LSU_EDMA=0;SRIO_RIO_LSU_SETUP_REG1_LSU_EDMA=0;
SRIO_RIO_LSU_SETUP_REG1_LSU_EDMA=06;SRIO_RIO_LSU_SETUP_REG1_LSU_EDMA=0;
SRIO_RIO_LSU_SETUP_REG1_LSU_EDMA=0

Example

            CSL_SrioHandle     hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);
            ...
            // Enable Source ID interrupts for LSU 1
            CSL_SRIO_EnableSrcIDInterrupts (hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_EnableUnexpectedAckIDPortError | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_EnableUnexpectedAckIDPortError

Description
The function is used to enable the error rate counting for Received Control Symbol with an unexpected ACK ID

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_RATE_EN_CS_ILL_ID_EN=1

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Enable the unexpected ACK ID Port Error
            CSL_SRIO_EnableUnexpectedAckIDPortError (hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_ExtractType11PSInfo | ( | Uint32 | psInfo[2],
|  | Uint16 * | dstId,
|  | Uint16 * | srcId,
|  | Uint8 * | mbox,
|  | Uint8 * | letter,
|  | Uint8 * | tt,
|  | Uint8 * | pri,
|  | Uint8 * | cc |
| ) |  |  |

============================================================================
CSL_SRIO_ExtractType11PSInfo

Description
The function extracts the type11 fields from the Protocol Specific information.

Arguments

            psInfo      - 8 bytes of PS information from the descriptor
            dstID       - Destination Identifier populated by the API
            srcId       - Source Identifier populated by the API
            mbox        - Mail Box populated by the API
            ltr         - Letter populated by the API
            tt          - Identifies if 8 bit or 16 bit identifiers are being used.
            pri         - Message Priority populated by the API
            cc          - Completion Code populated by the API

Return Value
None

Pre Condition
None

Post Condition
None

Example

            CSL_SrioHandle  hSrio;
            Uint32          psInfo[2];
            Uint16          dstId;
            Uint16          srcId;
            Uint8           mbox;
            Uint8           letter;
            Uint8           tt;
            Uint8           pri;
            Uint8           cc;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the PS Information from the buffer descriptor.
            ...

            // Populate the Type11 fields from the PS Information.
            CSL_SRIO_ExtractType11PSInfo(psInfo, &dstId, &srcId, &mbox, &letter, &tt, &pri, &cc);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_ExtractType9PSInfo | ( | Uint32 | psInfo[2],
|  | Uint16 * | dstId,
|  | Uint16 * | srcId,
|  | Uint8 * | cos,
|  | Uint8 * | cc,
|  | Uint8 * | tt,
|  | Uint8 * | pri,
|  | Uint16 * | streamId |
| ) |  |  |

============================================================================
CSL_SRIO_ExtractType9PSInfo

Description
The function extracts the type9 protocol specific information.

Arguments

            psInfo      - 8 bytes of PS information
            dstID       - Destination Identifier populated by this API
            srcId       - Source Identifier populated by this API
            cos         - Class of Service populated by this API
            cc          - Completion Code populated by this API
            tt          - Identifies if 8 bit or 16 bit identifiers are to be used.
            pri         - Message Priority populated by this API
            streamId    - Stream Id populated by this API

Return Value
None

Pre Condition
None

Post Condition
None

Example

            CSL_SrioHandle  hSrio;
            Uint32          psInfo[2];
            Uint16          dstId;
            Uint16          srcId;
            Uint8           cos;
            Uint8           cc;
            Uint8           tt;
            Uint8           pri;
            Uint16          streamId;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the PS Information into the Buffer Descriptor.
            ...

            // Extract the Type9 fields from the PS Information.
            CSL_SRIO_ExtractType9PSInfo(psInfo, &dstId, &srcId, &cos, &cc, &tt, &pri, &streamId);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_FlushLSUTransaction | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | lsu,
|  | Uint8 | srcIDMap |
| ) |  |  |

============================================================================
CSL_SRIO_FlushLSUTransaction

Description
The function is used to flush an LSU Transaction previously submitted and which matches the SRCID specified here.

Arguments

              hSrio             Handle of the SRIO device
              lsu               LSU Index which needs to be flushed
              srcIDMap          Source ID

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_LSU_REG6_SCRID_MAP, SRIO_RIO_LSU_REG6_FLUSH=1

Example

            CSL_SrioHandle     hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);
            ...
            // Flush the LSU transaction on LSU 1 with SRC ID 0x0
            CSL_SRIO_FlushLSUTransaction (hSrio, 1, 0x0);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetACKStatus | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 * | inputAckID,
|  | Uint8 * | outputUnAckID,
|  | Uint8 * | outputAckID |
| ) |  |  |

============================================================================
CSL_SRIO_GetACKStatus

Description
The function is used to get the ACK status.

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number
              inputAckID        Input port next expected ACK ID
              outputUnAckID     Output port unacknowledged ackID status
              outputAckID       Output port next transmitted Acknowledge ID value

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_SP_ACKID_STAT_INB_ACKID,SRIO_RIO_SP_ACKID_STAT_OUTSTD_ACKID,SRIO_RIO_SP_ACKID_STAT_OUTB_ACKID

Example

            CSL_SrioHandle  hSrio;
            Uint8           inputAckID;
            Uint8           outputUnAckID;
            Uint8           outputAckID;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the ACK Status for Port 1
            CSL_SRIO_GetACKStatus (hSrio, 1, &inputAckID, &outputUnAckID, &outputAckID);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetAddressCapture | ( | CSL_SrioHandle | hSrio,
|  | Uint32 * | address,
|  | Uint8 * | xamsbs |
| ) |  |  |

============================================================================
CSL_SRIO_GetAddressCapture

Description
The function is used to get the LSB 29 bits of the address which caused the error and also the extended address bits

Arguments

              hSrio             Handle of the SRIO device
              address           Address populated by this API
              xamsbs            Extended Address Information

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_ADDR_CAPT_ADDR_LOW,SRIO_RIO_ADDR_CAPT_XAMSBS

Example

            CSL_SrioHandle  hSrio;
            Uint32          address;
            Uint8           xamsbs;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the address information which caused the error
            CSL_SRIO_GetAddressCapture(hSrio, &hiAddress, &xamsbs);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetAMUErrorCaptureInfo | ( | CSL_SrioHandle | hSrio,
|  | Uint32 * | transAddress,
|  | Uint8 * | privId,
|  | Uint8 * | mstID,
|  | Uint16 * | doorbellInfo |
| ) |  |  |

============================================================================
CSL_SRIO_GetAMUErrorCaptureInfo

Description
The function is used to get access to the AMU Error capture information.

Arguments

              hSrio             Handle of the SRIO device
              transAddress      Transaction Address which caused the error.
              privId            Priv ID which caused the error
              mstID             Master ID which caused the error.
              doorbellInfo      Doorbell Info

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_AMU_CAPT0_MAP,SRIO_RIO_AMU_CAPT1_MAP_CPRIVID, SRIO_RIO_AMU_CAPT1_MAP_CMSTID,SRIO_RIO_AMU_CAPT1_MAP_DOORBELL_INFO

Example

            CSL_SrioHandle      hSrio;
            Uint32              transAddress;
            Uint8               privId;
            Uint8               mstID;
            Uint16              doorbellInfo;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);
            ...
            // Get the AMU Error Capture Information
            CSL_SRIO_GetAMUErrorCaptureInfo (hSrio, &transAddress, &privId, &mstID, &doorbellInfo);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetAMUFlowMask | ( | CSL_SrioHandle | hSrio,
|  | Uint16 * | flowMask |
| ) |  |  |

============================================================================
CSL_SRIO_GetAMUFlowMask

Description
The function gets the AMU Flow Mask

Arguments

              hSrio             Handle of the SRIO device
              flowMask          Flow Mask to be populated by this API.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_AMU_FLOW_MASKS0_AMU_FLOW_MASK

Example

            CSL_SrioHandle      hSrio;
            Uint32              flowMask;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);
            ...
            // Get the AMU Flow Mask
            CSL_SRIO_GetAMUFlowMask (hSrio, &flowMask);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetAMUPane | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | index,
|  | SRIO_AMU_PANE * | amuPane |
| ) |  |  |

============================================================================
CSL_SRIO_GetAMUPane

Description
The function gets the specific AMU Pane properties

Arguments

              hSrio             Handle of the SRIO device
              index             AMU Pane Index
              amuPane           AMU Pane Properties populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_AMU_WINDOW_PANE_CMD_ENC,SRIO_RIO_AMU_WINDOW_PANE_PORT_ID, SRIO_RIO_AMU_WINDOW_PANE_ID_SIZE,SRIO_RIO_AMU_WINDOW_PANE_DESTID

Example

            CSL_SrioHandle      hSrio;
            SRIO_AMU_PANE       amuPane;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);
            ...
            // Get the AMU Pane Properties for AMU Pane 2
            CSL_SRIO_GetAMUPane (hSrio, 2, &amuPane);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetAMUPendingInterrupt | ( | CSL_SrioHandle | hSrio,
|  | Uint16 * | amuIntrStatus |
| ) |  |  |

============================================================================
CSL_SRIO_GetAMUPendingInterrupt

Description
The function returns the interrupt status of any AMU interrupts.

Arguments

              hSrio             Handle of the SRIO device
              amuIntrStatus     AMU Interrupt Pending Status populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_AMU_ICSR_CPRIVID

Example

            CSL_SrioHandle  hSrio;
            Uint16          amuIntrStatus;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the pending AMU interrupt status
            CSL_SRIO_GetAMUPendingInterrupt (hSrio, &amuIntrStatus);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetAMUPrivIdToSourceIdMapping | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | privId,
|  | Uint8 * | srcId |
| ) |  |  |

============================================================================
CSL_SRIO_GetAMUPrivIdToSourceIdMapping

Description
The function gets the mapping of a specific AMU privID to source Id

Arguments

              hSrio             Handle of the SRIO device
              privId            AMU Priv ID for which the mapping is required.
              srcId             Source ID to which the priv ID has been mapped to
                                populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_AMU_SRCID_MAP_CPRIVID0_8;SRIO_RIO_AMU_SRCID_MAP_CPRIVID1_9;
SRIO_RIO_AMU_SRCID_MAP_CPRIVID2_10;SRIO_RIO_AMU_SRCID_MAP_CPRIVID3_11;
SRIO_RIO_AMU_SRCID_MAP_CPRIVID4_12;SRIO_RIO_AMU_SRCID_MAP_CPRIVID5_13;
SRIO_RIO_AMU_SRCID_MAP_CPRIVID6_14;SRIO_RIO_AMU_SRCID_MAP_CPRIVID7_15;

Example

            CSL_SrioHandle      hSrio;
            Uint8               srcId;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);
            ...
            // Get the mapping for Priv ID 1
            CSL_SRIO_GetAMUPrivIdToSourceIdMapping (hSrio, 1, &srcId);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetAMUSwappingMode | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | mode |
| ) |  |  |

============================================================================
CSL_SRIO_GetAMUSwappingMode

Description
This function gets the Little Endian Swapping Mode for the AMU

Arguments

              hSrio     Handle of the SRIO device
              mode      Little Endian Swapping Mode for the AMU populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PER_SET_CNTL_AMU_LEND_SWAP_MODE

Example

            CSL_SrioHandle  hSrio;
            Uint8           mode;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the AMU Swapping Mode.
            CSL_SRIO_GetAMUSwappingMode (hSrio, &mode);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetAMUWindow | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | index,
|  | SRIO_AMU_WINDOW * | amuWindow |
| ) |  |  |

============================================================================
CSL_SRIO_GetAMUWindow

Description
The function gets the specific AMU Window register

Arguments

              hSrio             Handle of the SRIO device
              index             AMU Window Index
              amuWindow         AMU Window Properties populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_AMU_WINDOW_REG0_XAMBS,SRIO_RIO_AMU_WINDOW_REG0_PANE_COUNT, SRIO_RIO_AMU_WINDOW_REG0_PANE_SIZE,SRIO_RIO_AMU_WINDOW_REG0_WINDOW_SIZE, SRIO_RIO_AMU_WINDOW_REG1,SRIO_RIO_AMU_WINDOW_REG2

Example

            CSL_SrioHandle      hSrio;
            SRIO_AMU_WINDOW     amuWindow;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);
            ...
            // Get the AMU Window Properties for AMU Window 1
            CSL_SRIO_GetAMUWindow (hSrio, 1, &amuWindow);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetAssemblyInfo | ( | CSL_SrioHandle | hSrio,
|  | Uint16 * | asblyId,
|  | Uint16 * | asblyVendorId,
|  | Uint16 * | asblyRev,
|  | Uint16 * | extFeaturePtr |
| ) |  |  |

============================================================================
CSL_SRIO_GetAssemblyInfo

Description
The function reads the Assembly Identifier information.

Arguments

              hSrio             Handle of the SRIO device
              asblyId           Assembly Identity populated by this API.
              asblyVendorId     Assembly Vendor Identity populated by this API
              asblyRev          Assembly Revision populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_ASBLY_ID_ASBLY_ID,SRIO_RIO_ASBLY_ID_ASBLY_VEN_ID,
SRIO_RIO_ASBLY_INFO_ASBLY_REV,SRIO_RIO_ASBLY_INFO_EXT_FEAT_PTR

Example

            CSL_SrioHandle  hSrio;
            Uint16          asblyId;
            Uint16          asblyVendorId;
            Uint16          asblyRev;
            Uint16          extFeaturePtr;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Read the Assembly Identity CAR
            CSL_SRIO_GetAssemblyInfo (hSrio, &asblyId, &asblyVendorId, &asblyRev, &extFeaturePtr);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetBootComplete | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | bootCompleteFlag |
| ) |  |  |

============================================================================
CSL_SRIO_GetBootComplete

Description
This function gets the boot complete flag.

Arguments

              hSrio             Handle of the SRIO device
              bootCompleteFlag  Boot Complete Flag populated by this API.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PER_SET_CNTL_BOOT_COMPLETE

Example

            CSL_SrioHandle  hSrio;
            Uint8           bootCompleteFlag;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Boot Complete Flag
            bootCompleteFlag = CSL_SRIO_GetBootComplete (hSrio);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetCompTagCSR | ( | CSL_SrioHandle | hSrio,
|  | Uint32 * | ctag |
| ) |  |  |

============================================================================
CSL_SRIO_GetCompTagCSR

Description
The function gets the component tag CSR

Arguments

              hSrio         Handle of the SRIO device
              ctag          Component Tag to be populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_COMP_TAG

Example

            CSL_SrioHandle  hSrio;
            Uint32          tag;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the component TAG CSR
            CSL_SRIO_GetCompTagCSR (hSrio, &tag);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetControlCapture | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | ftype,
|  | Uint8 * | ttype,
|  | Uint8 * | msgInfo,
|  | Uint16 * | implSpecific |
| ) |  |  |

============================================================================
CSL_SRIO_GetControlCapture

Description
The function is used to get the control information associated with the error

Arguments

              hSrio             Handle of the SRIO device
              ftype             FTPYE associated with the error
              ttype             TTPYE associated with the error
              msgInfo           Message Information associated with the error
              implSpecific      Implementation Specific information

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_CTRL_CAPT_FTYPE, SRIO_RIO_CTRL_CAPT_TTYPE,
SRIO_RIO_CTRL_CAPT_MSG_INFO, SRIO_RIO_CTRL_CAPT_IMP_SPECIFIC

Example

            CSL_SrioHandle  hSrio;
            Uint8           ftype;
            Uint8           ttype;
            Uint8           msgInfo;
            Uint16          implSpecific;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the control capture information which caused the error
            CSL_SRIO_GetControlCapture(hSrio, &ftype, &ttype, &msgInfo, &implSpecific);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetDataStreamingInfo | ( | CSL_SrioHandle | hSrio,
|  | Uint16 * | maxPDU,
|  | Uint16 * | segSupport |
| ) |  |  |

============================================================================
CSL_SRIO_GetDataStreamingInfo

Description
The function gets the data streaming information

Arguments

              hSrio             Handle of the SRIO device
              maxPDU            Maximum PDU
              segSupport        Num of segmentation context

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_DS_INFO_MAX_PDU, SRIO_RIO_DS_INFO_SEG_SUPPORT

Example

            CSL_SrioHandle  hSrio;
            Uint16          maxPDU;
            Uint16          segSupport;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Data Streaming Information
            CSL_SRIO_GetDataStreamingInfo (hSrio, &maxPDU, &segSupport);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetDataStreamingMode | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | mode |
| ) |  |  |

============================================================================
CSL_SRIO_GetDataStreamingMode

Description
The function gets the data streaming traffic management mode of operation

Arguments

              hSrio             Handle of the SRIO device
              mode              Traffic Management Mode populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_DS_LL_CTL_TM_MODE

Example

            CSL_SrioHandle  hSrio;
            Uint8           mode;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Data Streaming TM Mode
            CSL_SRIO_GetDataStreamingMode (hSrio, &mode);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetDataStreamingMTU | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | mtu |
| ) |  |  |

============================================================================
CSL_SRIO_GetDataStreamingMTU

Description
The function gets the data streaming MTU

Arguments

              hSrio             Handle of the SRIO device
              mtu               MTU populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_DS_LL_CTL_MTU

Example

            CSL_SrioHandle  hSrio;
            Uint8           mtu;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Data Streaming MTU
            CSL_SRIO_GetDataStreamingMTU (hSrio, &mtu);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetDataStreamingType | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | type |
| ) |  |  |

============================================================================
CSL_SRIO_GetDataStreamingType

Description
The function gets the data streaming traffic management type

Arguments

              hSrio             Handle of the SRIO device
              type              Data Streaming Type populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_DS_LL_CTL_TM_TYPES

Example

            CSL_SrioHandle  hSrio;
            Uint8           type;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Data Streaming Type
            CSL_SRIO_GetDataStreamingType (hSrio, &type);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetDestOperationCAR | ( | CSL_SrioHandle | hSrio,
|  | SRIO_OP_CAR * | ptrDstOp |
| ) |  |  |

============================================================================
CSL_SRIO_GetDestOperationCAR

Description
The function reads the Switch Port Capabilities which are all the logical operations that can be issued by the application.

Arguments

              hSrio             Handle of the SRIO device
              ptrDstOp          Pointer to the Dest CAR Structure populated by this
                                API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_DEST_OP_G_READ, SRIO_RIO_DEST_OP_G_IREAD, SRIO_RIO_DEST_OP_G_READ_OWN,
SRIO_RIO_DEST_OP_G_DC_INVALIDATE, SRIO_RIO_DEST_OP_G_CASTOUT, SRIO_RIO_DEST_OP_G_DC_FLUSH,
SRIO_RIO_DEST_OP_G_IO_READ, SRIO_RIO_DEST_OP_G_IC_INVALIDATE, SRIO_RIO_DEST_OP_G_TLB_INVALIDATE,
SRIO_RIO_DEST_OP_G_TLB_SYNC, SRIO_RIO_DEST_OP_DS_TM, SRIO_RIO_DEST_OP_DS,
SRIO_RIO_DEST_OP_IMPLEMENT_DEF, SRIO_RIO_DEST_OP_READ, SRIO_RIO_DEST_OP_WRITE,
SRIO_RIO_DEST_OP_STRM_WR, SRIO_RIO_DEST_OP_WR_RES, SRIO_RIO_DEST_OP_D_MSG, SRIO_RIO_DEST_OP_DBELL,
SRIO_RIO_DEST_OP_ACSWAP, SRIO_RIO_DEST_OP_ATSWAP, SRIO_RIO_DEST_OP_A_INC, SRIO_RIO_DEST_OP_A_DEC,
SRIO_RIO_DEST_OP_A_SET, SRIO_RIO_DEST_OP_A_CLEAR, SRIO_RIO_DEST_OP_A_SWAP, SRIO_RIO_DEST_OP_PORT_WR,
SRIO_RIO_DEST_OP_IMPLEMENT_DEF2

Example

            CSL_SrioHandle  hSrio;
            SRIO_OP_CAR     dstOPCAR;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Destination Operation CAR
            CSL_SRIO_GetDestOperationCAR (hSrio, &dstOPCAR);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetDeviceID | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | index,
|  | Uint8 * | NodeId8bit,
|  | Uint16 * | NodeId16bit |
| ) |  |  |

============================================================================
CSL_SRIO_GetDeviceID

Description
This function gets the DEVICE ID Register. There are multiple device ID registers which can exist in the system. The index parameter is used to indicate which register is to be retreived.

Arguments

              hSrio             Handle of the SRIO device
              index             Index of the Device ID register to be configured (0-Based)
              NodeId8bit        8 Bit Device Identifier to be populated by this API
              NodeId16bit       16 Bit Device Identifier to be populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_MULTIID_REG_8B_NODEID,SRIO_RIO_MULTIID_REG_16B_NODEID

Example

            CSL_SrioHandle  hSrio;
            Uint8           NodeId8bit;
            Uint16          NodeId16bit;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Device ID register contents
            CSL_SRIO_GetDeviceID (hSrio, 0, &NodeId8bit, &NodeId16bit);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetDeviceIDCapture | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | msbDstID,
|  | Uint8 * | lsbDstID,
|  | Uint8 * | msbSrcID,
|  | Uint8 * | lsbSrcID |
| ) |  |  |

============================================================================
CSL_SRIO_GetDeviceIDCapture

Description
The function is used to get the Device ID capture CSR information.

Arguments

              hSrio             Handle of the SRIO device
              msbDstID          MSB Destination ID
              lsbDstID          LSB Destination ID
              msbSrcID          MSB Source ID
              lsbSrcID          LSB Source ID

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_LOCAL_ID_CAPT_MSB_DEST_ID, SRIO_RIO_LOCAL_ID_CAPT_DEST_ID,SRIO_RIO_LOCAL_ID_CAPT_MSB_SRC_ID, SRIO_RIO_LOCAL_ID_CAPT_SRC_ID

Example

            CSL_SrioHandle      hSrio;
            Uint8               msbDstID;
            Uint8               lsbDstID;
            Uint8               msbSrcID;
            Uint8               lsbSrcID;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Device ID Capture information
            CSL_SRIO_GetDeviceIDCapture(hSrio, &msbDstID, &lsbDstID, &msbSrcID, &lsbSrcID);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetDeviceIDCSR | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | baseID8Bit,
|  | Uint16 * | baseID16Bit |
| ) |  |  |

============================================================================
CSL_SRIO_GetDeviceIDCSR

Description
The function gets the 8bit and 16 device ID in the standard CSR

Arguments

              hSrio             Handle of the SRIO device
              baseID8Bit        8bit Device Identifier populated by this API
              baseID16Bit       16bit Device Identifier populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_BASE_ID_BASE_ID,SRIO_RIO_BASE_ID_LARGE_BASE_ID

Example

            CSL_SrioHandle  hSrio;
            Uint8           baseID8Bit;
            Uint16          baseID16Bit;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Device Identifier CSR
            CSL_SRIO_GetDeviceIDCSR (hSrio, &baseID8Bit, &baseID16Bit);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetDeviceInfo | ( | CSL_SrioHandle | hSrio,
|  | Uint16 * | deviceId,
|  | Uint16 * | deviceVendorId,
|  | Uint32 * | deviceRev |
| ) |  |  |

============================================================================
CSL_SRIO_GetDeviceInfo

Description
The function reads the Device Identifier information.

Arguments

              hSrio             Handle of the SRIO device
              deviceId          Device Identity populated by this API.
              deviceVendorId    Device Vendor Identity populated by this API
              deviceRev         Device Revision populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_DEV_ID_DEV_ID,SRIO_RIO_DEV_ID_DEV_VEN_ID,
SRIO_RIO_DEV_INFO_DEVICE_REV

Example

            CSL_SrioHandle  hSrio;
            Uint16          deviceId;
            Uint16          deviceVendorId;
            Uint32          deviceRev;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Read the Device Identity CAR
            CSL_SRIO_GetDeviceInfo (hSrio, &deviceId, &deviceVendorId, &deviceRev);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetDoorbellPendingInterrupt | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | port,
|  | Uint16 * | doorbellStatus |
| ) |  |  |

============================================================================
CSL_SRIO_GetDoorbellPendingInterrupt

Description
The function reads the DOORBELL status register to determine if there are any pending door bell interrupts or not?

Arguments

              hSrio             Handle of the SRIO device
              port              SRIO Port (Zero Based) for which the doorbell status is required.
              doorbellStatus    Door Bell Status populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_DOORBELL_ICSR_RIO_DOORBELL

Example

            CSL_SrioHandle  hSrio;
            Uint16          doorbellStatus;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the status of doorbell interrupts for port 0
            CSL_SRIO_GetDoorbellPendingInterrupt (hSrio, 0, &doorbellStatus);
            if (doorbellStatus != 0)
            {
                // Door bell Interrupts were pending and need to be serviced.
            }
            else
            {
                // There are no door bell interrupts pending.
            }
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetDoorbellRoute | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | routeInfo |
| ) |  |  |

============================================================================
CSL_SRIO_GetDoorbellRoute

Description
The function gets the doorbell routing information.

Arguments

              hSrio             Handle of the SRIO device
              route             Routing Information populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_INTERRUPT_CTL_DBLL_ROUTE

Example

            CSL_SrioHandle  hSrio;
            Uint8           routeInfo;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Doorbell routing information
            CSL_SRIO_GetDoorbellRoute (hSrio, &routeInfo);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetErrorCapture | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint32 * | errCap0,
|  | Uint32 * | errCap1,
|  | Uint32 * | errCap2,
|  | Uint32 * | errCap3 |
| ) |  |  |

============================================================================
CSL_SRIO_GetErrorCapture

Description
The function is used to get the error capture information.

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number
              errCap0           Error 0 Capture Information
              errCap1           Error 1 Capture Information
              errCap2           Error 2 Capture Information
              errCap3           Error 3 Capture Information

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_SP_ERR_CAPT_0,SRIO_RIO_SP_ERR_CAPT_1,
SRIO_RIO_SP_ERR_CAPT_2,SRIO_RIO_SP_ERR_CAPT_3

Example

            CSL_SrioHandle  hSrio;
            Uint32          errCap0;
            Uint32          errCap1;
            Uint32          errCap2;
            Uint32          errCap3;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the error capture information
            CSL_SRIO_GetErrorCapture (hSrio, 1, &errCap0, &errCap1, &errCap2, &errCap3);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetErrorCaptureInfo | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 * | infoType,
|  | Uint8 * | errType,
|  | Uint32 * | implDep,
|  | Uint8 * | valCapt |
| ) |  |  |

============================================================================
CSL_SRIO_GetErrorCaptureInfo

Description
The function is used to get the error capture information.

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number
              infoType          Error Information Type
              errType           Encoded Value of the the captured error bits
              implDep           Implementation Dependent Error Information
              valCapt           Capture Valid Information

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_SP_ERR_ATTR_CAPT_INFO_TYPE,SRIO_RIO_SP_ERR_ATTR_CAPT_ERR_TYPE,SRIO_RIO_SP_ERR_ATTR_CAPT_IMPL_DEP,SRIO_RIO_SP_ERR_ATTR_CAPT_VAL_CAPT

Example

            CSL_SrioHandle  hSrio;
            Uint8           infoType;
            Uint8           errType;
            Uint32          implDep;
            Uint8           valCapt;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the error capture information
            CSL_SRIO_GetErrorCaptureInfo (hSrio, 1, &infoType, &errType, &implDep, &valCapt);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetErrorDetect | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | illID,
|  | Uint8 * | illType |
| ) |  |  |

============================================================================
CSL_SRIO_GetErrorDetect

Description
The function is used to get the error detect CSR

Arguments

              hSrio             Handle of the SRIO device
              illID             Illegal transaction target error
              illType           Unsupported Transaction

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_LOCAL_ERR_DET_ILL_ID, SRIO_RIO_LOCAL_ERR_DET_ILL_TYPE

Example

            CSL_SrioHandle      hSrio;
            Uint8               illID;
            Uint8               illType;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Error Detect CSR Information
            CSL_SRIO_GetErrorDetect(hSrio, &illID, &illType);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetErrorDetectCSR | ( | CSL_SrioHandle | hSrio,
|  | Uint32 * | errDetect |
| ) |  |  |

============================================================================
CSL_SRIO_GetErrorDetectCSR

Description
The function is used to get the error detected CSR information

Arguments

              hSrio             Handle of the SRIO device
              errDetect         Error Detect Information populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_ERR_DET

Example

            CSL_SrioHandle  hSrio;
            Uint32          errDetect;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the error detect information
            CSL_SRIO_GetErrorDetectCSR(hSrio, &errDetect);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetErrorDetectEnable | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | illID,
|  | Uint8 * | illType |
| ) |  |  |

============================================================================
CSL_SRIO_GetErrorDetectEnable

Description
The function is used to get the error detect enable CSR

Arguments

              hSrio             Handle of the SRIO device
              illID             Illegal transaction target error
              illType           Unsupported Transaction

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_LOCAL_ERR_EN_ILL_ID_EN, SRIO_RIO_LOCAL_ERR_EN_ILL_TYPE_EN

Example

            CSL_SrioHandle      hSrio;
            Uint8               illID;
            Uint8               illType;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Error Detect Enable CSR Information
            CSL_SRIO_GetErrorDetectEnable(hSrio, &illID, &illType);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetErrorEnable | ( | CSL_SrioHandle | hSrio,
|  | Uint32 * | errEnable |
| ) |  |  |

============================================================================
CSL_SRIO_GetErrorEnable

Description
The function is used to get the error enable status

Arguments

              hSrio             Handle of the SRIO device
              errEnable         Error Enable Status populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_ERR_EN

Example

            CSL_SrioHandle  hSrio;
            Uint32          errEnable;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the error enable status information
            CSL_SRIO_GetErrorEnable(hSrio, &errEnable);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetErrorPendingInterrupt | ( | CSL_SrioHandle | hSrio,
|  | Uint32 * | errStatus |
| ) |  |  |

============================================================================
CSL_SRIO_GetErrorPendingInterrupt

Description
The function returns the interrupt status of any error interrupts which are pending.

Arguments

              hSrio             Handle of the SRIO device
              errStatus         Error Pending Status populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_ERR_RST_EVNT_ICSR_MCAST_INT_RECEIVED, SRIO_RIO_ERR_RST_EVNT_ICSR_PORT_WRITE_IN_RECEIVED, SRIO_RIO_ERR_RST_EVNT_ICSR_LLERR_CAPTURE, SRIO_RIO_ERR_RST_EVNT_ICSR_PORT0_ERR, SRIO_RIO_ERR_RST_EVNT_ICSR_PORT1_ERR, SRIO_RIO_ERR_RST_EVNT_ICSR_PORT2_ERR, SRIO_RIO_ERR_RST_EVNT_ICSR_PORT3_ERR, SRIO_RIO_ERR_RST_EVNT_ICSR_DEVICE_RST_INT

Example

            CSL_SrioHandle  hSrio;
            Uint32          errStatus;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get any pending errors
            CSL_SRIO_GetErrorPendingInterrupt (hSrio, &errStatus);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetErrorRateCSR | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | SRIO_ERR_RATE * | ptrErrorRate |
| ) |  |  |

============================================================================
CSL_SRIO_GetErrorRateCSR

Description
The function is used to get the error rate CSR which is used to monitor and control the reporting of the Port Physical layer errors.

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number
              ptrErrorRate      Error Rate configuration.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_SP_ERR_RATE_ERR_RB,SRIO_RIO_SP_ERR_RATE_ERR_RR,
SRIO_RIO_SP_ERR_RATE_ERR_PEAK,SRIO_RIO_SP_ERR_RATE_ERR_RATE_CNT

Example

            CSL_SrioHandle  hSrio;
            SRIO_ERR_RATE   errorRate;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Error Rate CSR Information.
            CSL_SRIO_GetErrorRateCSR (hSrio, 1, &errorRate);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetErrorRateThreshold | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 * | errRateFailedThreshold,
|  | Uint8 * | errRateDegradeThreshold |
| ) |  |  |

============================================================================
CSL_SRIO_GetErrorRateThreshold

Description
The function is used to get the error rate threshold.

Arguments

              hSrio                     Handle of the SRIO device
              portNum                   SRIO Port Number
              errRateFailedThreshold    Threshold value for reporting an error condition
                                        due to possibly broken link
              errRateDegradeThreshold   Threshold value for reporting an error condition
                                        due to a degrading link.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_SP_ERR_THRESH_ERR_RFT, SRIO_RIO_SP_ERR_THRESH_ERR_RDT

Example

            CSL_SrioHandle  hSrio;
            Uint8           errRateFailedThreshold;
            Uint8           errRateDegradeThreshold;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Error Rate Threshold Information.
            CSL_SRIO_GetErrorRateThreshold (hSrio, 1, &errRateFailedThreshold, &errRateDegradeThreshold);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetErrorReportBlockHeader | ( | CSL_SrioHandle | hSrio,
|  | Uint16 * | efPtr,
|  | Uint16 * | efId |
| ) |  |  |

============================================================================
CSL_SRIO_GetErrorReportBlockHeader

Description
The function is used to get the error report block header information

Arguments

              hSrio             Handle of the SRIO device
              efPtr             Extended Feature Pointer populated by this API
              efId              Extended Feature ID populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_ERR_RPT_BH_EF_PTR,SRIO_RIO_ERR_RPT_BH_EF_ID

Example

            CSL_SrioHandle  hSrio;
            Uint16          efPtr;
            Uint16          efId;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Error reporting block header information
            CSL_SRIO_GetErrorReportBlockHeader(hSrio, &efPtr, &efId);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetEventMgmtCmdStatus | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | cmdStat |
| ) |  |  |

============================================================================
CSL_SRIO_GetEventMgmtCmdStatus

Description
The function is used to get the event management command status

Arguments

              hSrio         Handle of the SRIO device
              cmdStat       MECS Command which were received

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_EM_RST_PORT_STAT_RST_REQ

Example

            CSL_SrioHandle      hSrio;
            Uint8               cmdStat;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Event Management Command Status
            CSL_SRIO_GetEventMgmtCmdStatus(hSrio, &cmdStat);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetEventMgmtInterruptPortStatus | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | irqPending |
| ) |  |  |

============================================================================
CSL_SRIO_GetEventMgmtInterruptPortStatus

Description
The function is used to get the Event Management Interrupt port status

Arguments

              hSrio         Handle of the SRIO device
              irqPending    Per-port interrupt pending status

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_EM_INT_PORT_STAT_IRQ_PENDING

Example

            CSL_SrioHandle      hSrio;
            Uint8               irqPending;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Event Management Port Interrupt Status
            CSL_SRIO_GetEventMgmtInterruptPortStatus(hSrio, &irqPending);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetEventMgmtInterrupts | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | log,
|  | Uint8 * | mecs,
|  | Uint8 * | pwRx,
|  | Uint8 * | localLog |
| ) |  |  |

============================================================================
CSL_SRIO_GetEventMgmtInterrupts

Description
The function is used to get the Event Management Interrupts

Arguments

              hSrio         Handle of the SRIO device
              log           When set, this field enables a logical layer event
                            detected in the User Core to cause an interrupt
              mecs          When set, this field enables an interrupt to be raised
                            upon reception of an MECS with a command value that is
                            enabled
              pwRx          When set, this field enables the reception of a port-write
                            to cause an interrupt
              localLog      When set, this field enables an implementation-specific
                            Logical/Transport Layer Error to cause an interrupt

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_EM_INT_ENABLE_LOG, SRIO_RIO_EM_INT_ENABLE_MECS,
SRIO_RIO_EM_INT_ENABLE_PW_RX, SRIO_RIO_EM_INT_ENABLE_LOCALOG

Example

            CSL_SrioHandle      hSrio;
            Uint8               log;
            Uint8               mecs;
            Uint8               pwRx;
            Uint8               localLog;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Event Management Interrupts
            CSL_SRIO_GetEventMgmtInterrupts(hSrio, &log, &mecs, &pwRx, &localLog);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetEventMgmtInterruptStatus | ( | CSL_SrioHandle | hSrio,
|  | Uint32 * | intStatus |
| ) |  |  |

============================================================================
CSL_SRIO_GetEventMgmtInterruptStatus

Description
The function is used to get the Event Management Interrupt Status

Arguments

              hSrio         Handle of the SRIO device
              intStatus     Event Management Interrupt Status

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_EM_INT_STAT

Example

            CSL_SrioHandle      hSrio;
            Uint32              intStatus;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Event Management Interrupt Status
            CSL_SRIO_GetEventMgmtInterruptStatus(hSrio, &intStatus);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetEventMgmtMECSCaptureOut | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | cmdEn |
| ) |  |  |

============================================================================
CSL_SRIO_GetEventMgmtMECSCaptureOut

Description
The function is used to get the event management MECS capture out

Arguments

              hSrio         Handle of the SRIO device
              cmdEn         Enables the associated bit to toggle

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_EM_MECS_CAP_EN_CMD_EN

Example

            CSL_SrioHandle      hSrio;
            Uint8               cmdEn;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Event Management MECS Capture out
            CSL_SRIO_GetEventMgmtMECSCaptureOut(hSrio, &cmdEn);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetEventMgmtMECSInterrupt | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | mecsStatus |
| ) |  |  |

============================================================================
CSL_SRIO_GetEventMgmtMECSInterrupt

Description
The function is used to get the event management MECS interrupt enable status

Arguments

              hSrio         Handle of the SRIO device
              mecsStatus    Enables MECS with set cmd to raise an interrupt request

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_EM_MECS_INT_EN_CMD_EN

Example

            CSL_SrioHandle      hSrio;
            Uint8               mecsStatus;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Event Management MECS Interrupt status
            CSL_SRIO_GetEventMgmtMECSInterrupt(hSrio, &mecsStatus);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetEventMgmtMECSPortStatus | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | port |
| ) |  |  |

============================================================================
CSL_SRIO_GetEventMgmtMECSPortStatus

Description
The function is used to get the event management MECS Port Status

Arguments

              hSrio         Handle of the SRIO device
              port          MECS Received Status

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_EM_MECS_PORT_STAT_PORT

Example

            CSL_SrioHandle      hSrio;
            Uint8               port;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Event Management MECS Port Status
            CSL_SRIO_GetEventMgmtMECSPortStatus(hSrio, &port);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetEventMgmtMECSRequest | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | sendStatus,
|  | Uint8 * | cmd |
| ) |  |  |

============================================================================
CSL_SRIO_GetEventMgmtMECSRequest

Description
The function is used to get the event management MECS Request

Arguments

              hSrio         Handle of the SRIO device
              sendStatus    Send Status
              cmd           MECS command to be sent

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_EM_MECS_REQ_SEND, SRIO_RIO_EM_MECS_REQ_CMD

Example

            CSL_SrioHandle      hSrio;
            Uint8               sendStatus;
            Uint8               cmd;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Event Management MECS Trigger In
            CSL_SRIO_GetEventMgmtMECSRequest(hSrio, &cmdStat, &cmdEn);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetEventMgmtMECSStatus | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | mecsStatus |
| ) |  |  |

============================================================================
CSL_SRIO_GetEventMgmtMECSStatus

Description
The function is used to get the event management MECS status

Arguments

              hSrio         Handle of the SRIO device
              mecsStatus    MECS Command received by any SRIO port

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_EM_MECS_STAT_CMD_STAT

Example

            CSL_SrioHandle      hSrio;
            Uint8               mecsStatus;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Event Management MECS Status
            CSL_SRIO_GetEventMgmtMECSStatus(hSrio, &mecsStatus);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetEventMgmtMECSTriggerIn | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | cmdStat,
|  | Uint8 * | cmdEn |
| ) |  |  |

============================================================================
CSL_SRIO_GetEventMgmtMECSTriggerIn

Description
The function is used to get the event management MECS Trigger In

Arguments

              hSrio         Handle of the SRIO device
              cmdStat       Bit is set whenever an edge is detected on corresponding
              cmdEn         Enables the associated bit to trigger a MECS command

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_EM_MECS_TRIG_EN_CMD_STAT, SRIO_RIO_EM_MECS_TRIG_EN_CMD_EN

Example

            CSL_SrioHandle      hSrio;
            Uint8               cmdEn;
            Uint8               cmdStat;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Event Management MECS Trigger In
            CSL_SRIO_GetEventMgmtMECSTriggerIn(hSrio, &cmdStat, &cmdEn);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetEventMgmtPortWriteEnable | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | log,
|  | Uint8 * | localLog |
| ) |  |  |

============================================================================
CSL_SRIO_GetEventMgmtPortWriteEnable

Description
The function is used to get the Event Management Port Write Enable

Arguments

              hSrio         Handle of the SRIO device
              log           When set, this field enables a logical layer event
                            to cause a port-write to be sent.
              localLog      When set, this field enables an implementation-specific
                            Logical/Transport Layer Error to cause a port-write
                            to be sent

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_EM_PW_EN_LOG, SRIO_RIO_EM_PW_EN_LOCALOG

Example

            CSL_SrioHandle      hSrio;
            Uint8               log;
            Uint8               localLog;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Event Management Port Enable
            CSL_SRIO_GetEventMgmtPortWriteEnable(hSrio, &log, &localLog);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetEventMgmtPortWritePendingStatus | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | pwPending |
| ) |  |  |

============================================================================
CSL_SRIO_GetEventMgmtPortWritePendingStatus

Description
The function is used to get the Event Management Port Write Status

Arguments

              hSrio         Handle of the SRIO device
              pwPending     Per-port Port Write pending status

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_EM_PW_PORT_STAT_PW_PENDING

Example

            CSL_SrioHandle      hSrio;
            Uint8               pwPending;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Event Management Port Write status
            CSL_SRIO_GetEventMgmtPortWritePendingStatus(hSrio, &pwPending);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetEventMgmtPortWriteStatus | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | port,
|  | Uint8 * | log,
|  | Uint8 * | rcs,
|  | Uint8 * | multiportErr,
|  | Uint8 * | localLog |
| ) |  |  |

============================================================================
CSL_SRIO_GetEventMgmtPortWriteStatus

Description
The function is used to get the Event Management Port Write Status

Arguments

              hSrio         Handle of the SRIO device
              port          When set, a port-specific event has been detected
              log           An enabled logical layer event has been detected
              rcs           A reset request has been detected by a port
              multiportErr  Indicates that multiple ports have detected errors
                            which use port-write notification
              localLog      Implementation-specific local Logical/Transport Layer Error

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_EM_PW_STAT_PORT, SRIO_RIO_EM_PW_STAT_LOG,
SRIO_RIO_EM_PW_STAT_RCS, SRIO_RIO_EM_PW_STAT_MULTIPORT_ERR,
SRIO_RIO_EM_PW_STAT_LOCALOG

Example

            CSL_SrioHandle      hSrio;
            Uint8               port;
            Uint8               log;
            Uint8               rcs;
            Uint8               multiportErr;
            Uint8               localLog;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Event Management Port Status
            CSL_SRIO_GetEventMgmtPortWriteStatus(hSrio, &port, &log, &rcs, &multiportErr, &localLog);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetEventMgmtResetRequest | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | rstReq |
| ) |  |  |

============================================================================
CSL_SRIO_GetEventMgmtResetRequest

Description
The function is used to get the event management reset request

Arguments

              hSrio         Handle of the SRIO device
              rstReq        Per-port Reset Control Symbol event received status

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_EM_RST_PORT_STAT_RST_REQ

Example

            CSL_SrioHandle      hSrio;
            Uint8               rstReq;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Event Management Reset Request Status
            CSL_SRIO_GetEventMgmtResetRequest(hSrio, &rstReq);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetEventMgmtResetRequestInterrupt | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | rstIntEn |
| ) |  |  |

============================================================================
CSL_SRIO_GetEventMgmtResetRequestInterrupt

Description
The function is used to get the event management reset request interrupt enable status

Arguments

              hSrio         Handle of the SRIO device
              rstIntEn      Per-port Reset Request event interrupt enable

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_EM_RST_INT_EN_RST_INT_EN

Example

            CSL_SrioHandle      hSrio;
            Uint8               rstReq;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Event Management MECS Reset Request Status
            CSL_SRIO_GetEventMgmtResetRequestInterrupt(hSrio, &rstReq);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetEventMgmtResetRequestPortWrite | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | rstPwEn |
| ) |  |  |

============================================================================
CSL_SRIO_GetEventMgmtResetRequestPortWrite

Description
The function is used to get the event management reset request port write enable status

Arguments

              hSrio         Handle of the SRIO device
              rstPwEn       Per-port Reset Request port-write enable

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_EM_RST_PW_EN_RST_PW_EN

Example

            CSL_SrioHandle      hSrio;
            Uint8               rstReq;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Event Management MECS Reset Request Port Write Status
            CSL_SRIO_GetEventMgmtResetRequestPortWrite(hSrio, &rstReq);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetFabricControlPortStatus | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | port,
|  | Uint8 * | igPktEnableStatus,
|  | Uint8 * | egPktEnableStatus |
| ) |  |  |

============================================================================
CSL_SRIO_GetFabricControlPortStatus

Description
The function is used to get the Fabric control port status information.

Arguments

              hSrio                 Handle of the SRIO device
              port                  SRIO port number
              igPktEnableStatus     PBMi Packet Enable Indication
              egPktEnableStatus     PBMe Packet Enable Indication

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_SP_FABRIC_STATUS_IG_PKT_ENABLE_STATUS,
SRIO_RIO_SP_FABRIC_STATUS_EG_PKT_ENABLE_STATUS

Example

            CSL_SrioHandle      hSrio;
            Uint8               igPktEnableStatus;
            Uint8               egPktEnableStatus;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Fabric Control Port Status
            CSL_SRIO_GetFabricControlPortStatus(hSrio, 1, &igPktEnableStatus, &egPktEnableStatus);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetFabricControlStatus | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | igLLMBackPressure,
|  | Uint8 * | igUCBackPressure |
| ) |  |  |

============================================================================
CSL_SRIO_GetFabricControlStatus

Description
The function is used to get the Fabric control status information.

Arguments

              hSrio                 Handle of the SRIO device
              igLLMBackPressure     Ingress LLM backpressure indication
              igUCBackPressure      Ingress User Core backpressure indication

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_FABRIC_CSR_IG_LLM_BACKPRESSURE,SRIO_RIO_FABRIC_CSR_IG_UC_BACKPRESSURE

Example

            CSL_SrioHandle      hSrio;
            Uint8               igLLMBackPressure;
            Uint8               igUCBackPressure;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Fabric Control Status
            CSL_SRIO_GetFabricControlStatus(hSrio, &igLLMBackPressure, &igUCBackPressure);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetFlowControl | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | flowControlIdx,
|  | Uint8 * | tt,
|  | Uint16 * | dstID |
| ) |  |  |

============================================================================
CSL_SRIO_GetFlowControl

Description
The function is used to get the RIO flow control.

Arguments

              hSrio             Handle of the SRIO device
              flowControlIdx    Flow Control Index for which the configuration is required.
              tt                Flag which defines 16 bit or 8 bit identifiers populated by
                                the API
              dstID             Destination ID matching the flow populated by the API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_FLOW_CNTL_FLOW_CNTL_ID,SRIO_RIO_FLOW_CNTL_TT

Example

            CSL_SrioHandle     hSrio;
            Uint8              tt;
            Uint16             dstID;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);
            ...
            // Get the SRIO Flow Control 0
            CSL_SRIO_GetFlowControl (hSrio, 0, &tt, &dstID);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetHiAddressCapture | ( | CSL_SrioHandle | hSrio,
|  | Uint32 * | address |
| ) |  |  |

============================================================================
CSL_SRIO_GetHiAddressCapture

Description
The function is used to get the High Address capture CSR information. The contents of this register are only valid when the device is using 50- or 66-bit addressing

Arguments

              hSrio             Handle of the SRIO device
              address           Address Capture information

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_LOCAL_H_ADDR_CAPT

Example

            CSL_SrioHandle      hSrio;
            Uint32              address;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Address Capture Information
            CSL_SRIO_GetHiAddressCapture(hSrio, &address);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetHighAddressCapture | ( | CSL_SrioHandle | hSrio,
|  | Uint32 * | hiAddress |
| ) |  |  |

============================================================================
CSL_SRIO_GetHighAddressCapture

Description
The function is used to get the MSB 32 bits of the address which caused the error

Arguments

              hSrio             Handle of the SRIO device
              hiAddress         High Address populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_H_ADDR_CAPT

Example

            CSL_SrioHandle  hSrio;
            Uint32          hiAddress;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the high address information
            CSL_SRIO_GetHighAddressCapture(hSrio, &hiAddress);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetHostDeviceID | ( | CSL_SrioHandle | hSrio,
|  | Uint16 * | identifier |
| ) |  |  |

============================================================================
CSL_SRIO_GetHostDeviceID

Description
The function gets the host device identifier which is responsible for initializing the processing element.

Arguments

              hSrio             Handle of the SRIO device
              identifier        Device Identifier to be populated by this API.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_HOST_BASE_ID_LOCK_HOST_BASE_ID

Example

            CSL_SrioHandle  hSrio;
            Uint16          deviceID;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Host Device Identifier.
            CSL_SRIO_GetHostDeviceID (hSrio, &deviceID);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetIDCapture | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | msbdstId,
|  | Uint8 * | lsbdstId,
|  | Uint8 * | msbsrcId,
|  | Uint8 * | lsbsrcId |
| ) |  |  |

============================================================================
CSL_SRIO_GetIDCapture

Description
The function is used to get the source and destination id associated with the error

Arguments

              hSrio             Handle of the SRIO device
              msbdstId          MSB Destination ID
              lsbdstID          LSB Destination ID
              msbsrcId          MSB Source ID
              lsbsrcId          LSB Source ID

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_ID_CAPT_MSB_DSTID, SRIO_RIO_ID_CAPT_DSTID,
SRIO_RIO_ID_CAPT_MSB_SRCTID, SRIO_RIO_ID_CAPT_SRCID

Example

            CSL_SrioHandle  hSrio;
            Uint8           msbdstId;
            Uint8           lsbdstID;
            Uint8           msbsrcId;
            Uint8           lsbsrcId;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the address capture information which caused the error
            CSL_SRIO_GetIDCapture(hSrio, &msbdstId, &lsbdstID, &msbsrcId, &lsbsrcId);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetInitializedPortWidth | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 * | portWidth |
| ) |  |  |

============================================================================
CSL_SRIO_GetInitializedPortWidth

Description
The function is used to get the width of the port after initialization.

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number
              portWidth         Port Width populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_SP_CTL_INIT_PWIDTH

Example

            CSL_SrioHandle  hSrio;
            Uint8           portWidth;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the initialized port width for port1
            CSL_SRIO_GetInitializedPortWidth(hSrio, 1, &portWidth);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetInterruptRate | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | destination,
|  | Uint32 * | rate |
| ) |  |  |

============================================================================
CSL_SRIO_GetInterruptPacing

Description
The function gets the rate for each interrupt destination.

Arguments

              hSrio             Handle of the SRIO device
              destination       Destination Address for which the status is read.
              rate              Interrupt Rate to be configured.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_INTDST_RATE_CNT_COUNT_DOWN_VALUE

Example

            CSL_SrioHandle  hSrio;
            Uint32          rate;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Enable Interrupt Pacing for Destination 4.
            CSL_SRIO_EnableInterruptPacing (hSrio, 4);
            ...
            // Get the Interrupt rate for destination 4
            CSL_SRIO_GetInterruptRate (hSrio, 4, &rate);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetInterruptStatusDecode | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | intrDst,
|  | Uint32 * | status |
| ) |  |  |

============================================================================
CSL_SRIO_GetInterruptStatusDecode

Description
The function gets the interrupt status for a specified interrupt destination

Arguments

              hSrio             Handle of the SRIO device
              intrDst           Interrupt Destination for which the status is required.
              status            Decode Status populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_INTDST_DECODE

Example

            CSL_SrioHandle  hSrio;
            Uint32          status;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Interrupt Status for destination 0
            CSL_SRIO_GetInterruptStatusDecode (hSrio, 0, &status);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetLaneStatus | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | SRIO_LANE_STATUS * | ptrLaneStatus |
| ) |  |  |

============================================================================
CSL_SRIO_GetLaneStatus

Description
The function is used to get the lane status information.

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number
              ptrLaneStatus         Pointer to the Lane status

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_LANE_STAT0_PORT_NUM, SRIO_RIO_LANE_STAT0_LANE_NUM,
SRIO_RIO_LANE_STAT0_TX_TYPE, SRIO_RIO_LANE_STAT0_TX_MODE,
SRIO_RIO_LANE_STAT0_RX_TYPE, SRIO_RIO_LANE_STAT0_RX_INV,
SRIO_RIO_LANE_STAT0_RX_TRN, SRIO_RIO_LANE_STAT0_RX_SYNC,
SRIO_RIO_LANE_STAT0_RX_RDY, SRIO_RIO_LANE_STAT0_ERR_CNT,
SRIO_RIO_LANE_STAT0_CHG_SYNC, SRIO_RIO_LANE_STAT0_CHG_TRN,
SRIO_RIO_LANE_STAT0_STAT1, SRIO_RIO_LANE_STAT0_STAT2_7,
SRIO_RIO_LANE_STAT1_IDLE2, SRIO_RIO_LANE_STAT1_INFO_OK,
SRIO_RIO_LANE_STAT1_CHG, SRIO_RIO_LANE_STAT1_IMPL_SPEC,
SRIO_RIO_LANE_STAT1_LP_RX_TRN, SRIO_RIO_LANE_STAT1_LP_WIDTH,
SRIO_RIO_LANE_STAT1_LP_LANE_NUM, SRIO_RIO_LANE_STAT1_LP_TAP_M1,
SRIO_RIO_LANE_STAT1_LP_TAP_P1, SRIO_RIO_LANE_STAT1_LP_SCRM

Example

            CSL_SrioHandle      hSrio;
            SRIO_LANE_STATUS    laneStatus;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Lane Status Information.
            CSL_SRIO_GetLaneStatus (hSrio, 1, &laneStatus);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetLinkResponseStatusInfo | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 * | ackIdStatus,
|  | Uint8 * | linkStatus |
| ) |  |  |

============================================================================
CSL_SRIO_GetLinkResponseStatusInfo

Description
The function gets the status information about the link response.

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number
              ackIdStatus       AckID status field populated by this API
              linkStatus        Link status field populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_SP_LM_RESP_ACK_ID_STAT,SRIO_RIO_SP_LM_RESP_LINK_STAT

Example

            CSL_SrioHandle  hSrio;
            Uint8           ackIdStatus;
            Uint8           linkStatus;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Is the Link response received or not?
            if (CSL_SRIO_IsLinkResponseReceived (hSrio, 1) == TRUE)
            {
                // Link Response was received.
                CSL_SRIO_GetLinkResponseStatusInfo (hSrio, 1, &ackIdStatus, &linkStatus);
            }
            else
            {
                // Link Response was NOT received.
            }
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetLLMPortIPPrescalar | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | prescalarClock |
| ) |  |  |

============================================================================
CSL_SRIO_GetLLMPortIPPrescalar

Description
The function is used to get the LLM Port IP Prescalar

Arguments

              hSrio             Handle of the SRIO device
              prescalarClock    Prescalar clock

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PRESCALAR_SRV_CLK_PRESCALAR_SRV_CLK

Example

            CSL_SrioHandle      hSrio;
            Uint8               prescalarClock;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the LLM Port IP Prescalar Clock.
            CSL_SRIO_GetLLMPortIPPrescalar(hSrio, &prescalarClock);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetLLMResetControl | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | clearSticky |
| ) |  |  |

============================================================================
CSL_SRIO_GetLLMResetControl

Description
The function is used to get the LLM Reset Control CSR

Arguments

              hSrio             Handle of the SRIO device
              clearSticky       Allows the SELF_RST and PWDN_PORT resets to
                                clear sticky register bits in addition to the
                                normal configuration registers

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_REG_RST_CTL_CLEAR_STICKY

Example

            CSL_SrioHandle      hSrio;
            Uint8               clearSticky;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the LLM Port Reset Control CSR
            CSL_SRIO_GetLLMResetControl(hSrio, &clearSticky);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetLoAddressCapture | ( | CSL_SrioHandle | hSrio,
|  | Uint32 * | address,
|  | Uint8 * | xambs |
| ) |  |  |

============================================================================
CSL_SRIO_GetLoAddressCapture

Description
The function is used to get the Low Address capture CSR information.

Arguments

              hSrio             Handle of the SRIO device
              address           Address Capture information
              xambs             Extended address bits of the address associated
                                with the error

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_LOCAL_ADDR_CAPT_ADDR, SRIO_RIO_LOCAL_ADDR_CAPT_XAMSBS

Example

            CSL_SrioHandle      hSrio;
            Uint32              address;
            Uint8               xambs;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Address Capture Information
            CSL_SRIO_GetLoAddressCapture(hSrio, &address, &xambs);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetLocalConfig0SpaceInfo | ( | CSL_SrioHandle | hSrio,
|  | Uint16 * | baseInfo0,
|  | Uint16 * | baseInfo1 |
| ) |  |  |

============================================================================
CSL_SRIO_GetLocalConfig0SpaceInfo

Description
The function gets the local configuration space base address0 information

Arguments

              hSrio             Handle of the SRIO device
              baseInfo0         Local Configuration Base Address0
              baseInfo1         Local Configuration Base Address1

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_LCL_CFG_HBAR_LCSBA0,SRIO_RIO_LCL_CFG_HBAR_LCSBA1

Example

            CSL_SrioHandle  hSrio;
            Uint16          baseInfo0;
            Uint16          baseInfo1;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the Local configuration information
            CSL_SRIO_GetLocalConfig0SpaceInfo (hSrio, &baseInfo0, &baseInfo1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetLocalConfig1SpaceInfo | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | baseInfo0,
|  | Uint32 * | baseInfo1 |
| ) |  |  |

============================================================================
CSL_SRIO_GetLocalConfig1SpaceInfo

Description
The function gets the local configuration space base address1 Information

Arguments

              hSrio             Handle of the SRIO device
              baseInfo0         Local Configuration Base Address0
              baseInfo1         Local Configuration Base Address1

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_LCL_CFG_BAR_LCSBA0,SRIO_RIO_LCL_CFG_BAR_LCSBA1

Example

            CSL_SrioHandle  hSrio;
            Uint8           baseInfo0;
            Uint32          baseInfo1;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Local configuration1 information
            CSL_SRIO_GetLocalConfig1SpaceInfo (hSrio, &baseInfo0, &baseInfo1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetLocalControlCapture | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | ftype,
|  | Uint8 * | ttype,
|  | Uint8 * | msgInfo |
| ) |  |  |

============================================================================
CSL_SRIO_GetLocalControlCapture

Description
The function is used to get the Local Control capture CSR information

Arguments

              hSrio             Handle of the SRIO device
              ftype             FTYPE associated with the error.
              ttype             TTYPE associated with the error.
              msgInfo           Messages are not generated by SRIO-TEV2 and message
                                information is not logged

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_LOCAL_CTRL_CAPT_FTYPE,SRIO_RIO_LOCAL_CTRL_CAPT_TTYPE,
SRIO_RIO_LOCAL_CTRL_CAPT_MESSAGE_INFO

Example

            CSL_SrioHandle      hSrio;
            Uint8               ftype;
            Uint8               ttype;
            Uint8               msgInfo;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Device ID Capture information
            CSL_SRIO_GetLocalControlCapture(hSrio, &ftype, &ttype, &msgInfo);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetLSUCompletionCode | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | lsu,
|  | Uint8 | transID,
|  | Uint8 * | compCode,
|  | Uint8 * | contextBit |
| ) |  |  |

============================================================================
CSL_SRIO_GetLSUCompletionCode

Description
The function gets the completion code for a previous executed transfer.

Arguments

              hSrio             Handle of the SRIO device
              lsu               LSU Number which is to checked
              transId           Transaction ID for which the completion code is
                                required.
              compCode          Completion Code populated by this API
              contextBit        Context Bit populated by this API

Return Value
None

Pre Condition
None

Post Condition
None

Reads
SRIO_LSU_STAT_REG

Example

            CSL_SrioHandle     hSrio;
            Uint8              context;
            Uint8              transID;
            SRIO_LSU_TRANSFER  lsuTransfer;
            Uint8              compCode;
            Uint8              contextBit;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);
            ...
            // Get the LSU Context and Transaction Information.
            CSL_SRIO_GetLSUContextTransaction (hSrio, &context, &transID);
            ...
            // Send the transfer on LSU 1
            CSL_SRIO_SetLSUTransfer (hSrio, 1, &lsuTransfer);

            // Wait around till the transfer is completed.
            while (1)
            {
                if (CSL_SRIO_IsLSUBusy (hSrio, 1) == FALSE)
                    break;
            }
            // Get the completion code.
            CSL_SRIO_GetLSUCompletionCode (hSrio, 1, transID, &compCode, &contextBit);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetLSUContextTransaction | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | lsu,
|  | Uint8 * | context,
|  | Uint8 * | transID |
| ) |  |  |

============================================================================
CSL_SRIO_GetLSUContextTransaction

Description
The function gets the LSU Context bit which can be used by the transaction to identify if the context of the completion code is with respect to the current transaction or not

Arguments

              hSrio             Handle of the SRIO device
              lsu               LSU Index
              context           Context Information populated by this API
              transID           Transaction ID populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_LSU_REG6_LCB,SRIO_RIO_LSU_REG6_LTID

Example

            CSL_SrioHandle     hSrio;
            Uint8              context;
            Uint8              transID;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);
            ...
            // Get the LSU Context and Transaction Information.
            CSL_SRIO_GetLSUContextTransaction (hSrio, &context, &transID);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetLSUFlowMask | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | lsu,
|  | Uint16 * | flowMask |
| ) |  |  |

============================================================================
CSL_SRIO_GetLSUFlowMask

Description
The function is used to get the LSU Flow Masks

Arguments

              hSrio             Handle of the SRIO device
              lsu               LSU Number for which flow mask is to be retreived.
              flowMask          Flow Mask to be populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_LSU_FLOW_MASKS_LSU_FLOW_MASK

Example

            CSL_SrioHandle     hSrio;
            Uint16             flowMask;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);
            ...
            // Get the LSU Flow Mask for LSU 0
            CSL_SRIO_GetLSUFlowMask (hSrio, 0, &flowMask);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetLSUPendingInterrupt | ( | CSL_SrioHandle | hSrio,
|  | Uint32 * | lsuStatus1,
|  | Uint32 * | lsuStatus2 |
| ) |  |  |

============================================================================
CSL_SRIO_GetLSUPendingInterrupt

Description
The function returns the LSU pending interrupt status.

Arguments

              hSrio             Handle of the SRIO device
              lsuStatus1        LSU Pending Status populated by this API
              lsuStatus2        LSU Pending Status populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_LSU_ICSR

Example

            CSL_SrioHandle  hSrio;
            Uint32          lsuStatus1;
            Uint32          lsuStatus2;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Check the LSU Pending Interrupt Status.
            CSL_SRIO_GetLSUPendingInterrupt (hSrio, &lsuStatus1, &lsuStatus2);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetLSUShadowRegs | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | index,
|  | Uint8 * | count |
| ) |  |  |

============================================================================
CSL_SRIO_GetLSUShadowRegs

Description
The function is used to get the number of shadow registers associated with each LSU.

Arguments

              hSrio             Handle of the SRIO device
              lsu               LSU Index for which the count is required
              count             Number of Shadow Registers associated with the specified LSU
                                populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_LSU_SETUP_REG0_LSU0_CNT;SRIO_RIO_LSU_SETUP_REG0_LSU1_CNT; SRIO_RIO_LSU_SETUP_REG0_LSU2_CNT;SRIO_RIO_LSU_SETUP_REG0_LSU3_CNT; SRIO_RIO_LSU_SETUP_REG0_LSU4_CNT;SRIO_RIO_LSU_SETUP_REG0_LSU5_CNT; SRIO_RIO_LSU_SETUP_REG0_LSU6_CNT;SRIO_RIO_LSU_SETUP_REG0_LSU7_CNT

Example

            CSL_SrioHandle     hSrio;
            Uint8              count;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);
            ...
            // Get the number of shadow register for LSU 1
            CSL_SRIO_GetLSUShadowRegs (hSrio, 1, &count);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetLSUSwappingMode | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | mode |
| ) |  |  |

============================================================================
CSL_SRIO_GetLSUSwappingMode

Description
This function gets the Little Endian Swapping Mode for the Load Store Unit.

Arguments

              hSrio     Handle of the SRIO device
              mode      Little Endian Swapping Mode for the LSU populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PER_SET_CNTL_LSU_LEND_SWAP_MODE

Example

            CSL_SrioHandle  hSrio;
            Uint8           mode;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the LSU Swapping Mode.
            CSL_SRIO_GetLSUSwappingMode (hSrio, &mode);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetMaintBlockHeaderInfo | ( | CSL_SrioHandle | hSrio,
|  | Uint16 * | extFeatPtr,
|  | Uint16 * | extFeatID |
| ) |  |  |

============================================================================
CSL_SRIO_GetMaintBlockHeaderInfo

Description
The function gets the maintainance block header information

Arguments

              hSrio          Handle of the SRIO device
              extFeatPtr     Extended Feature Pointer populated by this API
              extFeatID      Extended Feature ID populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_SP_MB_HEAD_EF_PTR,SRIO_RIO_SP_MB_HEAD_EF_ID

Example

            CSL_SrioHandle  hSrio;
            Uint16          extFeatPtr;
            Uint16          extFeatID;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the maintainance block header
            CSL_SRIO_GetMaintBlockHeaderInfo (hSrio, &extFeatPtr, &extFeatID);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetMAUSwappingMode | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | mode |
| ) |  |  |

============================================================================
CSL_SRIO_GetMAUSwappingMode

Description
This function gets the Little Endian Swapping Mode for the Memory Access Unit.

Arguments

              hSrio     Handle of the SRIO device
              mode      Little Endian Swapping Mode for the MAU populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PER_SET_CNTL_MAU_LEND_SWAP_MODE

Example

            CSL_SrioHandle  hSrio;
            Uint8           mode;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Memory Access Unit Swapping Mode.
            CSL_SRIO_GetMAUSwappingMode (hSrio, &mode);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetMessageToQueueMapping | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | index,
|  | SRIO_MESSAGE * | ptrMessage,
|  | Uint16 * | queueId |
| ) |  |  |

============================================================================
CSL_SRIO_GetMessageToQueueMapping

Description
The function gets information about the SRIO Message and Queue to which it is mapped by reading the specified MAP 'index' register.

Arguments

              hSrio             Handle of the SRIO device
              index             Index of the MAP register
              message           Message Information populated by this API
              queueId           Destination Queue to which the message is mapped
                                populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_RXU_MAP_L_SRCID,SRIO_RIO_RXU_MAP_L_MBX,SRIO_RIO_RXU_MAP_L_LTR SRIO_RIO_RXU_MAP_L_MBX_MASK,SRIO_RIO_RXU_MAP_L_LTR_MASK,
SRIO_RIO_RXU_MAP_H_SEG_MAP,SRIO_RIO_RXU_MAP_H_SRC_PROM,SRIO_RIO_RXU_MAP_H_TT, SRIO_RIO_RXU_MAP_H_DEST_PROM,SRIO_RIO_RXU_MAP_H_DEST_ID,
SRIO_RIO_RXU_MAP_QID_DEST_QID,SRIO_RIO_RXU_MAP_QID_FLOWID

Example

            CSL_SrioHandle  hSrio;
            SRIO_MESSAGE    message;
            Uint16          queueId;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the mapping information for the 'first' mapping.
            CSL_SRIO_GetMessageToQueueMapping (hSrio, 0, &message, &queueId);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetMulticastEventParticipant | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 * | multicastEvent |
| ) |  |  |

============================================================================
CSL_SRIO_GetMulticastEventParticipant

Description
The function is used to get the Multicast Event Participant status for the specific port.

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number
              multicastEvent    Multicast Event Participant status populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_SP_CTL_MULT_CS

Example

            CSL_SrioHandle  hSrio;
            Uint8           multicastEvent;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Multicast Event Participant status for Port 1
            CSL_SRIO_GetMulticastEventParticipant(hSrio, 1, &multicastEvent);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetPacketForwarding | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | index,
|  | Uint16 * | low16bitDeviceID,
|  | Uint16 * | up16bitDeviceID,
|  | Uint8 * | low8bitDeviceID,
|  | Uint8 * | up8bitDeviceID,
|  | Uint8 * | outPort |
| ) |  |  |

============================================================================
CSL_SRIO_GetPacketForwarding

Description
The function gets the packet forwarding for the SRIO peripheral. There exist multiple packet forwarding registers and the parameter index is to used to select which register is to be retreived.

Arguments

              hSrio             Handle of the SRIO device
              index             Index of the Packet forwarding register to be configured (0-Based)
              low16bitDeviceID  Lower bound 16bit Device Identifier populated by this API
              up16bitDeviceID   Upper bound 16bit Device Identifier populated by this API
              low8bitDeviceID   Lower bound 8bit Device Identifier populated by this API
              up8bitDeviceID    Upper bound 8bit Device Identifier populated by this API
              outPort           Outgoing SRIO port populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PF_16B_CNTL_DEVID_16B_LO, SRIO_RIO_PF_16B_CNTL_DEVID_16B_UP, SRIO_RIO_PF_8B_CNTL_DEVID_8B_LO,SRIO_RIO_PF_8B_CNTL_DEVID_8B_UP, SRIO_RIO_PF_8B_CNTL_OUT_PORT

Example

            CSL_SrioHandle  hSrio;
            Uint16          low16bitDeviceID;
            Uint16          up16bitDeviceID;
            Uint8           low8bitDeviceID;
            Uint8           up8bitDeviceID;
            Uint8           outPort;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the packet forwarding entry 0.
            CSL_SRIO_GetPacketForwarding (hSrio, 0, &low16bitDeviceID, &up16bitDeviceID,
                                          &low8bitDeviceID, &up8bitDeviceID, &outPort);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetPBMPortControl | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 * | egReorderMode,
|  | Uint8 * | egReorderStick |
| ) |  |  |

============================================================================
CSL_SRIO_GetPBMPortControl

Description
The function is used to get the PBM Port Control information

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number
              egReorderMode         Reorder Mode
              egReorderStick        Number of repeat times the CRQ is reordered

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PBM_SP_CONTROL_EG_REORDER_MODE, SRIO_RIO_PBM_SP_CONTROL_EG_REORDER_STICK

Example

            CSL_SrioHandle      hSrio;
            Uint8               egReorderMode;
            Uint8               egReorderStick;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the PBM Port Control Information.
            CSL_SRIO_GetPBMPortControl(hSrio, 1, &egReorderMode, &egReorderStick);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetPBMPortEgressResources | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint16 * | dataNodes,
|  | Uint8 * | crqEntries |
| ) |  |  |

============================================================================
CSL_SRIO_GetPBMPortEgressResources

Description
The function is used to get the PBM Port Egress resources

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number
              dataNodes             Indicates the number of Data Nodes
                                    implemented in the PBMe for packet storage
              crqEntries            Indicates the number of CRQ Entries implemented in
                                    the PBMe for packet storage for the port

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PBM_SP_EG_RESOURCES_DATANODES,
SRIO_RIO_PBM_SP_EG_RESOURCES_CRQ_ENTRIES

Example

            CSL_SrioHandle      hSrio;
            Uint16              dataNodes;
            Uint8               crqEntries;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the PBM Port Egress Resources
            CSL_SRIO_GetPBMPortEgressResources(hSrio, 1, &dataNodes, &crqEntries);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetPBMPortEventGenerate | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 * | egDataOverflow,
|  | Uint8 * | egCRQOverflow,
|  | Uint8 * | egBadChannel,
|  | Uint8 * | egBabblePacket |
| ) |  |  |

============================================================================
CSL_SRIO_GetPBMPortEventGenerate

Description
The function is used to get the PBM Port Event generates

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number
              egDataOverflow        PBMe received a request to enqueue a packet
                                    for which it did not have enough data storage.
              egCRQOverflow         PBMe received a request to enqueue a packet
                                    for which it did not have CRQ Entry.
              egBadChannel          PBMe received a request to enqueue a packet
                                    on a channel enqueue interface which should be
                                    unused for the path’s Mode.
              egBabblePacket        PBMe detected a packet that exceeded 276 bytes
                                    on its enqueue interface

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PBM_SP_EVENT_GEN_EG_DATA_OVERFLOW,
SRIO_RIO_PBM_SP_EVENT_GEN_EG_CRQ_OVERFLOW,
SRIO_RIO_PBM_SP_EVENT_GEN_EG_BAD_CHANNEL,
SRIO_RIO_PBM_SP_EVENT_GEN_EG_BABBLE_PACKET

Example

            CSL_SrioHandle      hSrio;
            Uint8               egDataOverflow;
            Uint8               egCRQOverflow;
            Uint8               egBadChannel;
            Uint8               egBabblePacket;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the PBM Port Event Generates
            CSL_SRIO_GetPBMPortEventGenerate(hSrio, 1, &egDataOverflow, &egCRQOverflow,
                                          &egBadChannel, &egBabblePacket);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetPBMPortIngressPriorityWatermark | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 | priority,
|  | Uint16 * | crfWatermark,
|  | Uint16 * | priWatermark |
| ) |  |  |

============================================================================
CSL_SRIO_GetPBMPortIngressPriorityWatermark

Description
The function is used to get the PBM Port Ingress Priority Watermark configuration

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number
              priority              Priority 0,1,2 or 3
              crfWatermark          CRF Watermark
              priWatermark          Priority Watermark

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PBM_SP_IG_WATERMARK0_PRIO0CRF_WM, SRIO_RIO_PBM_SP_IG_WATERMARK0_PRIO0_WM;
SRIO_RIO_PBM_SP_IG_WATERMARK1_PRIO1CRF_WM, SRIO_RIO_PBM_SP_IG_WATERMARK1_PRIO1_WM;
SRIO_RIO_PBM_SP_IG_WATERMARK2_PRIO2CRF_WM, SRIO_RIO_PBM_SP_IG_WATERMARK2_PRIO2_WM;
SRIO_RIO_PBM_SP_IG_WATERMARK3_PRIO3CRF_WM, SRIO_RIO_PBM_SP_IG_WATERMARK3_PRIO3_WM

Example

            CSL_SrioHandle      hSrio;
            Uint16              crfWatermark;
            Uint16              priWatermark;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the PBM Port Ingress 0 Watermarks
            CSL_SRIO_GetPBMPortIngressPriorityWatermark(hSrio, 1, 0, &crfWatermark, &priWatermark);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetPBMPortIngressResources | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint16 * | dataNodes,
|  | Uint16 * | tags |
| ) |  |  |

============================================================================
CSL_SRIO_GetPBMPortIngressResources

Description
The function is used to get the PBM Port Ingress resources

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number
              dataNodes             Indicates the number of Data Nodes
                                    implemented in the PBMi for packet storage
              tags                  Indicates the number of Tags implemented in
                                    the PBMi for packet storage for the port

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PBM_SP_IG_RESOURCES_DATANODES,
SRIO_RIO_PBM_SP_IG_RESOURCES_TAGS

Example

            CSL_SrioHandle      hSrio;
            Uint16              dataNodes;
            Uint16              tags;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the PBM Port Ingress Resources
            CSL_SRIO_GetPBMPortIngressResources(hSrio, 1, &dataNodes, &tags);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetPBMPortInterrupts | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 * | egDataOverflow,
|  | Uint8 * | egCRQOverflow,
|  | Uint8 * | egBadChannel,
|  | Uint8 * | egBabblePacket |
| ) |  |  |

============================================================================
CSL_SRIO_GetPBMPortInterrupts

Description
The function is used to get the PBM Port Interrupt status

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number
              egDataOverflow        PBMe received a request to enqueue a packet
                                    for which it did not have enough data storage.
              egCRQOverflow         PBMe received a request to enqueue a packet
                                    for which it did not have CRQ Entry.
              egBadChannel          PBMe received a request to enqueue a packet
                                    on a channel enqueue interface which should be
                                    unused for the path’s Mode.
              egBabblePacket        PBMe detected a packet that exceeded 276 bytes
                                    on its enqueue interface

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PBM_SP_INT_ENABLE_EG_DATA_OVERFLOW,
SRIO_RIO_PBM_SP_INT_ENABLE_EG_CRQ_OVERFLOW,
SRIO_RIO_PBM_SP_INT_ENABLE_EG_BAD_CHANNEL,
SRIO_RIO_PBM_SP_INT_ENABLE_EG_BABBLE_PACKET

Example

            CSL_SrioHandle      hSrio;
            Uint8               egDataOverflow;
            Uint8               egCRQOverflow;
            Uint8               egBadChannel;
            Uint8               egBabblePacket;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the PBM Port Interrupts
            CSL_SRIO_GetPBMPortInterrupts(hSrio, 1, &egDataOverflow, &egCRQOverflow,
                                          &egBadChannel, &egBabblePacket);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetPBMPortStatus | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 * | igEmpty,
|  | Uint8 * | egEmpty,
|  | Uint8 * | egDataOverflow,
|  | Uint8 * | egCRQOverflow,
|  | Uint8 * | egBadChannel,
|  | Uint8 * | egBabblePacket |
| ) |  |  |

============================================================================
CSL_SRIO_GetPBMPortStatus

Description
The function is used to get the PBM Port Status

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number
              igEmpty               PBMi Queue Status
              egEmpty               PBMe Queue Status
              egDataOverflow        PBMe received a request to enqueue a packet
                                    for which it did not have enough data storage.
              egCRQOverflow         PBMe received a request to enqueue a packet
                                    for which it did not have CRQ Entry.
              egBadChannel          PBMe received a request to enqueue a packet
                                    on a channel enqueue interface which should be
                                    unused for the path’s Mode.
              egBabblePacket        PBMe detected a packet that exceeded 276 bytes
                                    on its enqueue interface

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PBM_SP_STATUS_IG_EMPTY, SRIO_RIO_PBM_SP_STATUS_EG_EMPTY,
SRIO_RIO_PBM_SP_STATUS_EG_DATA_OVERFLOW, SRIO_RIO_PBM_SP_STATUS_EG_CRQ_OVERFLOW,
SRIO_RIO_PBM_SP_STATUS_EG_BAD_CHANNEL, SRIO_RIO_PBM_SP_STATUS_EG_BABBLE_PACKET

Example

            CSL_SrioHandle      hSrio;
            Uint8               igEmpty;
            Uint8               egEmpty;
            Uint8               egDataOverflow;
            Uint8               egCRQOverflow;
            Uint8               egBadChannel;
            Uint8               egBabblePacket;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the PBM Port Status
            CSL_SRIO_GetPBMPortStatus(hSrio, 1, &igEmpty, &egEmpty,
                                      &egDataOverflow, &egCRQOverflow, &egBadChannel, &egBabblePacket);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetPBMPortWriteEnables | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 * | egDataOverflow,
|  | Uint8 * | egCRQOverflow,
|  | Uint8 * | egBadChannel,
|  | Uint8 * | egBabblePacket |
| ) |  |  |

============================================================================
CSL_SRIO_GetPBMPortWriteEnables

Description
The function is used to get the PBM Port Write Enables

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number
              egDataOverflow        PBMe received a request to enqueue a packet
                                    for which it did not have enough data storage.
              egCRQOverflow         PBMe received a request to enqueue a packet
                                    for which it did not have CRQ Entry.
              egBadChannel          PBMe received a request to enqueue a packet
                                    on a channel enqueue interface which should be
                                    unused for the path’s Mode.
              egBabblePacket        PBMe detected a packet that exceeded 276 bytes
                                    on its enqueue interface

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PBM_SP_PW_ENABLE_EG_DATA_OVERFLOW,
SRIO_RIO_PBM_SP_PW_ENABLE_EG_CRQ_OVERFLOW,
SRIO_RIO_PBM_SP_PW_ENABLE_EG_BAD_CHANNEL,
SRIO_RIO_PBM_SP_PW_ENABLE_EG_BABBLE_PACKET

Example

            CSL_SrioHandle      hSrio;
            Uint8               egDataOverflow;
            Uint8               egCRQOverflow;
            Uint8               egBadChannel;
            Uint8               egBabblePacket;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the PBM Port Write Enables
            CSL_SRIO_GetPBMPortWriteEnables(hSrio, 1, &egDataOverflow, &egCRQOverflow,
                                          &egBadChannel, &egBabblePacket);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetPEExtendedAddressingControl | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | controlInfo |
| ) |  |  |

============================================================================
CSL_SRIO_GetPEExtendedAddressingControl

Description
The function gets the processing element extended addressing control

Arguments

              hSrio             Handle of the SRIO device
              controlInfo       Extended Addressing Control Information populated

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PE_LL_CTL_EXT_ADDR_CTL

Example

            CSL_SrioHandle  hSrio;
            Uint8           controlInfo;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Extended Addressing Control Information
            CSL_SRIO_GetPEExtendedAddressingControl (hSrio, &controlInfo);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetPID | ( | CSL_SrioHandle | hSrio,
|  | Uint32 * | pid |
| ) |  |  |

============================================================================
CSL_SRIO_GetPID

Description
This function reads the peripheral ID register which identifies the peripheral number for the peripheral.

Arguments

              revInfo      Peripheral Revision populated by this API
              classInfo    Peripheral class populated by this API
              typeInfo     Peripheral Type populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PID

Example

            Uint32          pid;
            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the SRIO Peripheral Identification.
            CSL_SRIO_GetPID (hSrio, &pid);

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetPLMPortCSTransmit | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | SRIO_PLM_CONTROL_SYMBOL * | ptrCSTransmit |
| ) |  |  |

============================================================================
CSL_SRIO_GetPLMPortCSTransmit

Description
The function is used to get the Control Symbol Transmit1

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number
              ptrCSTransmit         Control Symbol Transmit Configuration

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PLM_SP_LONG_CS_TX1_STYPE_0, SRIO_RIO_PLM_SP_LONG_CS_TX1_PAR_0,
SRIO_RIO_PLM_SP_LONG_CS_TX1_PAR_1, SRIO_RIO_PLM_SP_LONG_CS_TX1_CS_EMB,
SRIO_RIO_PLM_SP_LONG_CS_TX1_STYPE_1, SRIO_RIO_PLM_SP_LONG_CS_TX1_CMD,
SRIO_RIO_PLM_SP_LONG_CS_TX2_STYPE_2, SRIO_RIO_PLM_SP_LONG_CS_TX2_PARM

Example

            CSL_SrioHandle              hSrio;
            SRIO_PLM_CONTROL_SYMBOL     cntlSymbol;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the PLM Port Control Symbol Transmit Configuration
            CSL_SRIO_GetPLMPortCSTransmit(hSrio, 1, &cntlSymbol);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetPLMPortDiscoveryTimer | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 * | portDiscoveryTimer |
| ) |  |  |

============================================================================
CSL_SRIO_GetPLMPortDiscoveryTimer

Description
The function is used to get the PLM Port Discovery timer

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number
              portDiscoveryTimer    PLM Port Discovery Timer

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PLM_SP_DISCOVERY_TIMER_DISCOVERY_TIMER

Example

            CSL_SrioHandle  hSrio;
            Uint8           portDiscoveryTimer;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the PLM Discovery Timer
            CSL_SRIO_GetPLMPortDiscoveryTimer(hSrio, 1, &portDiscoveryTimer);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetPLMPortEventGenerate | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 * | eventStatus |
| ) |  |  |

============================================================================
CSL_SRIO_GetPLMPortEventGenerate

Description
The function is used to get the current status of the PLM events.

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number
              eventStatus       Current PLM event status

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PLM_SP_EVENT_GEN

Example

            CSL_SrioHandle  hSrio;
            Uint8           eventStatus;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the current PLM event generate
            CSL_SRIO_GetPLMPortEventGenerate(hSrio, 1, &eventStatus);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetPLMPortInterrupts | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 * | intStatus |
| ) |  |  |

============================================================================
CSL_SRIO_GetPLMPortInterrupts

Description
The function is used to get the current status of the PLM Port Interrupts

Arguments

              hSrio         Handle of the SRIO device
              portNum       SRIO Port Number
              intStatus     Current Interrupt status of the PLM port interrupts

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PLM_SP_INT_ENABLE

Example

            CSL_SrioHandle  hSrio;
            Uint8           intStatus;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the current interrupt status
            CSL_SRIO_GetPLMPortInterrupts(hSrio, 1, &intStatus);

            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetPLMPortMECSForwarding | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 * | subscription |
| ) |  |  |

============================================================================
CSL_SRIO_GetPLMPortMECSForwarding

Description
The function is used to get the PLM Port MECS Forwarding

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number
              subscription          Specifies which MECS cmd values the port
                                    should forward to its link

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PLM_SP_MECS_FWD_SUBSCRIPTION

Example

            CSL_SrioHandle  hSrio;
            Uint8           subscription;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the PLM Port MECS Forwarding
            CSL_SRIO_GetPLMPortMECSForwarding(hSrio, 1, &subscription);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetPLMPortMECSStatus | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 * | cmd |
| ) |  |  |

============================================================================
CSL_SRIO_GetPLMPortMECSStatus

Description
The function is used to get the PLM Port MECS status

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number
              cmd                   Indicates which MECS commands have been received.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PLM_SP_RCVD_MECS_CMD_STAT

Example

            CSL_SrioHandle  hSrio;
            Uint8           cmd;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the PLM Port MECS Status
            CSL_SRIO_GetPLMPortMECSStatus(hSrio, 1, &cmd);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetPLMPortPacketDenialControl | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 * | cntPacketNotAccepted,
|  | Uint8 * | cntRetry,
|  | Uint8 * | denialThreshold |
| ) |  |  |

============================================================================
CSL_SRIO_GetPLMPortPacketDenialControl

Description
The function is used to get the PLM Port Packet Denial.

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number
              cntPacketNotAccepted  Controls whether Packet-Not-Accepted control
                                    symbols count toward the packet denial threshold value
              cntRetry              Controls whether Retry control symbols count toward
                                    the packet denial threshold value
              denialThreshold       Sets the threshold for reporting too many consecutive retries

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PLM_SP_DENIAL_CTL_CNT_PNA, SRIO_RIO_PLM_SP_DENIAL_CTL_CNT_RTY,
SRIO_RIO_PLM_SP_DENIAL_CTL_DENIAL_THRESH

Example

            CSL_SrioHandle  hSrio;
            Uint8           cntPacketNotAccepted;
            Uint8           cntRetry;
            Uint8           denialThreshold;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the PLM Port Packet Denial
            CSL_SRIO_GetPLMPortPacketDenialControl(hSrio, 1, &cntPacketNotAccepted, &cntRetry, &denialThreshold);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetPLMPortPathControl | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 * | pathID,
|  | Uint8 * | pathConfig,
|  | Uint8 * | pathMode |
| ) |  |  |

============================================================================
CSL_SRIO_GetPLMPortPathControl

Description
The function is used to get the PLM Port Path control

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number
              pathID            Identifies the Path in which this port resides.
              pathConfig        Indicates the Path’s configuration
              pathMode          The mode of the path

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PLM_SP_PATH_CTL_PATH_ID,SRIO_RIO_PLM_SP_PATH_CTL_PATH_CONFIGURATION,
SRIO_RIO_PLM_SP_PATH_CTL_PATH_MODE

Example

            CSL_SrioHandle  hSrio;
            Uint8           pathID;
            Uint8           pathConfig;
            Uint8           pathMode;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the PLM Port1 Path Control
            CSL_SRIO_GetPLMPortPathControl(hSrio, 1, &pathID, &pathConfig, &pathMode);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetPLMPortPolarityControl | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | SRIO_PLM_POLARITY_CONTROL * | ptrPolarityConfig |
| ) |  |  |

============================================================================
CSL_SRIO_GetPLMPortPolarityControl

Description
The function is used to get the PLM Port Polarity Control

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number
              ptrPolarityConfig     PLM Port Polarity configuration

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PLM_SP_POL_CTL_TX3_POL, SRIO_RIO_PLM_SP_POL_CTL_TX2_POL,
SRIO_RIO_PLM_SP_POL_CTL_TX1_POL, SRIO_RIO_PLM_SP_POL_CTL_TX0_POL,
SRIO_RIO_PLM_SP_POL_CTL_RX3_POL, SRIO_RIO_PLM_SP_POL_CTL_RX2_POL,
SRIO_RIO_PLM_SP_POL_CTL_RX1_POL, SRIO_RIO_PLM_SP_POL_CTL_RX0_POL

Example

            CSL_SrioHandle              hSrio;
            SRIO_PLM_POLARITY_CONTROL   polarityControlConfig;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the PLM Port Polarity Control Configuration.
            CSL_SRIO_GetPLMPortPolarityControl(hSrio, 1, &polarityControlConfig);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetPLMPortPowerDownControl | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 * | powerDownStatus |
| ) |  |  |

============================================================================
CSL_SRIO_GetPLMPortPowerDownControl

Description
The function is used to get the PLM Port Power Down status

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number
              powerDownStatus       Power Down Status

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PLM_SP_PWDN_CTL_PWDN_PORT

Example

            CSL_SrioHandle  hSrio;
            Uint8           powerDownStatus;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the PLM Power Down Status
            CSL_SRIO_GetPLMPortPowerDownControl (hSrio, 1, &powerDownStatus);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetPLMPortSilenceTimer | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 * | portSilenceTimer |
| ) |  |  |

============================================================================
CSL_SRIO_GetPLMPortSilenceTimer

Description
The function is used to get the PLM Port Silence timer

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number
              portSilenceTimer      PLM Port Silence Timer

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PLM_SP_SILENCE_TIMER_SILENCE_TIMER

Example

            CSL_SrioHandle  hSrio;
            Uint8           portSilenceTimer;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the PLM Silence Timer
            CSL_SRIO_GetPLMPortSilenceTimer(hSrio, 1, &portSilenceTimer);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetPLMPortVMinExponentConfig | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | SRIO_PLM_VMIN_EXPONENT * | ptrVminExponent |
| ) |  |  |

============================================================================
CSL_SRIO_GetPLMPortVMinExponentConfig

Description
The function is used to get the PLM Port VMin Export configuration

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number
              ptrVminExponent       PLM Port VMin Exponent configuration

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PLM_SP_VMIN_EXP_VMIN_EXP, SRIO_RIO_PLM_SP_VMIN_EXP_IMAX,
SRIO_RIO_PLM_SP_VMIN_EXP_MMAX

Example

            CSL_SrioHandle          hSrio;
            SRIO_PLM_VMIN_EXPONENT  vminExponentConfig;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the PLM Port VMin Exponent Configuration.
            CSL_SRIO_GetPLMPortVMinExponentConfig(hSrio, 1, &vminExponentConfig);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetPLMPortWriteEnables | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 * | portWriteStatus |
| ) |  |  |

============================================================================
CSL_SRIO_GetPLMPortWriteEnables

Description
The function is used to get the current status of the PLM Port Write enables. These events will enable a port write notification

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number
              portWriteStatus   Current port write event status

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PLM_SP_PW_ENABLE

Example

            CSL_SrioHandle  hSrio;
            Uint8           portWriteStatus;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the current interrupt status
            CSL_SRIO_GetPLMPortWriteEnables(hSrio, 1, &portWriteStatus);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetPortBaudRate | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 * | baudSel |
| ) |  |  |

============================================================================
CSL_SRIO_GetPortBaudRate

Description
The function is used to get the initialized baud rate of the port

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number
              baudSel           Baud Rate Selection populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_SP_CTL2_BAUD_SEL

Example

            CSL_SrioHandle  hSrio;
            Uint8           baudSel;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Port 1 Baud Rate
            CSL_SRIO_GetPortBaudRate (hSrio, 1, &baudSel);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetPortError | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint32 * | errStatus |
| ) |  |  |

============================================================================
CSL_SRIO_GetPortError

Description
The function is used to get the physical layer errors that have been detected by the Port hardware

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number
              errStatus         Error Status populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_SP_ERR_DET

Example

            CSL_SrioHandle  hSrio;
            Uint32          errStatus;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Port 1 Error Status
            CSL_SRIO_GetPortError(hSrio, 1, &errStatus);
            if (errStatus != 0)
            {
                // Port Errors detected
            }
            else
            {
                // No Port Errors detected
            }
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetPortGeneralCSR | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | hostDev,
|  | Uint8 * | masterEn,
|  | Uint8 * | disc |
| ) |  |  |

============================================================================
CSL_SRIO_GetPortGeneralCSR

Description
The functions gets the CSR information for all ports.

Arguments

              hSrio          Handle of the SRIO device
              hostDev        Host /Agent or Slave Device populated by this API
              masterEn       Master Enable populated by this API
              disc           Discovered flag populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_SP_GEN_CTL_HOST,SRIO_RIO_SP_GEN_CTL_MAST_EN,SRIO_RIO_SP_GEN_CTL_DISC

Example

            CSL_SrioHandle hSrio;
            Uint8          hostDev;
            Uint8          masterEn;
            Uint8          disc;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the port information.
            CSL_SRIO_GetPortGeneralCSR (hSrio, &hostDev, &masterEn, &disc);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetPortLinkTimeoutCSR | ( | CSL_SrioHandle | hSrio,
|  | Uint32 * | timeout |
| ) |  |  |

============================================================================
CSL_SRIO_GetPortLinkTimeoutCSR

Description
The functions gets the port link timeout. This timeout is for link events such as sending a packet to receiving the corresponding acknowledge, and sending a link-request to receiving the corresponding link-response

Arguments

              hSrio          Handle of the SRIO device
              timeout        Timeout value populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_SP_LT_CTL_TVAL

Example

            CSL_SrioHandle  hSrio;
            Uint32          timeout;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the port link timeout
            CSL_SRIO_GetPortLinkTimeoutCSR (hSrio, &timeout);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetPortNumberInfo | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | portNum,
|  | Uint8 * | totalPort |
| ) |  |  |

============================================================================
CSL_SRIO_GetPortNumberInfo

Description
The function is used to get the port number information

Arguments

              hSrio         Handle of the SRIO device
              portNum       Port Number
              totalPort     Total number of ports

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PORT_NUMBER_PORT_NUM,SRIO_RIO_PORT_NUMBER_PORT_TOTAL

Example

            CSL_SrioHandle      hSrio;
            Uint8               portNum;
            Uint8               totalPort;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Port Information
            CSL_SRIO_GetPortNumberInfo(hSrio, &portNum, &totalPort);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetPortPLMImplSpecificControl | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | SRIO_PLM_IMPL_CONTROL * | ptrPLMControl |
| ) |  |  |

============================================================================
CSL_SRIO_GetPortPLMImplSpecificControl

Description
The function is used to get the PLM Implementation Specific control

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number
              ptrPLMControl         Pointer to the PLM Implementation specific control

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PLM_SP_IMP_SPEC_CTL_PAYL_CAP, SRIO_RIO_PLM_SP_IMP_SPEC_CTL_USE_IDLE2,
SRIO_RIO_PLM_SP_IMP_SPEC_CTL_USE_IDLE1, SRIO_RIO_PLM_SP_IMP_SPEC_CTL_DLB_EN,
SRIO_RIO_PLM_SP_IMP_SPEC_CTL_FORCE_REINIT, SRIO_RIO_PLM_SP_IMP_SPEC_CTL_SOFT_RST_PORT,
SRIO_RIO_PLM_SP_IMP_SPEC_CTL_TX_BYPASS, SRIO_RIO_PLM_SP_IMP_SPEC_CTL_LLB_EN,
SRIO_RIO_PLM_SP_IMP_SPEC_CTL_PORT_SELF_RST, SRIO_RIO_PLM_SP_IMP_SPEC_CTL_SELF_RST,
SRIO_RIO_PLM_SP_IMP_SPEC_CTL_SWAP_TX, SRIO_RIO_PLM_SP_IMP_SPEC_CTL_SWAP_RX,
SRIO_RIO_PLM_SP_IMP_SPEC_CTL_DLT_THRESH

Example

            CSL_SrioHandle          hSrio;
            SRIO_PLM_IMPL_CONTROL   implControl;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the PLM Implementation specific control
            CSL_SRIO_GetPortPLMImplSpecificControl (hSrio, 1, &implControl);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetPortResponseTimeoutCSR | ( | CSL_SrioHandle | hSrio,
|  | Uint32 * | timeout |
| ) |  |  |

============================================================================
CSL_SRIO_GetPortResponseTimeoutCSR

Description
The functions gets the port response timeout. This timeout is for sending a packet to receiving the corresponding response packet

Arguments

              hSrio          Handle of the SRIO device
              timeout        Timeout value populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_SP_RT_CTL_TVAL

Example

            CSL_SrioHandle  hSrio;
            Uint32          timeout;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the port response timeout
            CSL_SRIO_GetPortResponseTimeoutCSR (hSrio, &timeout);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetPortType | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 * | portType |
| ) |  |  |

============================================================================
CSL_SRIO_GetPortType

Description
The function is used to get the port type.

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number
              portType          Port Type populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_SP_CTL_PTYP

Example

            CSL_SrioHandle  hSrio;
            Uint8           portType;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Disable port lockout for port 1
            CSL_SRIO_GetPortType(hSrio, 1, &portType);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetPortWriteControl | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | pwTimer,
|  | Uint8 * | pwcMode |
| ) |  |  |

============================================================================
CSL_SRIO_GetPortWriteControl

Description
The function is used to get the port write control information

Arguments

              hSrio         Handle of the SRIO device
              pwTimer       Port Write Timer
              pwcMode       Port Write Capture Mode

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PW_CTL_PW_TIMER, SRIO_RIO_PW_CTL_PWC_MODE

Example

            CSL_SrioHandle      hSrio;
            Uint8               pwTimer;
            Uint8               pwcMode;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Port Write Control
            CSL_SRIO_GetPortWriteControl(hSrio, &pwTimer, &pwcMode);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetPortWriteDeviceId | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | msbTargetId,
|  | Uint8 * | lsbTargetID,
|  | Uint8 * | lrgTrans |
| ) |  |  |

============================================================================
CSL_SRIO_GetPortWriteDeviceId

Description
The function is used to get the target device ID to be used when a device generates a Maintenance Port-Write operation to report errors to a system host.

Arguments

              hSrio             Handle of the SRIO device
              msbTargetId       Most significant byte of Port-Write Target device ID
              lsbTargetID       Least significant byte of Port-Write Target device ID
              lrgTrans          DeviceID size to use for a port-write

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PW_TGT_ID_DEVICEID_MSB,SRIO_RIO_PW_TGT_ID_DEVICEID,
SRIO_RIO_PW_TGT_ID_ID_LARGE

Example

            CSL_SrioHandle  hSrio;
            Uint8           msbTargetId;
            Uint8           lsbTargetID;
            Uint8           lrgTrans;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Port Write Target Device ID information.
            CSL_SRIO_GetPortWriteDeviceId(hSrio, &msbTargetId, &lsbTargetID, &lrgTrans);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetPortWriteEventGenerate | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | pwDisc,
|  | Uint8 * | pwVal |
| ) |  |  |

============================================================================
CSL_SRIO_GetPortWriteEventGenerate

Description
The function is used to get the port write reception status

Arguments

              hSrio         Handle of the SRIO device
              pwDisc        Port-write discard event generate status
              pwVal         Port-write data event generate status

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PW_RX_EVENT_GEN_PW_DISC, SRIO_RIO_PW_RX_EVENT_GEN_PW_VAL

Example

            CSL_SrioHandle      hSrio;
            Uint8               pwDisc;
            Uint8               pwVal;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Port Write Event Generate Status
            CSL_SRIO_GetPortWriteEventGenerate(hSrio, &pwDisc, &pwVal);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetPortWriteReceptionCapture | ( | CSL_SrioHandle | hSrio,
|  | Uint32 * | cap0,
|  | Uint32 * | cap1,
|  | Uint32 * | cap2,
|  | Uint32 * | cap3 |
| ) |  |  |

============================================================================
CSL_SRIO_GetPortWriteReceptionCapture

Description
The function is used to get the port write reception capture

Arguments

              hSrio         Handle of the SRIO device
              cap0          Reception Capture 0
              cap1          Reception Capture 1
              cap2          Reception Capture 2
              cap3          Reception Capture 3

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PW_RX_CAPT

Example

            CSL_SrioHandle      hSrio;
            Uint32              cap0;
            Uint32              cap1;
            Uint32              cap2;
            Uint32              cap3;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Port Write Reception Capture
            CSL_SRIO_GetPortWriteReceptionCapture(hSrio, &cap0, &cap1, &cap2, &cap3);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetPortWriteReceptionStatus | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | wrSize,
|  | Uint8 * | wdPtr,
|  | Uint8 * | pwDisc,
|  | Uint8 * | pwVal |
| ) |  |  |

============================================================================
CSL_SRIO_GetPortWriteReceptionStatus

Description
The function is used to get the port write reception status

Arguments

              hSrio         Handle of the SRIO device
              wrSize        WRSIZE, in combination with WDPTR, are used to
                            determine the maximum size of the port-write which has
                            been received
              wdPtr         WDPTR, in combination with WRSIZE, are used to
                            determine the maximum size of the port-write which has
                            been received
              pwDisc        Port-write was discarded
              pwVal         Port-write data registers contain valid data

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PW_RX_STAT_WR_SIZE, SRIO_RIO_PW_RX_STAT_WDPTR,
SRIO_RIO_PW_RX_STAT_PW_DISC, SRIO_RIO_PW_RX_STAT_PW_VAL,

Example

            CSL_SrioHandle      hSrio;
            Uint8               wrSize;
            Uint8               wdPtr;
            Uint8               pwDisc;
            Uint8               pwVal;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Port Write Reception Status
            CSL_SRIO_GetPortWriteReceptionStatus(hSrio, &wrSize, &wdPtr, &pwDisc, &pwVal);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetPortWriteRouting | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | port |
| ) |  |  |

============================================================================
CSL_SRIO_GetPortWriteRouting

Description
The function is used to get the port write routing

Arguments

              hSrio         Handle of the SRIO device
              port          Indicates if a port-write should be sent to this port.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PW_ROUTE_PORT

Example

            CSL_SrioHandle      hSrio;
            Uint8               port;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Port Write Control
            CSL_SRIO_GetPortWriteRouting(hSrio, &port);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetPrescalarSelect | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | prescalarSelect |
| ) |  |  |

============================================================================
CSL_SRIO_GetPrescalarSelect

Description
This function gets the prescalar select for SRIO

Arguments

              hSrio             Handle of the SRIO device
              prescalarSelect   Prescalar Select which is to be retrieved.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PER_SET_CNTL_PRESCALER_SELECT

Example

            CSL_SrioHandle  hSrio;
            Uint8           prescalarSelect;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the SRIO Prescalar select.
            CSL_SRIO_GetPrescalarSelect (hSrio, &prescalarSelect);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetProcessingElementFeatures | ( | CSL_SrioHandle | hSrio,
|  | SRIO_PE_FEATURES * | ptrPEFeatures |
| ) |  |  |

============================================================================
CSL_SRIO_GetProcessingElementFeatures

Description
The function gets the processing element features.

Arguments

              hSrio             Handle of the SRIO device
              peFeatures        Processing Element Features to be populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PE_FEAT_BRDG,SRIO_RIO_PE_FEAT_MEM,SRIO_RIO_PE_FEAT_PROC,
SRIO_RIO_PE_FEAT_SW,SRIO_RIO_PE_FEAT_MULT_P,SRIO_RIO_PE_FEAT_FLOW_ARB,
SRIO_RIO_PE_FEAT_MC,SRIO_RIO_PE_FEAT_ERTC,SRIO_RIO_PE_FEAT_SRTC,
SRIO_RIO_PE_FEAT_FLOW_CTRL, SRIO_RIO_PE_FEAT_CRF,
SRIO_RIO_PE_FEAT_CTLS,SRIO_RIO_PE_FEAT_EXT_FEA,SRIO_RIO_PE_FEAT_EXT_AS

Example

            CSL_SrioHandle      hSrio;
            SRIO_PE_FEATURES    peFeatures;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the processing element features.
            CSL_SRIO_GetProcessingElementFeatures (hSrio, &peFeatures);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetQMBaseAddress | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | qmIndex,
|  | Uint32 * | qmBaseAddress |
| ) |  |  |

============================================================================
CSL_SRIO_GetQMBaseAddress

Description
The function gets the QM base address

Arguments

              hSrio             Handle of the SRIO device
              qmIndex           Index of the Queue Manager whose base address is needed
              qmBaseAddress     QM Base Address populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_QM_BASE_ADDRESS_REG

Example

            CSL_SrioHandle  hSrio;
            Uint32          qmBaseAddress;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);
            ...
            // Get the QM Base Address information for 0
            CSL_SRIO_GetQMBaseAddress(hSrio, 0, &qmBaseAddress);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetResponseCRF | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | value |
| ) |  |  |

============================================================================
CSL_SRIO_GetResponseCRF

Description
This function gets the CRF value in the response

Arguments

              hSrio             Handle of the SRIO device
              value             CRF value populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PER_SET_CNTL1_CRF

Example

            CSL_SrioHandle  hSrio;
            Uint8           crfValue;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Response CRF
            CSL_SRIO_GetResponseCRF (hSrio, &crfValue);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetRXUWatermark | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | value |
| ) |  |  |

============================================================================
CSL_SRIO_GetRXUWatermark

Description
This function gets the RXU Watermark setting

Arguments

              hSrio             Handle of the SRIO device
              value             RXU Watermark setting read

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PER_SET_CNTL1_RXU_WATERMARK

Example

            CSL_SrioHandle  hSrio;
            Uint8           value;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the RXU Watermark
            CSL_SRIO_GetRXUWatermark (hSrio, &value);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetSoftwarePortWidth | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 * | portWidth |
| ) |  |  |

============================================================================
CSL_SRIO_GetSoftwarePortWidth

Description
The function is used to get the software port configuration to override the hardware sizes.

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number
              portWidth         Port Width populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_SP_CTL_OVER_PWIDTH

Example

            CSL_SrioHandle  hSrio;
            Uint8           portWidth;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the software port width override
            CSL_SRIO_GetSoftwarePortWidth(hSrio, 1, &portWidth);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetSourceOperationCAR | ( | CSL_SrioHandle | hSrio,
|  | SRIO_OP_CAR * | ptrSrcOp |
| ) |  |  |

============================================================================
CSL_SRIO_GetSourceOperationCAR

Description
The function reads the Switch Port Capabilities which are all the logical operations that can be issued by the application.

Arguments

              hSrio             Handle of the SRIO device
              ptrSrcOp          Pointer to the Source CAR Structure populated by this
                                API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_SRC_OP_G_READ, SRIO_RIO_SRC_OP_G_IREAD, SRIO_RIO_SRC_OP_G_READ_OWN,
SRIO_RIO_SRC_OP_G_DC_INVALIDATE, SRIO_RIO_SRC_OP_G_CASTOUT, SRIO_RIO_SRC_OP_G_DC_FLUSH,
SRIO_RIO_SRC_OP_G_IO_READ, SRIO_RIO_SRC_OP_G_IC_INVALIDATE, SRIO_RIO_SRC_OP_G_TLB_INVALIDATE,
SRIO_RIO_SRC_OP_G_TLB_SYNC, SRIO_RIO_SRC_OP_DS_TM, SRIO_RIO_SRC_OP_DS,
SRIO_RIO_SRC_OP_IMPLEMENT_DEF, SRIO_RIO_SRC_OP_READ, SRIO_RIO_SRC_OP_WRITE,
SRIO_RIO_SRC_OP_STRM_WR, SRIO_RIO_SRC_OP_WR_RES, SRIO_RIO_SRC_OP_D_MSG, SRIO_RIO_SRC_OP_DBELL,
SRIO_RIO_SRC_OP_ACSWAP, SRIO_RIO_SRC_OP_ATSWAP, SRIO_RIO_SRC_OP_A_INC, SRIO_RIO_SRC_OP_A_DEC,
SRIO_RIO_SRC_OP_A_SET, SRIO_RIO_SRC_OP_A_CLEAR, SRIO_RIO_SRC_OP_A_SWAP, SRIO_RIO_SRC_OP_PORT_WR,
SRIO_RIO_SRC_OP_IMPLEMENT_DEF2

Example

            CSL_SrioHandle  hSrio;
            SRIO_OP_CAR     srcOPCAR;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Source Operation CAR
            CSL_SRIO_GetSourceOperationCAR (hSrio, &srcOPCAR);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetSupervisorPerms | ( | CSL_SrioHandle | hSrio,
|  | Uint16 * | supervisor16ID,
|  | Uint8 * | supervisor8ID |
| ) |  |  |

============================================================================
CSL_SRIO_GetSupervisorPerms

Description
The function is used to get the supervisor source ID.

Arguments

              hSrio             Handle of the SRIO device
              supervisor16ID    16 bit Supervisor ID populated by this API
              supervisor8ID     8 bit Supervisor ID populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_SUPERVISOR_ID_16B_SUPRVSR_ID,SRIO_RIO_SUPERVISOR_ID_8B_SUPRVSR_ID

Example

            CSL_SrioHandle     hSrio;
            Uint8              super8ID;
            Uint16             super16ID;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);
            ...
            // Get the Supervisor Permissions.
            CSL_SRIO_GetSupervisorPerms (hSrio, &super16ID, &super8ID);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetSupportedPortWidth | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 * | portWidth |
| ) |  |  |

============================================================================
CSL_SRIO_GetSupportedPortWidth

Description
The function is used to get the supported port width for a specific port in addition to the 1x mode which is supported by all ports.

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number
              portWidth         Port Width populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_SP_CTL_PORT_WIDTH

Example

            CSL_SrioHandle  hSrio;
            Uint8           portWidth;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the supported port width for port1
            CSL_SRIO_GetSupportedPortWidth(hSrio, 1, &portWidth);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetSwitchPortInfo | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | numPorts,
|  | Uint8 * | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_GetSwitchPortInfo

Description
The function reads the Switch Port information.

Arguments

              hSrio             Handle of the SRIO device
              numPorts          The total number of ports populated by this API
              portNum           The port number from which the Maintenance read operation
                                accessed this register.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_SW_PORT_PORT_TOTAL,SRIO_RIO_SW_PORT_PORT_NUM

Example

            CSL_SrioHandle  hSrio;
            Uint8           numPorts;
            Uint8           portNum;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Switch port information
            CSL_SRIO_GetSwitchPortInfo (hSrio, &numPorts, &portNum);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetSysClkSel | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | value |
| ) |  |  |

============================================================================
CSL_SRIO_GetSysClkSel

Description
This function retrieves the SYS_CLK source for the port.

Arguments

              hSrio             Handle of the SRIO device
              value             SYS_CLK source read

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PER_SET_CNTL1_SYS_CLK_SEL

Example

            CSL_SrioHandle  hSrio;
            Uint8           value;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the SYS_CLK source
            CSL_SRIO_GetSysClkSel (hSrio, &value);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetTimeoutCnt | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | timeoutCnt |
| ) |  |  |

============================================================================
CSL_SRIO_GetTimeoutCnt

Description
The function is used to get the number of timecode changes after an error condition before the current LSU transaction is discarded and a new transaction is loaded from the shadow register.

Arguments

              hSrio             Handle of the SRIO device
              timeoutCnt        Time out count to be populated by this API.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_LSU_SETUP_REG1_TIMEOUT_CNT

Example

            CSL_SrioHandle     hSrio;
            Uint8              timeoutCnt;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);
            ...
            // Get the Timeout Count
            CSL_SRIO_GetTimeoutCnt (hSrio, &timeoutCnt);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetTLMPortBaseRoutingInfo | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 | brrNum,
|  | Uint8 * | enableStatus,
|  | Uint8 * | maintRouting,
|  | Uint8 * | privateStatus |
| ) |  |  |

============================================================================
CSL_SRIO_GetTLMPortBaseRoutingInfo

Description
The function is used to get the TLM Base Routing Information

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number
              brrNum                BRR Number for which this configuration is applied.
              enableStatus          Status of the BRR for accepting & routing packets
              maintRouting          Maintainance Packet Routing Status
              privateStatus         Status of the BRR to be used by its port or by all
                                    ports

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_TLM_SP_BRR_0_CTL_ENABLE, SRIO_RIO_TLM_SP_BRR_0_CTL_ROUTE_MR_TO_LLM,
SRIO_RIO_TLM_SP_BRR_0_CTL_PRIVATE;
SRIO_RIO_TLM_SP_BRR_1_CTL_ENABLE, SRIO_RIO_TLM_SP_BRR_1_CTL_ROUTE_MR_TO_LLM,
SRIO_RIO_TLM_SP_BRR_1_CTL_PRIVATE;
SRIO_RIO_TLM_SP_BRR_2_CTL_ENABLE, SRIO_RIO_TLM_SP_BRR_2_CTL_ROUTE_MR_TO_LLM,
SRIO_RIO_TLM_SP_BRR_2_CTL_PRIVATE;
SRIO_RIO_TLM_SP_BRR_3_CTL_ENABLE, SRIO_RIO_TLM_SP_BRR_3_CTL_ROUTE_MR_TO_LLM,
SRIO_RIO_TLM_SP_BRR_3_CTL_PRIVATE

Example

            CSL_SrioHandle      hSrio;
            Uint8               enableStatus;
            Uint8               maintRouting;
            Uint8               privateStatus;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the TLM Port Base routing information.
            CSL_SRIO_GetTLMPortBaseRoutingInfo(hSrio, 1, 0, &enableStatus, &maintRouting, &privateStatus);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetTLMPortBaseRoutingPatternMatch | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 | brrNum,
|  | Uint16 * | pattern,
|  | Uint16 * | match |
| ) |  |  |

============================================================================
CSL_SRIO_GetTLMPortBaseRoutingPatternMatch

Description
The function is used to get the TLM Base Routing Pattern Match information

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number
              brrNum                BRR Number for which this configuration is applied.
              pattern               16 bit ID used for comparison.
              match                 Indicates which of the 16bits should be used

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_TLM_SP_BRR_0_PATTERN_MATCH_PATTERN, SRIO_RIO_TLM_SP_BRR_0_PATTERN_MATCH_MATCH;
SRIO_RIO_TLM_SP_BRR_1_PATTERN_MATCH_PATTERN, SRIO_RIO_TLM_SP_BRR_1_PATTERN_MATCH_MATCH;
SRIO_RIO_TLM_SP_BRR_2_PATTERN_MATCH_PATTERN, SRIO_RIO_TLM_SP_BRR_2_PATTERN_MATCH_MATCH;
SRIO_RIO_TLM_SP_BRR_3_PATTERN_MATCH_PATTERN, SRIO_RIO_TLM_SP_BRR_3_PATTERN_MATCH_MATCH

Example

            CSL_SrioHandle      hSrio;
            Uint16              pattern;
            Uint16              match;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the TLM Port Base routing pattern match information
            CSL_SRIO_GetTLMPortBaseRoutingPatternMatch(hSrio, 1, &pattern, &match);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetTLMPortControl | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | SRIO_TLM_CONTROL * | ptrTLMControl |
| ) |  |  |

============================================================================
CSL_SRIO_GetTLMPortControl

Description
The function is used to get the TLM port control

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number
              ptrTLMControl         TLM Port Control

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_TLM_SP_CONTROL_PORTGROUP_SELECT, SRIO_RIO_TLM_SP_CONTROL_VOQ_SELECT,
SRIO_RIO_TLM_SP_CONTROL_TGT_ID_DIS, SRIO_RIO_TLM_SP_CONTROL_MTC_TGT_ID_DIS,
SRIO_RIO_TLM_SP_CONTROL_LENGTH

Example

            CSL_SrioHandle          hSrio;
            SRIO_TLM_CONTROL        tlmCntlSymbol;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the TLM Port Control Configuration
            CSL_SRIO_GetTLMPortControl(hSrio, 1, &tlmCntlSymbol);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetTLMPortInterrupts | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 * | igBadVC,
|  | Uint8 * | igBrrFilter |
| ) |  |  |

============================================================================
CSL_SRIO_GetTLMPortInterrupts

Description
The function is used to get the TLM port interrupt status

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number
              igBadVC               Detected an inbound packet with the VC bit set
              igBrrFilter           Discarded an inbound transaction based on the BRR

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_TLM_SP_INT_ENABLE_IG_BAD_VC,
SRIO_RIO_TLM_SP_INT_ENABLE_IG_BRR_FILTER

Example

            CSL_SrioHandle      hSrio;
            Uint8               igBadVC;
            Uint8               igBrrFilter;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the TLM Port Interrupt Status
            CSL_SRIO_GetTLMPortInterrupts(hSrio, 1, &igBadVC, &igBrrFilter);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetTLMPortStatus | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 * | igBadVC,
|  | Uint8 * | igBrrFilter |
| ) |  |  |

============================================================================
CSL_SRIO_GetTLMPortStatus

Description
The function is used to get the TLM port status

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number
              igBadVC               Detected an inbound packet with the VC bit set
              igBrrFilter           Discarded an inbound transaction based on the BRR

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_TLM_SP_STATUS_IG_BAD_VC, SRIO_RIO_TLM_SP_STATUS_IG_BRR_FILTER

Example

            CSL_SrioHandle      hSrio;
            Uint8               igBadVC;
            Uint8               igBrrFilter;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the TLM Port Status
            CSL_SRIO_GetTLMPortStatus(hSrio, 1, &igBadVC, &igBrrFilter);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetTLMPortWriteEnable | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 * | igBadVC,
|  | Uint8 * | igBrrFilter |
| ) |  |  |

============================================================================
CSL_SRIO_GetTLMPortWriteEnable

Description
The function is used to get the TLM port write enable status

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number
              igBadVC               Detected an inbound packet with the VC bit set
              igBrrFilter           Discarded an inbound transaction based on the BRR

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_TLM_SP_PW_ENABLE_IG_BAD_VC,
SRIO_RIO_TLM_SP_PW_ENABLE_IG_BRR_FILTER

Example

            CSL_SrioHandle      hSrio;
            Uint8               igBadVC;
            Uint8               igBrrFilter;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the TLM Port Write Enable status
            CSL_SRIO_GetTLMPortWriteEnable(hSrio, 1, &igBadVC, &igBrrFilter);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetTransactionPriority | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | priority |
| ) |  |  |

============================================================================
CSL_SRIO_GetTransactionPriority

Description
This function gets the DSP System transaction priority.

Arguments

              hSrio     Handle of the SRIO device
              priority  Priority to be configured.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PER_SET_CNTL_CBA_TRANS_PRI

Example

            CSL_SrioHandle  hSrio;
            Uint8           priority;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the transaction priority
            CSL_SRIO_GetTransactionPriority (hSrio, &priority);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetTxCPPIFlowMask | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | txCPPI,
|  | Uint16 * | flowMask |
| ) |  |  |

============================================================================
CSL_SRIO_GetTxCPPIFlowMask

Description
The function is used to get the Transmit CPPI Flow Masks

Arguments

              hSrio             Handle of the SRIO device
              txCPPI            Transmit CPPI Flow Index
              flowMask          Flow Mask to be populated by this API.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_TX_CPPI_FLOW_MASKS_TX_QUEUE_FLOW_MASK

Example

            CSL_SrioHandle     hSrio;
            Uint16             flowMask;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);
            ...
            // Get the Transmit CPPI Flow Mask for 0 to use Flow 1
            CSL_SRIO_GetTxCPPIFlowMask (hSrio, 0, &flowMask);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetTxCreditThreshold | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | priority,
|  | Uint8 * | credit |
| ) |  |  |

============================================================================
CSL_SRIO_GetTxCreditThreshold

Description
This function gets the transmit credit threshold for priority packets

Arguments

              hSrio     Handle of the SRIO device
              priority  Priority of the Transmit Buffers
              credit    Credit Threshold for the priority which is populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PER_SET_CNTL_TX_PRI2_WM;SRIO_RIO_PER_SET_CNTL_TX_PRI1_WM; SRIO_RIO_PER_SET_CNTL_TX_PRI0_WM

Example

            CSL_SrioHandle  hSrio;
            Uint8           credit;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Transmit Credit Threshold for priority 2
            CSL_SRIO_GetTxCreditThreshold (hSrio, 2, &credit);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetTxGarbageCollectionInfo | ( | CSL_SrioHandle | hSrio,
|  | Uint16 * | qidLength,
|  | Uint16 * | qidTimeout,
|  | Uint16 * | qidRetry,
|  | Uint16 * | qidTransErr,
|  | Uint16 * | qidProg,
|  | Uint16 * | qidSsize |
| ) |  |  |

============================================================================
CSL_SRIO_GetTxGarbageCollectionInfo

Description
The function gets the Transmit Garbage collection information. Descriptors are placed into the Garbage collection queue when there is an error response detected.

Arguments

              hSrio         Handle of the SRIO device
              qidLength     Length mismatch between size in the UDI
                            packet and receieved payload populated by this API
              qidTimeout    Timeout on receiving the segments populated by this API
              qidRetry      Excessive retries populated by this API
              qidTransErr   Transaction Error populated by this API
              qidProg       Programming error queue read
              qidSsize      Queue ID Ssize populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_GARBAGE_COLL_QID0_GARBAGE_QID_LEN,
SRIO_RIO_GARBAGE_COLL_QID0_GARBAGE_QID_TOUT,
SRIO_RIO_GARBAGE_COLL_QID1_GARBAGE_QID_RETRY,
SRIO_RIO_GARBAGE_COLL_QID1_GARBAGE_QID_TRANS_ERR,
SRIO_RIO_GARBAGE_COLL_QID2_GARBAGE_QID_PROG,
SRIO_RIO_GARBAGE_COLL_QID2_GARBAGE_QID_SSIZE

Example

            CSL_SrioHandle  hSrio;
            Uint16          qidLength;
            Uint16          qidTimeout;
            Uint16          qidRetry;
            Uint16          qidTransErr;
            Uint16          qidProg;
            Uint16          qidSsize;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);
            ...
            // Get the Transmit Garbage Collection Information.
            CSL_SRIO_GetTxGarbageCollectionInfo (hSrio, &qidLength, &qidTimeout,
                                                 &qidRetry, &qidTransErr, &qidProg, &qidSsize);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetTxQueueSchedInfo | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | txQueue,
|  | Uint8 * | portNum,
|  | Uint8 * | priority,
|  | Uint8 * | crf |
| ) |  |  |

============================================================================
CSL_SRIO_GetTxQueueSchedInfo

Description
The function is used to get the port and scheduler information for a specific transmit queue.

Arguments

              hSrio       Handle of the SRIO device
              txQueue     Transmit Queue Index for which information is configured.
              portNum     Port Number to which the queue is mapped populated by this API
              priority    Priority of the Transmit Queue populated by this API
              crf         Critical Resource Flow Value populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_TX_QUEUE_SCH_INFO_QUEUE0_INFO,SRIO_RIO_TX_QUEUE_SCH_INFO_QUEUE1_INFO,SRIO_RIO_TX_QUEUE_SCH_INFO_QUEUE2_INFO; SRIO_RIO_TX_QUEUE_SCH_INFO_QUEUE0_INFO,SRIO_RIO_TX_QUEUE_SCH_INFO_QUEUE1_INFO,SRIO_RIO_TX_QUEUE_SCH_INFO_QUEUE2_INFO; SRIO_RIO_TX_QUEUE_SCH_INFO_QUEUE0_INFO,SRIO_RIO_TX_QUEUE_SCH_INFO_QUEUE1_INFO,SRIO_RIO_TX_QUEUE_SCH_INFO_QUEUE2_INFO;

Example

            CSL_SrioHandle     hSrio;
            Uint8              portNum;
            Uint8              priority;
            Uint8              crf;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);
            ...
            // Get the Tx Queue 1 Information.
            CSL_SRIO_GetTxQueueSchedInfo (hSrio, 1, &portNum, &priority, &crf);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetTXURXUSwappingMode | ( | CSL_SrioHandle | hSrio,
|  | Uint8 * | mode |
| ) |  |  |

============================================================================
CSL_SRIO_GetTXURXUSwappingMode

Description
This function gets the Little Endian Swapping Mode for the Memory Access Unit.

Arguments

              hSrio     Handle of the SRIO device
              mode      Little Endian Swapping Mode for the TXU and RXU populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PER_SET_CNTL_TXU_RXU_LEND_SWAP_MODE

Example

            CSL_SrioHandle  hSrio;
            Uint8           mode;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the TXU and RXU Swapping Mode.
            CSL_SRIO_GetTXURXUSwappingMode (hSrio, &mode);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetType9MessageToQueueMapping | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | index,
|  | SRIO_TYPE9_MESSAGE * | ptrMessage,
|  | Uint16 * | queueId |
| ) |  |  |

============================================================================
CSL_SRIO_GetType9MessageToQueueMapping

Description
The function gets information about the SRIO TYPE9 Message and Queue to which it is mapped by reading the specified MAP 'index' register.

Arguments

              hSrio             Handle of the SRIO device
              index             Index of the MAP register
              message           Type9-Message Information populated by this API
              queueId           Destination Queue populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_RXU_TYPE9_MAP0_SRCID,SRIO_RIO_RXU_TYPE9_MAP0_COS, SRIO_RIO_RXU_TYPE9_MAP0_COS_MASK,
SRIO_RIO_RXU_TYPE9_MAP1_SRC_PROM,SRIO_RIO_RXU_TYPE9_MAP1_TT, SRIO_RIO_RXU_TYPE9_MAP1_DEST_PROM,SRIO_RIO_RXU_TYPE9_MAP1_DEST_ID,
SRIO_RIO_RXU_TYPE9_MAP2_STRM_ID,SRIO_RIO_RXU_TYPE9_MAP2_STRM_MASK,
SRIO_RIO_RXU_MAP_QID_DEST_QID,SRIO_RIO_RXU_MAP_QID_FLOWID

Example

            CSL_SrioHandle      hSrio;
            SRIO_TYPE9_MESSAGE  message;
            Uint16              queueId;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);
            ...
            // Get the first mapping information.
            CSL_SRIO_GetType9MessageToQueueMapping (hSrio, 0, &message, &queueId);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GetVBUSPriorityToRIOMapping | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | vbusPriority,
|  | Uint8 * | priority |
| ) |  |  |

============================================================================
CSL_SRIO_GetVBUSPriorityToRIOMapping

Description
The function gets the mapping between the VBUS Priority to RIO Priority.

Arguments

              hSrio             Handle of the SRIO device
              vbusPriority      VBUS Priority for which the mapping is required.
              priority          Priority level populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_AMU_PRIORITY_MAP_DMA_PRI0;SRIO_RIO_AMU_PRIORITY_MAP_DMA_PRI1;
SRIO_RIO_AMU_PRIORITY_MAP_DMA_PRI2;SRIO_RIO_AMU_PRIORITY_MAP_DMA_PRI3;
SRIO_RIO_AMU_PRIORITY_MAP_DMA_PRI4;SRIO_RIO_AMU_PRIORITY_MAP_DMA_PRI5;
SRIO_RIO_AMU_PRIORITY_MAP_DMA_PRI6;SRIO_RIO_AMU_PRIORITY_MAP_DMA_PRI7

Example

            CSL_SrioHandle      hSrio;
            Uint8               priority;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);
            ...
            // Get the RIO Priority Level for VBUS Priority 0
            CSL_SRIO_GetVBUSPriorityToRIOMapping (hSrio, 0, &priority);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GlobalDisable | ( | CSL_SrioHandle | hSrio | ) |

============================================================================
CSL_SRIO_GlobalDisable

Description
This function globally disables the SRIO peripheral and all blocks.

Arguments

              hSrio             Handle of the SRIO device

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_GBL_EN_EN=0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Globally Disable the SRIO peripheral.
            CSL_SRIO_GlobalDisable (hSrio);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_GlobalEnable | ( | CSL_SrioHandle | hSrio | ) |

============================================================================
CSL_SRIO_GlobalEnable

Description
This function globally enables the SRIO peripheral and all blocks.

Arguments

              hSrio             Handle of the SRIO device

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_GBL_EN_EN=1

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Globally Enable the SRIO peripheral.
            CSL_SRIO_GlobalEnable (hSrio);
            ...

=============================================================================

CSL_IDEF_INLINE Bool CSL_SRIO_Is1_25GBaudSupported | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_Is1_25GBaudSupported

Description
The function is used to check if 1.25 GBaud is supported or not?

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
TRUE - 1.25GBaud is supported
FALSE - 1.25GBaud is not supported

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_SP_CTL2_GB_1P25

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Check if 1.25Gbaud is supported or not?
            if (CSL_SRIO_Is1_25GBaudSupported (hSrio, 1) == TRUE)
            {
                // 1.25Gbaud is supported
            }
            else
            {
                // 1.25Gbaud is not supported
            }
            ...

=============================================================================

CSL_IDEF_INLINE Bool CSL_SRIO_Is2_5GBaudSupported | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_Is2_5GBaudSupported

Description
The function is used to check if 2.5GBaud is supported or not?

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
TRUE - 2.5GBaud is supported
FALSE - 2.5GBaud is not supported

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_SP_CTL2_GB_2P5

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Check if 2.5Gbaud is supported or not?
            if (CSL_SRIO_Is2_5GBaudSupported (hSrio, 1) == TRUE)
            {
                // 2.5Gbaud is supported
            }
            else
            {
                // 2.5Gbaud is not supported
            }
            ...

=============================================================================

CSL_IDEF_INLINE Bool CSL_SRIO_Is3_125GBaudSupported | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_Is3_125GBaudSupported

Description
The function is used to check if 3.125GBaud is supported or not?

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
TRUE - 3.125GBaud is supported
FALSE - 3.125GBaud is not supported

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_SP_CTL2_GB_3P125

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Check if 3.125Gbaud is supported or not?
            if (CSL_SRIO_Is3_125GBaudSupported (hSrio, 1) == TRUE)
            {
                // 3.125Gbaud is supported
            }
            else
            {
                // 3.125Gbaud is not supported
            }
            ...

=============================================================================

CSL_IDEF_INLINE Bool CSL_SRIO_Is5GBaudSupported | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_Is5GBaudSupported

Description
The function is used to check if 5GBaud is supported or not?

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
TRUE - 5GBaud is supported
FALSE - 5GBaud is not supported

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_SP_CTL2_GB_5P0

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Check if 5Gbaud is supported or not?
            if (CSL_SRIO_Is5GBaudSupported (hSrio, 1) == TRUE)
            {
                // 5Gbaud is supported
            }
            else
            {
                // 5Gbaud is not supported
            }
            ...

=============================================================================

CSL_IDEF_INLINE Bool CSL_SRIO_Is6_25GBaudSupported | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_Is6_25GBaudSupported

Description
The function is used to check if 6_25GBaud is supported or not?

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
TRUE - 6_25GBaud is supported
FALSE - 6_25GBaud is not supported

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_SP_CTL2_GB_6P25

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Check if 6_25Gbaud is supported or not?
            if (CSL_SRIO_Is6_25GBaudSupported (hSrio, 1) == TRUE)
            {
                // 6_25Gbaud is supported
            }
            else
            {
                // 6_25Gbaud is not supported
            }
            ...

=============================================================================

CSL_IDEF_INLINE Bool CSL_SRIO_IsAutomaticBaudRateDiscoverySupported | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_IsAutomaticBaudRateDiscoverySupported

Description
The function is used to check if automatic baud rate discovery is supported or not?

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_SP_CTL2_BAUD_DISC

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Is Port1 Automatic Baud Rate Discovery supported
            if (CSL_SRIO_IsAutomaticBaudRateDiscoverySupported (hSrio, 1) == TRUE)
            {
                // Port1 Automatic Baud Rate Discovery supported
            }
            else
            {
                // Port1 Automatic Baud Rate Discovery NOT supported
            }
            ...

=============================================================================

CSL_IDEF_INLINE Bool CSL_SRIO_IsAutomaticPriorityPromotionEnabled | ( | CSL_SrioHandle | hSrio | ) |

============================================================================
CSL_SRIO_IsAutomaticPriorityPromotionEnabled

Description
This function check if the automatic promotion of response priority by RXU and MAU is enabled or not?

Arguments

              hSrio     Handle of the SRIO device

Return Value
TRUE - Automatic Priority Promotion is enabled
FALSE - Automatic Priority Promotion is disabled

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PER_SET_CNTL_PROMOTE_DIS

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Check if Automatic Priority Promotion.
            if (CSL_SRIO_IsAutomaticPriorityPromotionEnabled (hSrio) == TRUE)
            {
                // Automatic Priority Promotion is enabled.
            }
            else
            {
                // Automatic Priority Promotion is disabled.
            }
            ...

=============================================================================

CSL_IDEF_INLINE Bool CSL_SRIO_IsCOSEnabled | ( | CSL_SrioHandle | hSrio | ) |

============================================================================
CSL_SRIO_IsCOSEnabled

Description
This function checks if COS has been enabled or not for the device?

Arguments

              hSrio             Handle of the SRIO device

Return Value
TRUE - COS is enabled
FALSE - COS is disabled.

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PER_SET_CNTL1_COS_EN

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Check if COS is enabled
            if (CSL_SRIO_IsCOSEnabled (hSrio) == TRUE)
            {
                // COS is ENABLED
            }
            else
            {
                // COS is DISABLED
            }
            ...

=============================================================================

CSL_IDEF_INLINE Bool CSL_SRIO_IsEventMgmtInterruptsEnabled | ( | CSL_SrioHandle | hSrio | ) |

============================================================================
CSL_SRIO_IsEventMgmtInterruptsEnabled

Description
The function is used to check if the Event Management Interrupts are enabled or disabled?

Arguments

              hSrio         Handle of the SRIO device

Return Value
TRUE - Event Management Interrupts are enabled
FALSE - Event Management Interrupts are disabled

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_EM_DEV_INT_EN_INT_EN

Example

            CSL_SrioHandle      hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Disable the Event Management Interrupts
            if (CSL_SRIO_IsEventMgmtInterruptsEnabled(hSrio) == TRUE)
            {
                // Event Management Interrupts Enabled
            }
            else
            {
                // Event Management Interrupts Disabled
            }
            ...

=============================================================================

CSL_IDEF_INLINE Bool CSL_SRIO_IsEventMgmtPortWriteEnabled | ( | CSL_SrioHandle | hSrio | ) |

============================================================================
CSL_SRIO_IsEventMgmtPortWriteEnabled

Description
The function is used to check if the Event Management Port Write is enabled or not?

Arguments

              hSrio         Handle of the SRIO device

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_EM_DEV_PW_EN_PW_EN

Example

            CSL_SrioHandle      hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Check if the Event Management Port Writes are enabled or not?
            if (CSL_SRIO_IsEventMgmtPortWriteEnabled(hSrio) == TRUE)
            {
                // Event Management Port Writes are enabled
            }
            else
            {
                // Event Management Port Writes are disabled
            }
            ...

=============================================================================

CSL_IDEF_INLINE Bool CSL_SRIO_IsInputErrorStopped | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_IsInputErrorStopped

Description
The function is used to check if the port has detected an error and is in the input error stopped state

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_SP_ERR_STAT_INPUT_ERR_STOPPED

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Check if Port1 has detected an INPUT Error stopped condition?
            if (CSL_SRIO_IsInputErrorStopped (hSrio, 1) == TRUE)
            {
                // Port1 has detected an INPUT Error stopped condition
            }
            else
            {
                // Port1 has NOT detected an INPUT Error stopped condition
            }
            ...

=============================================================================

CSL_IDEF_INLINE Bool CSL_SRIO_IsInputPortEnabled | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_IsInputPortEnabled

Description
The function is used to check if the input port is enabled or not?

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
TRUE - Input Port is enabled
FALSE - Input Port is disabled

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_SP_CTL_INP_EN

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Check if input port 1 is enabled or not?
            if (CSL_SRIO_IsInputPortEnabled(hSrio, 1) == TRUE)
            {
                // Input Port1 is enabled
            }
            else
            {
                // Input Port1 is disabled
            }
            ...

=============================================================================

CSL_IDEF_INLINE Bool CSL_SRIO_IsLinkResponseReceived | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_IsLinkResponseReceived

Description
The function checks if a valid link response has been received to the previously sent link request.

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_SP_LM_RESP_RESP_VALID

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Is the Link response received or not?
            if (CSL_SRIO_IsLinkResponseReceived (hSrio, 1) == TRUE)
            {
                // Link Response was received.
            }
            else
            {
                // Link Response was NOT received
            }
            ...

=============================================================================

CSL_IDEF_INLINE Bool CSL_SRIO_IsLoopbackMode | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_IsLoopbackMode

Description
This function checks if the port specified is operating in loopback mode or not?

Arguments

              hSrio             Handle of the SRIO device
              portNum           Port Number for which mode settings must be retrieved

Return Value
TRUE - Port is operating in loopback mode
FALSE - Port is operating in Normal Mode.

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PER_SET_CNTL1_LOOPBACK

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the port 0 to work in normal mode.
            if (CSL_SRIO_IsLoopbackMode(hSrio, 0) == TRUE)
            {
                // Port 0 is operating in loopback mode.
            }
            else
            {
                // Port 0 is operating in normal mode.
            }
            ...

=============================================================================

CSL_IDEF_INLINE Bool CSL_SRIO_IsLSUBusy | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | lsu |
| ) |  |  |

============================================================================
CSL_SRIO_IsLSUBusy

Description
The function checks if the specific LSU is BUSY or not?

Arguments

              hSrio             Handle of the SRIO device
              lsu               LSU Number which is to checked

Return Value
TRUE - LSU is Busy
FALSE - LSU is Free

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_LSU_REG6_BUSY

Example

            CSL_SrioHandle     hSrio;
            SRIO_LSU_TRANSFER  lsuTransfer;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);
            ...
            // Populate the Transfer Information.
            lsuTransfer.rapidIOMSB    = 0x0;
            lsuTransfer.rapidIOLSB    = (Uint32)&tx_buffer[0];
            lsuTransfer.dspAddress    = (Uint32)&rx_buffer[0];
            lsuTransfer.bytecount     = 256;
            lsuTransfer.doorbellValid = 0;
            lsuTransfer.intrRequest   = 1;
            lsuTransfer.supInt        = 0;
            lsuTransfer.xambs         = 0;
            lsuTransfer.priority      = 2;
            lsuTransfer.outPortID     = 1;
            lsuTransfer.idSize        = 1;
            lsuTransfer.srcIDMap      = 0;
            lsuTransfer.dstID         = 0xDEAD;
            lsuTransfer.ttype         = 4;
            lsuTransfer.ftype         = 5;
            lsuTransfer.hopCount      = 0;
            lsuTransfer.doorbellInfo  = 0;

            // Send the transfer on LSU 1
            CSL_SRIO_SetLSUTransfer (hSrio, 1, &lsuTransfer);

            // Wait around till the transfer is completed.
            while (1)
            {
                if (CSL_SRIO_IsLSUBusy (hSrio, 1) == FALSE)
                    break;
            }

            // Control comes here indicating that the transfer was completed.
            ...

=============================================================================

CSL_IDEF_INLINE Bool CSL_SRIO_IsLSUFull | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | lsu |
| ) |  |  |

============================================================================
CSL_SRIO_IsLSUFull

Description
The function checks if the specific LSU is BUSY or not?

Arguments

              hSrio             Handle of the SRIO device
              lsu               LSU Number which is to checked

Return Value
TRUE - All the LSU Shadow Registers are being used
FALSE - There is space in the LSU Shadow Registers

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_LSU_REG6_FULL

Example

            CSL_SrioHandle     hSrio;
            SRIO_LSU_TRANSFER  lsuTransfer;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);
            ...

            // Wait around till there is space to write
            while (1)
            {
                if (CSL_SRIO_IsLSUFull (hSrio, 1) == FALSE)
                    break;
            }

            // Populate the Transfer Information.
            lsuTransfer.rapidIOMSB    = 0x0;
            lsuTransfer.rapidIOLSB    = (Uint32)&tx_buffer[0];
            lsuTransfer.dspAddress    = (Uint32)&rx_buffer[0];
            lsuTransfer.bytecount     = 256;
            lsuTransfer.doorbellValid = 0;
            lsuTransfer.intrRequest   = 1;
            lsuTransfer.supInt        = 0;
            lsuTransfer.xambs         = 0;
            lsuTransfer.priority      = 2;
            lsuTransfer.outPortID     = 1;
            lsuTransfer.idSize        = 1;
            lsuTransfer.srcIDMap      = 0;
            lsuTransfer.dstID         = 0xDEAD;
            lsuTransfer.ttype         = 4;
            lsuTransfer.ftype         = 5;
            lsuTransfer.hopCount      = 0;
            lsuTransfer.doorbellInfo  = 0;

            // Send the transfer on LSU 1
            CSL_SRIO_SetLSUTransfer (hSrio, 1, &lsuTransfer);

=============================================================================

CSL_IDEF_INLINE Bool CSL_SRIO_IsOutputDegraded | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_IsOutputDegraded

Description
The function is used to check if the output port has encountered a degraded condition or not?

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_SP_ERR_STAT_OUTPUT_DEGR

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Check if Port1 has detected an OUTPUT degraded condition?
            if (CSL_SRIO_IsOutputDegraded (hSrio, 1) == TRUE)
            {
                // Port1 has detected an OUTPUT degraded condition
            }
            else
            {
                // Port1 has NOT detected an OUTPUT degraded condition
            }
            ...

=============================================================================

CSL_IDEF_INLINE Bool CSL_SRIO_IsOutputErrorStopped | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_IsOutputErrorStopped

Description
The function is used to check if the output port has detected an error and is in the output error stopped state

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_SP_ERR_STAT_OUTPUT_ERR_STOPPED

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Check if Port1 has detected an OUTPUT Error stopped condition?
            if (CSL_SRIO_IsOutputErrorStopped (hSrio, 1) == TRUE)
            {
                // Port1 has detected an OUTPUT Error stopped condition
            }
            else
            {
                // Port1 has NOT detected an OUTPUT Error stopped condition
            }
            ...

=============================================================================

CSL_IDEF_INLINE Bool CSL_SRIO_IsOutputFailed | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_IsOutputFailed

Description
The function is used to check if the output port has encountered a failed condition.

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_SP_ERR_STAT_OUTPUT_FAIL

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Check if Port1 has detected an OUTPUT failed condition?
            if (CSL_SRIO_IsOutputFailed (hSrio, 1) == TRUE)
            {
                // Port1 has detected an OUTPUT failed condition
            }
            else
            {
                // Port1 has NOT detected an OUTPUT failed condition
            }
            ...

=============================================================================

CSL_IDEF_INLINE Bool CSL_SRIO_IsOutputPktDropped | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_IsOutputPktDropped

Description
The function is used to check if the output port has discarded a packet or not?

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_SP_ERR_STAT_OUTPUT_DROP

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Check if Port1 has discarded a packet or not?
            if (CSL_SRIO_IsOutputPktDropped (hSrio, 1) == TRUE)
            {
                // Port1 has discarded the packet
            }
            else
            {
                // Port1 has NOT discarded the packet
            }
            ...

=============================================================================

CSL_IDEF_INLINE Bool CSL_SRIO_IsOutputPortEnabled | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_IsOutputPortEnabled

Description
The function is used to check if the output port is enabled or not?

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
TRUE - Output Port is enabled
FALSE - Output Port is disabled

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_SP_CTL_OTP_EN

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Check if output port 1 is enabled or not?
            if (CSL_SRIO_IsOutputPortEnabled(hSrio, 1) == TRUE)
            {
                // Output Port1 is enabled
            }
            else
            {
                // Output Port1 is disabled
            }
            ...

=============================================================================

CSL_IDEF_INLINE Bool CSL_SRIO_IsOutputRetryStopped | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_IsOutputRetryStopped

Description
The function is used to check if the output port has received a packet retry control symbol.

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_SP_ERR_STAT_OUTPUT_RETRY_STOPPED

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Check if Port1 has detected an OUTPUT Retry condition?
            if (CSL_SRIO_IsOutputRetryStopped (hSrio, 1) == TRUE)
            {
                // Port1 has detected an OUTPUT Retry condition
            }
            else
            {
                // Port1 has NOT detected an OUTPUT Retry condition
            }
            ...

=============================================================================

CSL_IDEF_INLINE Bool CSL_SRIO_IsPLMPortAllInterruptsEnabled | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_IsPLMPortAllInterruptsEnabled

Description
The function is used to check if the PLM port all interrupts are enabled or not?

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
TRUE - PLM Port all interrupts are enabled
FALSE - PLM Port all interrupts are disabled

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PLM_SP_ALL_INT_EN_IRQ_EN

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Check if PLM Interrupts are enabled or not?
            if (CSL_SRIO_IsPLMPortAllInterruptsEnabled(hSrio, 1) == TRUE)
            {
                // PLM Interrupts are enabled.
            }
            else
            {
                // PLM Interrupts are disabled.
            }
            ...

=============================================================================

CSL_IDEF_INLINE Bool CSL_SRIO_IsPLMPortAllPortWritesEnabled | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_IsPLMPortAllPortWritesEnabled

Description
The function is used to disable all port writes

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
TRUE - PLM Port all Port Writes are enabled
TRUE - PLM Port all Port Writes are disabled

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PLM_SP_ALL_PW_EN_PW_EN

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Check if all PLM Port Writes are enabled or not?
            if (CSL_SRIO_IsPLMPortAllPortWritesEnabled(hSrio, 1) == TRUE)
            {
                // PLM Port All Port Writes are enabled
            }
            else
            {
                // PLM Port All Port Writes are disabled
            }
            ...

=============================================================================

CSL_IDEF_INLINE Bool CSL_SRIO_IsPLMPortDeadLink | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_IsPLMPortDeadLink

Description
The function is used to check if the PLM Port has detected that the link partner has been removed

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number

Return Value
TRUE - Link partner has been removed
FALSE - Link partner has not been removed

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PLM_SP_STATUS_DLT

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Is the PLM Port Dead Link detected?
            if (CSL_SRIO_IsPLMPortDeadLink (hSrio, 1) == TRUE)
            {
                // PLM Port Dead Link detected
            }
            else
            {
                // PLM Port Dead Link NOT detected
            }
            ...

=============================================================================

CSL_IDEF_INLINE Bool CSL_SRIO_IsPLMPortError | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_IsPLMPortError

Description
The function is used to check if the PLM Port has detected an error

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number

Return Value
TRUE - Link error has been detected
FALSE - Link error has NOT been detected

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PLM_SP_STATUS_PORT_ERR

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Is the PLM Port error detected?
            if (CSL_SRIO_IsPLMPortError (hSrio, 1) == TRUE)
            {
                // PLM Port error detected
            }
            else
            {
                // PLM Port error NOT detected
            }
            ...

=============================================================================

CSL_IDEF_INLINE Bool CSL_SRIO_IsPLMPortLinkInitialized | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_IsPLMPortLinkInitialized

Description
The function is used to check if the PLM Port Link Initialized

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number

Return Value
TRUE - Port Link Initialized is set
FALSE - Port Link Initialized is not set

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PLM_SP_STATUS_LINK_INIT

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Is the PLM Port Link Initialized?
            if (CSL_SRIO_IsPLMPortLinkInitialized (hSrio, 1) == TRUE)
            {
                // PLM Port Link is initialized
            }
            else
            {
                // PLM Port Link is NOT initialized
            }
            ...

=============================================================================

CSL_IDEF_INLINE Bool CSL_SRIO_IsPLMPortMaxDenialErrorSet | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_IsPLMPortMaxDenialErrorSet

Description
The function is used to check if the PLM Port Max. Denial error set.

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number

Return Value
TRUE - Max. Denial Error is set
FALSE - Max. Denial Error is not set

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PLM_SP_STATUS_MAX_DENIAL

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Is the MAX Denial Error set?
            if (CSL_SRIO_IsPLMPortMaxDenialErrorSet (hSrio, 1) == TRUE)
            {
                // MAX Denial error is set
            }
            else
            {
                // MAX Denial error is NOT set
            }
            ...

=============================================================================

CSL_IDEF_INLINE Bool CSL_SRIO_IsPLMPortMulticastCSDetected | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_IsPLMPortMulticastCSDetected

Description
The function is used to check if the PLM Port Multicast event control symbol detected

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number

Return Value
TRUE - Multicast event control symbol has been detected
FALSE - Multicast event control symbol has NOT been detected

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PLM_SP_STATUS_MECS

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Is the PLM Port Multicast Event Control Symbol detected?
            if (CSL_SRIO_IsPLMPortMulticastCSDetected (hSrio, 1) == TRUE)
            {
                // PLM Port Multicast Event Control Symbol detected
            }
            else
            {
                // PLM Port Multicast Event Control Symbol NOT detected
            }
            ...

=============================================================================

CSL_IDEF_INLINE Bool CSL_SRIO_IsPLMPortOutputDegrade | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_IsPLMPortOutputDegrade

Description
The function is used to check if the PLM Port has detected an output degrade

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number

Return Value
TRUE - Output degrade has been detected
FALSE - Output degrade has NOT been detected

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PLM_SP_STATUS_OUTPUT_DEGR

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Is the PLM Port Output degrade detected?
            if (CSL_SRIO_IsPLMPortOutputDegrade (hSrio, 1) == TRUE)
            {
                // PLM Port Output degrade detected
            }
            else
            {
                // PLM Port Output degrade NOT detected
            }
            ...

=============================================================================

CSL_IDEF_INLINE Bool CSL_SRIO_IsPLMPortOutputFail | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_IsPLMPortOutputFail

Description
The function is used to check if the PLM Port has detected an output fail

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number

Return Value
TRUE - Output fail has been detected
FALSE - Output fail has NOT been detected

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PLM_SP_STATUS_OUTPUT_FAIL

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Is the PLM Port Output fail detected?
            if (CSL_SRIO_IsPLMPortOutputFail (hSrio, 1) == TRUE)
            {
                // PLM Port Output fail detected
            }
            else
            {
                // PLM Port Output fail NOT detected
            }
            ...

=============================================================================

CSL_IDEF_INLINE Bool CSL_SRIO_IsPortAvailable | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_IsPortAvailable

Description
The function is used to check if the port is available?

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_SP_ERR_STAT_PORT_UNAVL

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Check if Port1 is available or not?
            if (CSL_SRIO_IsPortAvailable (hSrio, 1) == TRUE)
            {
                // Port1 is available
            }
            else
            {
                // Port1 is not available
            }
            ...

=============================================================================

CSL_IDEF_INLINE Bool CSL_SRIO_IsPortDropEnabled | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_IsPortDropEnabled

Description
The function is used to check if the port drop is enabled or not?

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
TRUE - Port drop is enabled
FALSE - Port drop is disabled

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_SP_CTL_DROP_EN

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Check if stop fail for port 1 is enabled or not?
            if (CSL_SRIO_IsPortDropEnabled(hSrio, 1) == TRUE)
            {
                // Port1 drop is enabled
            }
            else
            {
                // Port1 drop is disabled
            }
            ...

=============================================================================

CSL_IDEF_INLINE Bool CSL_SRIO_IsPortEnabled | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_IsPortEnabled

Description
The function is used to check if the port is enabled or not?

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
TRUE - Port is enabled
FALSE - Port is disabled

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_SP_CTL_PORT_DIS

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Check if port 1 is enabled or not?
            if (CSL_SRIO_IsPortEnabled(hSrio, 1) == TRUE)
            {
                // Port1 is enabled
            }
            else
            {
                // Port1 is disabled
            }
            ...

=============================================================================

CSL_IDEF_INLINE Bool CSL_SRIO_IsPortErrorCheckingEnabled | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_IsPortErrorCheckingEnabled

Description
The function is used to check if the error checking is enabled or not?

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
TRUE - Error Checking is enabled
FALSE - Error Checking is disabled

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_SP_CTL_ERR_DIS

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Check if error checking for port 1 is enabled or not?
            if (CSL_SRIO_IsPortErrorCheckingEnabled(hSrio, 1) == TRUE)
            {
                // Port1 error checking is enabled
            }
            else
            {
                // Port1 error checking is disabled
            }
            ...

=============================================================================

CSL_IDEF_INLINE Bool CSL_SRIO_IsPortFatalErrorDetected | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_IsPortFatalErrorDetected

Description
The function is used to check if the port has detected an error from which the hardware was unable to recover (a fatal error).

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
TRUE - Port Fatal Error detected
FALSE - Port Fatal Error not detected

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_SP_ERR_STAT_PORT_ERR

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Check if Port1 fatal error was detected or not?
            if (CSL_SRIO_IsPortFatalErrorDetected (hSrio, 1) == TRUE)
            {
                // Port1 has FATAL Error
            }
            else
            {
                // Port1 does not have a FATAL Error
            }
            ...

=============================================================================

CSL_IDEF_INLINE Bool CSL_SRIO_IsPortFlowArbiterationEnabled | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_IsPortFlowArbiterationEnabled

Description
The function is used to check if the flow arbiteration on the specific port is enabled or not?

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
TRUE - Flow Arbiteration is enabled
FALSE - Flow Arbiteration is disabled

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_SP_CTL_FLOW_ARB

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Check if flow arbiteration for port 1 is enabled or not?
            if (CSL_SRIO_IsPortFlowArbiterationEnabled(hSrio, 1) == TRUE)
            {
                // Port1 flow arbiteration is enabled
            }
            else
            {
                // Port1 flow arbiteration is disabled
            }
            ...

=============================================================================

CSL_IDEF_INLINE Bool CSL_SRIO_IsPortFlowControlEnabled | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_IsPortFlowControlEnabled

Description
The function is used to check if the flow control on the specific port is enabled or not?

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
TRUE - Flow Control is enabled
FALSE - Flow Control is disabled

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_SP_CTL_FLOW_CTRL

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Check if flow control for port 1 is enabled or not?
            if (CSL_SRIO_IsPortFlowControlEnabled(hSrio, 1) == TRUE)
            {
                // Port1 flow control is enabled
            }
            else
            {
                // Port1 flow control is disabled
            }
            ...

=============================================================================

CSL_IDEF_INLINE Bool CSL_SRIO_IsPortInitialized | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_IsPortInitialized

Description
The function is used to check if the port is initialized or not?

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
TRUE - Port is initialized
FALSE - Port is NOT initialized

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_SP_ERR_STAT_PORT_UNINIT

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Check if Port1 is initialized or not?
            if (CSL_SRIO_IsPortInitialized (hSrio, 1) == TRUE)
            {
                // Port1 is Initialized
            }
            else
            {
                // Port1 is NOT Initialized
            }
            ...

=============================================================================

CSL_IDEF_INLINE Bool CSL_SRIO_IsPortLockedout | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_IsPortLockedout

Description
The function is used to check if the port is locked out or not?

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
TRUE - Port is Locked out
FALSE - Port is NOT Locked out

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_SP_CTL_PORT_LOCKOUT

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Check if port 1 is locked out or not?
            if (CSL_SRIO_IsPortLockedout(hSrio, 1) == TRUE)
            {
                // Port1 is locked out
            }
            else
            {
                // Port1 is NOT locked out
            }
            ...

=============================================================================

CSL_IDEF_INLINE Bool CSL_SRIO_IsPortOk | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_IsPortOk

Description
The function is used to check if the port is initialized and can be used for exchanging error free control symbols.

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
TRUE - Port is operational
FALSE - Port is NOT operational

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_SP_ERR_STAT_PORT_OK

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Check if Port1 is ok and operational
            if (CSL_SRIO_IsPortOk (hSrio, 1) == TRUE)
            {
                // Port1 is OK and can be used
            }
            else
            {
                // Port1 is NOT OK and cannot be used
            }
            ...

=============================================================================

CSL_IDEF_INLINE Bool CSL_SRIO_IsPortStopFailEnabled | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_IsPortStopFailEnabled

Description
The function is used to check if the port stop failed is enabled or not?

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
TRUE - Stop flow is enabled
FALSE - Stop flow is disabled

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_SP_CTL_STOP_FAIL_EN

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Check if stop fail for port 1 is enabled or not?
            if (CSL_SRIO_IsPortStopFailEnabled(hSrio, 1) == TRUE)
            {
                // Port1 stop fail is enabled
            }
            else
            {
                // Port1 stop fail is disabled
            }
            ...

=============================================================================

CSL_IDEF_INLINE Bool CSL_SRIO_IsPortWritePending | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_IsPortWritePending

Description
The function is used to check if the port has encountered a condition which required it to an issue an I/O logical port-write maintainance request

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_SP_ERR_STAT_PORT_WRITE_PEND

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Check if Port1 has detected a port write pending condition?
            if (CSL_SRIO_IsPortWritePending (hSrio, 1) == TRUE)
            {
                // Port1 has detected a port write pending condition
            }
            else
            {
                // Port1 has NOT detected a port write pending condition
            }
            ...

=============================================================================

CSL_IDEF_INLINE Bool CSL_SRIO_IsPromiscuous | ( | CSL_SrioHandle | hSrio | ) |

============================================================================
CSL_SRIO_IsPromiscuous

Description
This function returns the status of the peripheral as TRUE if the device is operating in PROMISCUOUS mode else FALSE.

Arguments

              hSrio     Handle of the SRIO device

Return Value
TRUE - Device is in PROMISCUOUS Mode.
FALSE - Device is in NON-PROMISCUOUS Mode.

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_PER_SET_CNTL_LOG_TGT_ID_DIS

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Check if we are operating in PROMISCUOUS mode or not?
            if (CSL_SRIO_IsPromiscuous (hSrio) == TRUE)
            {
                // Device is in PROMISCUOUS Mode.
            }
            else
            {
                // Device is in Non-PROMISCUOUS Mode.
            }
            ...

=============================================================================

CSL_IDEF_INLINE Bool CSL_SRIO_IsRemoteTxEmphasisEnabled | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_IsRemoteTxEmphasisEnabled

Description
The function is used to check if the remote transmit emphasis is enabled or not?

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_SP_CTL2_RTEC

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Check if remote Transmit Emphasis is enabled or not?
            if (CSL_SRIO_IsRemoteTxEmphasisEnabled (hSrio, 1) == TRUE)
            {
                // Remote Transmit Emphasis is enabled
            }
            else
            {
                // Remote Transmit Emphasis is disabled
            }
            ...

=============================================================================

CSL_IDEF_INLINE Bool CSL_SRIO_IsSRIOBlockEnabled | ( | CSL_SrioHandle | hSrio,
|  | Uint16 | blockNumber |
| ) |  |  |

============================================================================
CSL_SRIO_IsSRIOBlockEnabled

Description
This function checks if the SRIO block is enabled or disabled?

Arguments

              hSrio             Handle of the SRIO device
              blockNumber       SRIO Block Number to be checked.

Return Value
TRUE - SRIO Block is enabled
FALSE - SRIO Block is disabled.

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_BLK_EN_STAT_EN_STATUS

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Ensure that the SRIO Block 1 for LSU is enabled or not?
            if (CSL_SRIO_IsSRIOBlockEnabled (hSrio, 1) == TRUE)
            {
                // SRIO Block 1 for LSU is ENABLED
            }
            else
            {
                // SRIO Block 1 for LSU is DISABLED
            }
            ...

=============================================================================

CSL_IDEF_INLINE Bool CSL_SRIO_IsSRIOEnabled | ( | CSL_SrioHandle | hSrio | ) |

============================================================================
CSL_SRIO_IsSRIOEnabled

Description
This function checks if the SRIO peripheral has been globally enabled or not?

Arguments

              hSrio             Handle of the SRIO device

Return Value
TRUE - SRIO Peripheral is enabled
FALSE - SRIO Peripheral is disabled.

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_GBL_EN_STAT_GBL_EN_STAT

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Ensure that the SRIO Peripheral is enabled or disabled.
            if (CSL_SRIO_IsSRIOEnabled (hSrio) == TRUE)
            {
                // SRIO Peripheral is ENABLED
            }
            else
            {
                // SRIO Peripheral is DISABLED
            }
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_MapAMUPrivIdToSourceId | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | privId,
|  | Uint8 | srcId |
| ) |  |  |

============================================================================
CSL_SRIO_MapAMUPrivIdToSourceId

Description
The function maps the AMU Priv ID to a specific Source ID.

Arguments

              hSrio             Handle of the SRIO device
              privId            AMU Priv ID which is being mapped
              srcId             Source ID to which the priv ID is being mapped to.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_AMU_SRCID_MAP_CPRIVID0_8;SRIO_RIO_AMU_SRCID_MAP_CPRIVID1_9;
SRIO_RIO_AMU_SRCID_MAP_CPRIVID2_10;SRIO_RIO_AMU_SRCID_MAP_CPRIVID3_11;
SRIO_RIO_AMU_SRCID_MAP_CPRIVID4_12;SRIO_RIO_AMU_SRCID_MAP_CPRIVID5_13;
SRIO_RIO_AMU_SRCID_MAP_CPRIVID6_14;SRIO_RIO_AMU_SRCID_MAP_CPRIVID7_15;

Example

            CSL_SrioHandle      hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);
            ...
            // Map the PRIV-ID 1 to Source ID 3
            CSL_SRIO_MapAMUPrivIdToSourceId (hSrio, 1, 5);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_MapMessageToQueue | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | index,
|  | SRIO_MESSAGE * | ptrMessage,
|  | Uint16 | queueId |
| ) |  |  |

============================================================================
CSL_SRIO_MapMessageToQueue

Description
The function maps a specific RIO message to the specific queue

Arguments

              hSrio             Handle of the SRIO device
              index             Index of the MAP register
              message           Message Information which is compared with incoming
                                packet.
              queueId           Destination Queue to which the message is sent

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_RXU_MAP_L_SRCID,SRIO_RIO_RXU_MAP_L_MBX,SRIO_RIO_RXU_MAP_L_LTR SRIO_RIO_RXU_MAP_L_MBX_MASK,SRIO_RIO_RXU_MAP_L_LTR_MASK,
SRIO_RIO_RXU_MAP_H_SEG_MAP,SRIO_RIO_RXU_MAP_H_SRC_PROM,SRIO_RIO_RXU_MAP_H_TT, SRIO_RIO_RXU_MAP_H_DEST_PROM,SRIO_RIO_RXU_MAP_H_DEST_ID,
SRIO_RIO_RXU_MAP_QID_DEST_QID,SRIO_RIO_RXU_MAP_QID_FLOWID

Example

            CSL_SrioHandle  hSrio;
            SRIO_MESSAGE    message;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            message.srcID   = 0xBEEF;
            message.mbx     = 0;
            message.ltr     = 0;
            message.mbxMask = 0;
            message.ltrMask = 0;
            message.segMap  = 0;     // Single Segment
            message.srcProm = 1;     // Full Access to the Queue for any Source ID
            message.tt      = 1;     // Match 16bits for Source ID.
            message.dstProm = 0;     // Access to the Queue for the specified Destination ID
            message.dstId   = 0xDEAD;// The destination ID which indicates us.
            message.flowId  = 0x0;

            // Map the above message to Queue 4. This is the first mapping which is being done
            CSL_SRIO_MapMessageToQueue (hSrio, 0, &message, 4);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_MapType9MessageToQueue | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | index,
|  | SRIO_TYPE9_MESSAGE * | ptrMessage,
|  | Uint16 | queueId |
| ) |  |  |

============================================================================
CSL_SRIO_MapType9MessageToQueue

Description
The function maps the specific TYPE9 message to the queue

Arguments

              hSrio             Handle of the SRIO device
              index             Index of the MAP register
              message           Type9-Message Information
              queueId           Destination Queue

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_RXU_TYPE9_MAP0_SRCID,SRIO_RIO_RXU_TYPE9_MAP0_COS, SRIO_RIO_RXU_TYPE9_MAP0_COS_MASK,
SRIO_RIO_RXU_TYPE9_MAP1_SRC_PROM,SRIO_RIO_RXU_TYPE9_MAP1_TT, SRIO_RIO_RXU_TYPE9_MAP1_DEST_PROM,SRIO_RIO_RXU_TYPE9_MAP1_DEST_ID,
SRIO_RIO_RXU_TYPE9_MAP2_STRM_ID,SRIO_RIO_RXU_TYPE9_MAP2_STRM_MASK,
SRIO_RIO_RXU_MAP_QID_DEST_QID,SRIO_RIO_RXU_MAP_QID_FLOWID

Example

            CSL_SrioHandle      hSrio;
            SRIO_TYPE9_MESSAGE  message;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            message.srcId      = 0xBEEF;
            message.cos        = 0;
            message.cosMask    = 0;
            message.srcProm    = 0;
            message.tt         = 1; // Match 16bits for Source ID.
            message.dstProm    = 0;
            message.dstId      = 0xDEAD;
            message.streamId   = 0;
            message.streamMask = 0;
            message.flowId     = 0;

            // Map the above message to Queue 5. This is the first mapping which is being done
            CSL_SRIO_MapType9MessageToQueue (hSrio, 0, &message, 5);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_MapVBUSPriorityToRIO | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | vbusPriority,
|  | Uint8 | priority |
| ) |  |  |

============================================================================
CSL_SRIO_MapVBUSPriorityToRIO

Description
The function maps the VBUS Priority to RIO Priority.

Arguments

              hSrio             Handle of the SRIO device
              vbusPriority      VBUS Priority which is to be mapped
              priority          RIO Priority to be mapped to.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_AMU_PRIORITY_MAP_DMA_PRI0;SRIO_RIO_AMU_PRIORITY_MAP_DMA_PRI1;
SRIO_RIO_AMU_PRIORITY_MAP_DMA_PRI2;SRIO_RIO_AMU_PRIORITY_MAP_DMA_PRI3;
SRIO_RIO_AMU_PRIORITY_MAP_DMA_PRI4;SRIO_RIO_AMU_PRIORITY_MAP_DMA_PRI5;
SRIO_RIO_AMU_PRIORITY_MAP_DMA_PRI6;SRIO_RIO_AMU_PRIORITY_MAP_DMA_PRI7

Example

            CSL_SrioHandle      hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);
            ...
            // Map the VBUS Priority 0 to CRITICAL Flow High Priority i.e. 7
            CSL_SRIO_MapVBUSPriorityToRIO (hSrio, 0, 7);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_RestartLSUTransaction | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | lsu |
| ) |  |  |

============================================================================
CSL_SRIO_RestartLSUTransaction

Description
The function is used to restart an LSU Transaction which had been halted due to an error condition.

Arguments

              hSrio             Handle of the SRIO device
              lsu               LSU Index which needs to be restarted

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_LSU_REG6_RESTART=1

Example

            CSL_SrioHandle     hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);
            ...
            // Restart the LSU transaction 1
            CSL_SRIO_RestartLSUTransaction (hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_RouteAMUInterrupts | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | amuIntr,
|  | Uint8 | destination |
| ) |  |  |

============================================================================
CSL_SRIO_RouteAMUInterrupts

Description
The function routes the AMU interrupts to a specific destination.

Arguments

              hSrio             Handle of the SRIO device
              amuIntr           AMU Interrupt request which is to be routed
              destination       Destination to which the interrupt bit is routed.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_AMU_ICRR1_ICR0;SRIO_RIO_AMU_ICRR1_ICR1;SRIO_RIO_AMU_ICRR1_ICR2; SRIO_RIO_AMU_ICRR1_ICR3;SRIO_RIO_AMU_ICRR1_ICR4;SRIO_RIO_AMU_ICRR1_ICR5; SRIO_RIO_AMU_ICRR1_ICR6;SRIO_RIO_AMU_ICRR1_ICR7; SRIO_RIO_AMU_ICRR2_ICR8;SRIO_RIO_AMU_ICRR2_ICR9;SRIO_RIO_AMU_ICRR2_ICR10; SRIO_RIO_AMU_ICRR2_ICR11;SRIO_RIO_AMU_ICRR2_ICR12;SRIO_RIO_AMU_ICRR2_ICR13; SRIO_RIO_AMU_ICRR2_ICR14;SRIO_RIO_AMU_ICRR2_ICR15

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Route the AMU Interrupts 1 to destination 6
            CSL_SRIO_RouteAMUInterrupts (hSrio, 1, 6);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_RouteDoorbellInterrupts | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | regNum,
|  | Uint8 | doorBellBit,
|  | Uint8 | destination |
| ) |  |  |

============================================================================
CSL_SRIO_RouteDoorbellInterrupts

Description
The function routes the doorbell interrupts for the specified doorbell register to a specific destination.

Arguments

              hSrio             Handle of the SRIO device
              regNum            Doorbell Register Number
              doorBellBit       Doorbell bit which is to be routed
              destination       Destination to which the interrupt bit is routed.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_DOORBELL_ICRR1_ICR0,SRIO_RIO_DOORBELL_ICRR1_ICR1, SRIO_RIO_DOORBELL_ICRR1_ICR2,SRIO_RIO_DOORBELL_ICRR1_ICR3, SRIO_RIO_DOORBELL_ICRR1_ICR4,SRIO_RIO_DOORBELL_ICRR1_ICR5, SRIO_RIO_DOORBELL_ICRR1_ICR6,SRIO_RIO_DOORBELL_ICRR1_ICR7;
SRIO_RIO_DOORBELL_ICRR2_ICR8,SRIO_RIO_DOORBELL_ICRR2_ICR9, SRIO_RIO_DOORBELL_ICRR2_ICR10,SRIO_RIO_DOORBELL_ICRR2_ICR11, SRIO_RIO_DOORBELL_ICRR2_ICR12,SRIO_RIO_DOORBELL_ICRR2_ICR13, SRIO_RIO_DOORBELL_ICRR2_ICR14,SRIO_RIO_DOORBELL_ICRR2_ICR15

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Route the Doorbell bits 1 for Doorbell 2 to destination 2
            CSL_SRIO_RouteDoorbellInterrupts (hSrio, 2, 1, 2);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_RouteErrorInterrupts | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | errIntrReq,
|  | Uint8 | destination |
| ) |  |  |

============================================================================
CSL_SRIO_RouteErrorInterrupts

Description
The function routes the error interrupts to a specific destination.

Arguments

              hSrio             Handle of the SRIO device
              errIntrReq        Error Interrupt request which is to be routed
              destination       Destination to which the interrupt bit is routed.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_ERR_RST_EVNT_ICRR_ICR0;SRIO_RIO_ERR_RST_EVNT_ICRR_ICR1; SRIO_RIO_ERR_RST_EVNT_ICRR_ICR2;
SRIO_RIO_ERR_RST_EVNT_ICRR2_ICR8;SRIO_RIO_ERR_RST_EVNT_ICRR2_ICR9; SRIO_RIO_ERR_RST_EVNT_ICRR2_ICR10;SRIO_RIO_ERR_RST_EVNT_ICRR2_ICR11;
SRIO_RIO_ERR_RST_EVNT_ICRR3_ICR16

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Route the Error Interrupts 1 to destination 6
            CSL_SRIO_RouteErrorInterrupts (hSrio, 1, 6);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_RouteLSUInterrupts | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | lsuIntrReq,
|  | Uint8 | destination |
| ) |  |  |

============================================================================
CSL_SRIO_RouteLSUInterrupts

Description
The function routes the LSU interrupts to a specific destination.

Arguments

              hSrio             Handle of the SRIO device
              lsuIntrReq        LSU Interrupt request which is to be routed
              destination       Destination to which the interrupt bit is routed.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_LSU_ICRR

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Route the LSU Interrupts 1 to destination 6
            CSL_SRIO_RouteLSUInterrupts (hSrio, 1, 6);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SendPortLinkMaintRequest | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 | cmd |
| ) |  |  |

============================================================================
CSL_SRIO_SendPortLinkMaintRequest

Description
The function sends a port link request control symbol on the specified SRIO port.

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number
              cmd               Command to be sent in the link-request control symbol.
                                The following values hold good:-
                                    - 0x3 i.e. Reset
                                    - 0x4 i.e. Input Status

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_LM_REQ_CMD

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Send a maintainance request on port 1 for reset
            CSL_SRIO_SendPortLinkMaintRequest (hSrio, 1, 3);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetACKStatus | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 | inputAckID,
|  | Uint8 | outputAckID |
| ) |  |  |

============================================================================
CSL_SRIO_SetACKStatus

Description
The function is used to set the ACK status.

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number
              inputAckID        Input port next expected ACK ID
              outputUnAckID     Output port unacknowledged ackID status
              outputAckID       Output port next transmitted Acknowledge ID value

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_ACKID_STAT_INB_ACKID, SRIO_RIO_SP_ACKID_STAT_OUTB_ACKID

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the ACK Status for Port 1
            CSL_SRIO_SetACKStatus (hSrio, 1, 100, 205);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetAddressCapture | ( | CSL_SrioHandle | hSrio,
|  | Uint32 | address,
|  | Uint8 | xamsbs |
| ) |  |  |

============================================================================
CSL_SRIO_SetAddressCapture

Description
The function is used to set the LSB 29 bits of the address which caused the error and also the extended address bits

Arguments

              hSrio             Handle of the SRIO device
              address           Address to be configured
              xamsbs            Extended Address Information

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_ADDR_CAPT_ADDR_LOW,SRIO_RIO_ADDR_CAPT_XAMSBS

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Clear address information which caused the error
            CSL_SRIO_SetAddressCapture(hSrio, 0x0, 0x0);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetAMUFlowMask | ( | CSL_SrioHandle | hSrio,
|  | Uint16 | flowMask |
| ) |  |  |

============================================================================
CSL_SRIO_SetAMUFlowMask

Description
The function configures the AMU Flow Mask

Arguments

              hSrio             Handle of the SRIO device
              flowMask          Flow Mask to be configured.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_AMU_FLOW_MASKS0_AMU_FLOW_MASK

Example

            CSL_SrioHandle      hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);
            ...
            // Configure the AMU Flow Mask
            CSL_SRIO_SetAMUFlowMask (hSrio, 0x0);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetAMUPane | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | index,
|  | SRIO_AMU_PANE * | amuPane |
| ) |  |  |

============================================================================
CSL_SRIO_SetAMUPane

Description
The function configures the specific AMU Pane

Arguments

              hSrio             Handle of the SRIO device
              index             AMU Pane to be configured
              amuPane           AMU Pane Properties to be configured.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_AMU_WINDOW_PANE_CMD_ENC,SRIO_RIO_AMU_WINDOW_PANE_PORT_ID, SRIO_RIO_AMU_WINDOW_PANE_ID_SIZE,SRIO_RIO_AMU_WINDOW_PANE_DESTID

Example

            CSL_SrioHandle      hSrio;
            SRIO_AMU_PANE       amuPane;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);
            ...
            // Configure the AMU Pane Properties for AMU Pane 1
            CSL_SRIO_SetAMUPane (hSrio, 1, &amuPane);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetAMUSwappingMode | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | mode |
| ) |  |  |

============================================================================
CSL_SRIO_SetAMUSwappingMode

Description
This function sets the Little Endian Swapping Mode for the AMU

Arguments

              hSrio     Handle of the SRIO device
              mode      Little Endian Swapping Mode for the AMU

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PER_SET_CNTL_AMU_LEND_SWAP_MODE

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Ensure that the AMU operates in mode A
            CSL_SRIO_SetAMUSwappingMode (hSrio, 0);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetAMUWindow | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | index,
|  | SRIO_AMU_WINDOW * | amuWindow |
| ) |  |  |

============================================================================
CSL_SRIO_SetAMUWindow

Description
The function configures the specific AMU Window register

Arguments

              hSrio             Handle of the SRIO device
              index             AMU Window to be configured
              amuWindow         AMU Window Properties to be configured.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_AMU_WINDOW_REG0_XAMBS,SRIO_RIO_AMU_WINDOW_REG0_PANE_COUNT, SRIO_RIO_AMU_WINDOW_REG0_PANE_SIZE,SRIO_RIO_AMU_WINDOW_REG0_WINDOW_SIZE, SRIO_RIO_AMU_WINDOW_REG1,SRIO_RIO_AMU_WINDOW_REG2

Example

            CSL_SrioHandle      hSrio;
            SRIO_AMU_WINDOW     amuWindow;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);
            ...
            // Configure the AMU Window Properties for AMU Window 1
            CSL_SRIO_SetAMUWindow (hSrio, 1, &amuWindow);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetAssemblyInfo | ( | CSL_SrioHandle | hSrio,
|  | Uint16 | asblyId,
|  | Uint16 | asblyVendorId,
|  | Uint16 | asblyRev,
|  | Uint16 | extFeaturePtr |
| ) |  |  |

============================================================================
CSL_SRIO_SetAssemblyInfo

Description
The function sets up the Assembly Identifier information.

Arguments

              hSrio             Handle of the SRIO device
              asblyId           Assembly Identity to configure.
              asblyVendorId     Assembly Vendor Identity to configure
              asblyRev          Assembly Revision to configure

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_ASBLY_ID_ASBLY_ID,SRIO_RIO_ASBLY_ID_ASBLY_VEN_ID,
SRIO_RIO_ASBLY_INFO_ASBLY_REV,SRIO_RIO_ASBLY_INFO_EXT_FEAT_PTR

Example

            CSL_SrioHandle  hSrio;
            Uint16          asblyId;
            Uint16          asblyVendorId;
            Uint16          asblyRev;
            Uint16          extFeaturePtr;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Read the Assembly Identity CAR
            CSL_SRIO_GetAssemblyInfo (hSrio, &asblyId, &asblyVendorId, &asblyRev, &extFeaturePtr);
            ...
            // Sets up the Assembly Identity info
            CSL_SRIO_SetAssemblyInfo (hSrio, asblyId, asblyVendorId, asblyRev, extFeaturePtr);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetBootComplete | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | bootCompleteFlag |
| ) |  |  |

============================================================================
CSL_SRIO_SetBootComplete

Description
This function sets the boot complete flag as specified.

Arguments

              hSrio             Handle of the SRIO device
              bootCompleteFlag  Boot Complete Flag to be set in the register.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PER_SET_CNTL_BOOT_COMPLETE

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the Boot Complete Flag to 1
            CSL_SRIO_SetBootComplete (hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetCompTagCSR | ( | CSL_SrioHandle | hSrio,
|  | Uint32 | ctag |
| ) |  |  |

============================================================================
CSL_SRIO_SetCompTagCSR

Description
The function sets the component tag CSR

Arguments

              hSrio         Handle of the SRIO device
              ctag          Component Tag to be configured

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_COMP_TAG

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the Component Tag CSR
            CSL_SRIO_SetCompTagCSR (hSrio, 0xBEEF);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetControlCapture | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | ftype,
|  | Uint8 | ttype,
|  | Uint8 | msgInfo,
|  | Uint16 | implSpecific |
| ) |  |  |

============================================================================
CSL_SRIO_SetControlCapture

Description
The function is used to set the control information associated with the error

Arguments

              hSrio             Handle of the SRIO device
              ftype             FTPYE associated with the error
              ttype             TTPYE associated with the error
              msgInfo           Message Information associated with the error
              implSpecific      Implementation Specific information

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_CTRL_CAPT_FTYPE, SRIO_RIO_CTRL_CAPT_TTYPE,
SRIO_RIO_CTRL_CAPT_MSG_INFO, SRIO_RIO_CTRL_CAPT_IMP_SPECIFIC

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Clear the control capture information which caused the error
            CSL_SRIO_SetControlCapture(hSrio, 0x0, 0x0, 0x0, 0x0);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetDataStreamingInfo | ( | CSL_SrioHandle | hSrio,
|  | Uint16 | maxPDU,
|  | Uint16 | segSupport |
| ) |  |  |

============================================================================
CSL_SRIO_SetDataStreamingInfo

Description
The function sets the data streaming information

Arguments

              hSrio             Handle of the SRIO device
              maxPDU            Maximum PDU
              segSupport        Num of segmentation context

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_DS_INFO_MAX_PDU, SRIO_RIO_DS_INFO_SEG_SUPPORT

Example

            CSL_SrioHandle  hSrio;
            Uint16          maxPDU;
            Uint16          segSupport;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the Data Streaming Information: 64K bytes and 64K Segmentation Context
            CSL_SRIO_SetDataStreamingInfo (hSrio, 0x0, 0x0);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetDataStreamingMode | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | mode |
| ) |  |  |

============================================================================
CSL_SRIO_SetDataStreamingMode

Description
The function sets the data streaming traffic management mode of operation

Arguments

              hSrio             Handle of the SRIO device
              mode              Traffic Management Mode to be configured

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_DS_LL_CTL_TM_MODE

Example

            CSL_SrioHandle  hSrio;
            Uint8           mode;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the Data Streaming TM Mode
            CSL_SRIO_SetDataStreamingMode (hSrio, &mode);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetDataStreamingMTU | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | mtu |
| ) |  |  |

============================================================================
CSL_SRIO_SetDataStreamingMTU

Description
The function sets the data streaming MTU

Arguments

              hSrio             Handle of the SRIO device
              mtu               MTU to be configured

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_DS_LL_CTL_MTU

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the Data Streaming MTU
            CSL_SRIO_SetDataStreamingMTU (hSrio, 64);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetDestOperationCAR | ( | CSL_SrioHandle | hSrio,
|  | SRIO_OP_CAR * | ptrDstOp |
| ) |  |  |

============================================================================
CSL_SRIO_SetDestOperationCAR

Description
The function sets the Switch Port Capabilities which are all the logical operations that can be issued by the application.

Arguments

              hSrio             Handle of the SRIO device
              ptrDstOp          Pointer to the Dest CAR Structure to be configured

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_DEST_OP_G_READ, SRIO_RIO_DEST_OP_G_IREAD, SRIO_RIO_DEST_OP_G_READ_OWN,
SRIO_RIO_DEST_OP_G_DC_INVALIDATE, SRIO_RIO_DEST_OP_G_CASTOUT, SRIO_RIO_DEST_OP_G_DC_FLUSH,
SRIO_RIO_DEST_OP_G_IO_READ, SRIO_RIO_DEST_OP_G_IC_INVALIDATE, SRIO_RIO_DEST_OP_G_TLB_INVALIDATE,
SRIO_RIO_DEST_OP_G_TLB_SYNC, SRIO_RIO_DEST_OP_DS_TM, SRIO_RIO_DEST_OP_DS,
SRIO_RIO_DEST_OP_IMPLEMENT_DEF, SRIO_RIO_DEST_OP_READ, SRIO_RIO_DEST_OP_WRITE,
SRIO_RIO_DEST_OP_STRM_WR, SRIO_RIO_DEST_OP_WR_RES, SRIO_RIO_DEST_OP_D_MSG, SRIO_RIO_DEST_OP_DBELL,
SRIO_RIO_DEST_OP_ACSWAP, SRIO_RIO_DEST_OP_ATSWAP, SRIO_RIO_DEST_OP_A_INC, SRIO_RIO_DEST_OP_A_DEC,
SRIO_RIO_DEST_OP_A_SET, SRIO_RIO_DEST_OP_A_CLEAR, SRIO_RIO_DEST_OP_A_SWAP, SRIO_RIO_DEST_OP_PORT_WR,
SRIO_RIO_DEST_OP_IMPLEMENT_DEF2

Example

            CSL_SrioHandle  hSrio;
            SRIO_OP_CAR     dstOPCAR;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Dest Operation CAR
            CSL_SRIO_GetDestOperationCAR (hSrio, &dstOPCAR);

            // Allow Doorbell support.
            dstOPCAR.doorbellSupport = 1;

            // Set the Dest Operation CAR
            CSL_SRIO_SetDestOperationCAR (hSrio, &dstOPCAR);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetDeviceID | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | index,
|  | Uint8 | NodeId8bit,
|  | Uint16 | NodeId16bit |
| ) |  |  |

============================================================================
CSL_SRIO_SetDeviceID

Description
This function sets the DEVICE ID Register. There are multiple device ID registers which can exist in the system. The index parameter is used to indicate which register is to be configured.

Arguments

              hSrio             Handle of the SRIO device
              index             Index of the Device ID register to be configured (0-Based)
              NodeId8bit        8 Bit Device Identifier to be configured
              NodeId16bit       16 Bit Device Identifier to be configured.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_MULTIID_REG_8B_NODEID,SRIO_RIO_MULTIID_REG_16B_NODEID

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Configure the First Device ID register with a 16 bit identifer as 0xDEAD
            // and no 8 bit identifier.
            CSL_SRIO_SetDeviceID (hSrio, 0, 0x0, 0xDEAD);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetDeviceIDCSR | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | baseID8Bit,
|  | Uint16 | baseID16Bit |
| ) |  |  |

============================================================================
CSL_SRIO_SetDeviceIDCSR

Description
The function sets the 8bit and 16 device ID in the standard CSR

Arguments

              hSrio             Handle of the SRIO device
              baseID8Bit        8bit Device Identifier.
              baseID16Bit       16bit Device Identifier.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_BASE_ID_BASE_ID,SRIO_RIO_BASE_ID_LARGE_BASE_ID

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the Device Identifier CSR
            CSL_SRIO_SetDeviceIDCSR (hSrio, 0x0, 0xDEAD);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetDeviceInfo | ( | CSL_SrioHandle | hSrio,
|  | Uint16 | deviceId,
|  | Uint16 | deviceVendorId,
|  | Uint32 | deviceRev |
| ) |  |  |

============================================================================
CSL_SRIO_SetDeviceInfo

Description
The function sets up the Device Identifier information.

Arguments

              hSrio             Handle of the SRIO device
              deviceId          Device Identity to configure
              deviceVendorId    Device Vendor Identity to configure
              deviceRev         Device Revision to configure

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_DEV_ID_DEV_ID,SRIO_RIO_DEV_ID_DEV_VEN_ID,
SRIO_RIO_DEV_INFO_DEVICE_REV

Example

            CSL_SrioHandle  hSrio;
            Uint16          deviceId;
            Uint16          deviceVendorId;
            Uint32          deviceRev;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Read the Device Identity CAR
            CSL_SRIO_GetDeviceInfo (hSrio, &deviceId, &deviceVendorId, &deviceRev);
            ...
            // Setup the device identity info
            CSL_SRIO_SetDeviceInfo (hSrio, deviceId, deviceVendorId, deviceRev);

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetDoorbellRoute | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | routeInfo |
| ) |  |  |

============================================================================
CSL_SRIO_SetDoorbellRoute

Description
The function sets the doorbell routing information.

Arguments

              hSrio             Handle of the SRIO device
              route             Routing Information to be configured

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Reads
SRIO_RIO_INTERRUPT_CTL_DBLL_ROUTE

Example

            CSL_SrioHandle  hSrio;
            Uint8           routeInfo;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the Doorbell routing information to use dedicated interrupts.
            CSL_SRIO_SetDoorbellRoute (hSrio, 0);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetErrorDetect | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | illID,
|  | Uint8 | illType |
| ) |  |  |

============================================================================
CSL_SRIO_SetErrorDetect

Description
The function is used to set the error detect CSR.

Arguments

              hSrio             Handle of the SRIO device
              illID             Illegal transaction target error
              illType           Unsupported Transaction

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_LOCAL_ERR_DET_ILL_ID, SRIO_RIO_LOCAL_ERR_DET_ILL_TYPE

Example

            CSL_SrioHandle      hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the Error Detect CSR Information for illegal type
            CSL_SRIO_SetErrorDetect(hSrio, 0, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetErrorDetectCSR | ( | CSL_SrioHandle | hSrio,
|  | Uint32 | errDetect |
| ) |  |  |

============================================================================
CSL_SRIO_SetErrorDetectCSR

Description
The function is used to set the error detected CSR information

Arguments

              hSrio             Handle of the SRIO device
              errDetect         Error Detect Information to be cleared

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_ERR_DET

Example

            CSL_SrioHandle  hSrio;
            Uint32          errDetect;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the error detect information
            CSL_SRIO_GetErrorDetectCSR(hSrio, &errDetect);
            ...
            // Clear the error detect informatio
            CSL_SRIO_SetErrorDetectCSR(hSrio, errDetect);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetErrorDetectEnable | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | illID,
|  | Uint8 | illType |
| ) |  |  |

============================================================================
CSL_SRIO_SetErrorDetectEnable

Description
The function is used to set the error detect enable CSR

Arguments

              hSrio             Handle of the SRIO device
              illID             Illegal transaction target error
              illType           Unsupported Transaction

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_LOCAL_ERR_EN_ILL_ID_EN, SRIO_RIO_LOCAL_ERR_EN_ILL_TYPE_EN

Example

            CSL_SrioHandle      hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the Error Detect Enable CSR Information for both illegal id and type
            CSL_SRIO_SetErrorDetectEnable(hSrio, 1, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetErrorEnable | ( | CSL_SrioHandle | hSrio,
|  | Uint32 | errEnable |
| ) |  |  |

============================================================================
CSL_SRIO_SetErrorEnable

Description
The function is used to set the error enable status

Arguments

              hSrio             Handle of the SRIO device
              errEnable         Error Enable Status populated by this API

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_ERR_EN

Example

            CSL_SrioHandle  hSrio;
            Uint32          errEnable;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the error enable status information
            CSL_SRIO_GetErrorEnable(hSrio, &errEnable);

            // Ensure that IO Error response is enabled
            errEnable = errEnable | 0x80000000;
            CSL_SRIO_SetErrorEnable(hSrio, errEnable);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetErrorRateCSR | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | SRIO_ERR_RATE * | ptrErrorRate |
| ) |  |  |

============================================================================
CSL_SRIO_SetErrorRateCSR

Description
The function is used to set the error rate CSR which is used to monitor and control the reporting of the Port Physical layer errors.

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number
              ptrErrorRate      Error Rate configuration.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_ERR_RATE_ERR_RB,SRIO_RIO_SP_ERR_RATE_ERR_RR,
SRIO_RIO_SP_ERR_RATE_ERR_PEAK,SRIO_RIO_SP_ERR_RATE_ERR_RATE_CNT

Example

            CSL_SrioHandle  hSrio;
            SRIO_ERR_RATE   errorRate;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Error Rate CSR Information.
            CSL_SRIO_GetErrorRateCSR (hSrio, 1, &errorRate);

            // Modify the configuration to not decrement the error rate counter
            errorRate.errRateBias = 0x0;
            CSL_SRIO_SetErrorRateCSR (hSrio, 1, &errorRate);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetErrorRateThreshold | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 | errRateFailedThreshold,
|  | Uint8 | errRateDegradeThreshold |
| ) |  |  |

============================================================================
CSL_SRIO_SetErrorRateThreshold

Description
The function is used to set the error rate threshold.

Arguments

              hSrio                     Handle of the SRIO device
              portNum                   SRIO Port Number
              errRateFailedThreshold    Threshold value for reporting an error condition
                                        due to possibly broken link
              errRateDegradeThreshold   Threshold value for reporting an error condition
                                        due to a degrading link.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_ERR_THRESH_ERR_RFT, SRIO_RIO_SP_ERR_THRESH_ERR_RDT

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the Error Rate Threshold Information disabling both failed &
            // degraded triggers
            CSL_SRIO_SetErrorRateThreshold (hSrio, 1, 0x0, 0x0);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetEventMgmtCmdStatus | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | cmdStat |
| ) |  |  |

============================================================================
CSL_SRIO_SetEventMgmtCmdStatus

Description
The function is used to set the event management command status

Arguments

              hSrio         Handle of the SRIO device
              cmdStat       MECS Command to be configured

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_EM_MECS_STAT_CMD_STAT

Example

            CSL_SrioHandle      hSrio;
            Uint8               cmdStat;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Event Management Command Status
            CSL_SRIO_GetEventMgmtCmdStatus(hSrio, &cmdStat);
            ...
            // Clear the Event Management Command Status
            CSL_SRIO_SetEventMgmtCmdStatus(hSrio, cmdStat);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetEventMgmtInterrupts | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | log,
|  | Uint8 | mecs,
|  | Uint8 | pwRx,
|  | Uint8 | localLog |
| ) |  |  |

============================================================================
CSL_SRIO_SetEventMgmtInterrupts

Description
The function is used to set the Event Management Interrupts

Arguments

              hSrio         Handle of the SRIO device
              log           When set, this field enables a logical layer event
                            detected in the User Core to cause an interrupt
              mecs          When set, this field enables an interrupt to be raised
                            upon reception of an MECS with a command value that is
                            enabled
              pwRx          When set, this field enables the reception of a port-write
                            to cause an interrupt
              localLog      When set, this field enables an implementation-specific
                            Logical/Transport Layer Error to cause an interrupt

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_EM_INT_ENABLE_LOG, SRIO_RIO_EM_INT_ENABLE_MECS,
SRIO_RIO_EM_INT_ENABLE_PW_RX, SRIO_RIO_EM_INT_ENABLE_LOCALOG

Example

            CSL_SrioHandle      hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the Event Management Interrupts for logical layer events only
            CSL_SRIO_SetEventMgmtInterrupts(hSrio, 1, 0, 0, 0);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetEventMgmtMECSCaptureOut | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | cmdEn |
| ) |  |  |

============================================================================
CSL_SRIO_SetEventMgmtMECSCaptureOut

Description
The function is used to set the event management MECS capture out

Arguments

              hSrio         Handle of the SRIO device
              cmdEn         Enables the associated bit to toggle

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_EM_MECS_CAP_EN_CMD_EN

Example

            CSL_SrioHandle      hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the Event Management MECS Capture out for all commands
            CSL_SRIO_SetEventMgmtMECSCaptureOut(hSrio, 0xFF);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetEventMgmtMECSInterrupt | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | mecsStatus |
| ) |  |  |

============================================================================
CSL_SRIO_SetEventMgmtMECSInterrupt

Description
The function is used to set the event management MECS interrupt enable status

Arguments

              hSrio         Handle of the SRIO device
              mecsStatus    Enables MECS with set cmd to raise an interrupt request

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_EM_MECS_INT_EN_CMD_EN

Example

            CSL_SrioHandle      hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the Event Management MECS Interrupt status for all cmds
            CSL_SRIO_SetEventMgmtMECSInterrupt(hSrio, 0xFF);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetEventMgmtMECSPortStatus | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | port |
| ) |  |  |

============================================================================
CSL_SRIO_SetEventMgmtMECSPortStatus

Description
The function is used to set the event management MECS Port Status

Arguments

              hSrio         Handle of the SRIO device
              port          MECS Received Status

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_EM_MECS_PORT_STAT_PORT

Example

            CSL_SrioHandle      hSrio;
            Uint8               port;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Event Management MECS Port Status
            CSL_SRIO_GetEventMgmtMECSPortStatus(hSrio, &port);
            ...
            // Clear the Event Management MECS Port Status
            CSL_SRIO_SetEventMgmtMECSPortStatus (hSrio, port);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetEventMgmtMECSRequest | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | sendStatus,
|  | Uint8 | cmd |
| ) |  |  |

============================================================================
CSL_SRIO_SetEventMgmtMECSRequest

Description
The function is used to set the event management MECS Request

Arguments

              hSrio         Handle of the SRIO device
              sendStatus    Send Status
              cmd           MECS command to be sent

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_EM_MECS_REQ_SEND, SRIO_RIO_EM_MECS_REQ_CMD

Example

            CSL_SrioHandle      hSrio;
            Uint8               sendStatus;
            Uint8               cmd;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Send the MECS Command 2.
            CSL_SRIO_SetEventMgmtMECSRequest(hSrio, 0x1, 0x2);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetEventMgmtMECSTriggerIn | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | cmdStat,
|  | Uint8 | cmdEn |
| ) |  |  |

============================================================================
CSL_SRIO_SetEventMgmtMECSTriggerIn

Description
The function is used to set the event management MECS Trigger In

Arguments

              hSrio         Handle of the SRIO device
              cmdStat       Bit is set whenever an edge is detected on corresponding
              cmdEn         Enables the associated bit to trigger a MECS command

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_EM_MECS_TRIG_EN_CMD_STAT, SRIO_RIO_EM_MECS_TRIG_EN_CMD_EN

Example

            CSL_SrioHandle      hSrio;
            Uint8               cmdEn;
            Uint8               cmdStat;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Event Management MECS Trigger In
            CSL_SRIO_GetEventMgmtMECSTriggerIn(hSrio, &cmdStat, &cmdEn);
            ...
            // Set the Event Management MECS Trigger In to enable all MECS cmds
            CSL_SRIO_SetEventMgmtMECSTriggerIn(hSrio, cmdStat, 0xFF);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetEventMgmtPortWriteEnable | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | log,
|  | Uint8 | localLog |
| ) |  |  |

============================================================================
CSL_SRIO_SetEventMgmtPortWriteEnable

Description
The function is used to set the Event Management Port Write Enable

Arguments

              hSrio         Handle of the SRIO device
              log           When set, this field enables a logical layer event
                            to cause a port-write to be sent.
              localLog      When set, this field enables an implementation-specific
                            Logical/Transport Layer Error to cause a port-write
                            to be sent

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_EM_PW_EN_LOG, SRIO_RIO_EM_PW_EN_LOCALOG

Example

            CSL_SrioHandle      hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the Event Management Port Enable for Log only events
            CSL_SRIO_SetEventMgmtPortWriteEnable(hSrio, 1, 0);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetEventMgmtResetRequest | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | rstReq |
| ) |  |  |

============================================================================
CSL_SRIO_SetEventMgmtResetRequest

Description
The function is used to set the event management reset request

Arguments

              hSrio         Handle of the SRIO device
              rstReq        Per-port Reset Control Symbol event received status

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_EM_RST_PORT_STAT_RST_REQ

Example

            CSL_SrioHandle      hSrio;
            Uint8               rstReq;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the Event Management Reset Request Status
            // and clear all the reset events
            CSL_SRIO_SetEventMgmtResetRequest(hSrio, 0xFF);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetEventMgmtResetRequestInterrupt | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | rstIntEn |
| ) |  |  |

============================================================================
CSL_SRIO_SetEventMgmtResetRequestInterrupt

Description
The function is used to set the event management reset request interrupt enable status

Arguments

              hSrio         Handle of the SRIO device
              rstIntEn      Per-port Reset Request event interrupt enable

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_EM_RST_INT_EN_RST_INT_EN

Example

            CSL_SrioHandle      hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the Event Management Reset Request Interrupt Enable for all ports
            CSL_SRIO_SetEventMgmtResetRequestInterrupt(hSrio, 0xF);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetEventMgmtResetRequestPortWrite | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | rstPwEn |
| ) |  |  |

============================================================================
CSL_SRIO_SetEventMgmtResetRequestPortWrite

Description
The function is used to set the event management reset request port write enable status

Arguments

              hSrio         Handle of the SRIO device
              rstPwEn       Per-port Reset Request port-write enable

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_EM_RST_PW_EN_RST_PW_EN

Example

            CSL_SrioHandle      hSrio;
            Uint8               rstReq;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the Event Management MECS Reset Request Port Write Status to
            // enable sending port write for reset request on all ports
            CSL_SRIO_SetEventMgmtResetRequestPortWrite(hSrio, 0xF);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetFlowControl | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | flowControlIdx,
|  | Uint8 | tt,
|  | Uint16 | dstID |
| ) |  |  |

============================================================================
CSL_SRIO_SetFlowControl

Description
The function is used to set the RIO flow control.

Arguments

              hSrio             Handle of the SRIO device
              flowControlIdx    Flow Control Index which is to be configured.
              tt                Flag which defines 16 bit or 8 bit identifiers. Set to
                                1 for 16 bit identifiers 0 for 8 bit.
              dstID             Destination ID matching the flow

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_FLOW_CNTL_TT, SRIO_RIO_FLOW_CNTL_FLOW_CNTL_ID

Example

            CSL_SrioHandle     hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);
            ...
            // Set the SRIO Flow Control 0 for Destination ID 0xBEEF
            // since the destination ID is 16 bit we set the TT flag as 1
            CSL_SRIO_SetFlowControl (hSrio, 0, 1, 0xBEEF);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetHighAddressCapture | ( | CSL_SrioHandle | hSrio,
|  | Uint32 | hiAddress |
| ) |  |  |

============================================================================
CSL_SRIO_SetHighAddressCapture

Description
The function is used to set the MSB 32 bits of the address which caused the error

Arguments

              hSrio             Handle of the SRIO device
              hiAddress         High Address to be configured

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_H_ADDR_CAPT

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Clear the High Address Error Capture
            CSL_SRIO_SetHighAddressCapture(hSrio, 0x0);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetHostDeviceID | ( | CSL_SrioHandle | hSrio,
|  | Uint16 | identifier |
| ) |  |  |

============================================================================
CSL_SRIO_SetHostDeviceID

Description
The function sets the host device identifier which is responsible for initializing the processing element.

Arguments

              hSrio             Handle of the SRIO device
              identifier        Device Identifier to be configured.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_HOST_BASE_ID_LOCK_HOST_BASE_ID

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the Host Device Identifier.
            CSL_SRIO_SetHostDeviceID (hSrio, 0xBEEF);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetIDCapture | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | msbdstId,
|  | Uint8 | lsbdstId,
|  | Uint8 | msbsrcId,
|  | Uint8 | lsbsrcId |
| ) |  |  |

============================================================================
CSL_SRIO_SetIDCapture

Description
The function is used to set the source and destination id associated with the error

Arguments

              hSrio             Handle of the SRIO device
              msbdstId          MSB Destination ID
              lsbdstID          LSB Destination ID
              msbsrcId          MSB Source ID
              lsbsrcId          LSB Source ID

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_ID_CAPT_MSB_DSTID, SRIO_RIO_ID_CAPT_DSTID,
SRIO_RIO_ID_CAPT_MSB_SRCTID, SRIO_RIO_ID_CAPT_SRCID

Example

            CSL_SrioHandle  hSrio;
            Uint8           msbdstId;
            Uint8           lsbdstID;
            Uint8           msbsrcId;
            Uint8           lsbsrcId;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Clear the address capture information
            CSL_SRIO_SetIDCapture(hSrio, 0x0, 0x0, 0x0, 0x0);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetInterruptPacing | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | destination,
|  | Uint32 | rate |
| ) |  |  |

============================================================================
CSL_SRIO_SetInterruptRate

Description
The function sets the rate for each interrupt destination.

Arguments

              hSrio             Handle of the SRIO device
              destination       Destination Address for which the status is read.
              rate              Interrupt Rate to be configured.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_INTDST_RATE_CNT_COUNT_DOWN_VALUE

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Enable Interrupt Pacing for Destination 2.
            CSL_SRIO_EnableInterruptPacing (hSrio, 2);

            // Set the slowest Interrupt Rate for destination 2.
            CSL_SRIO_SetInterruptRate (hSrio, 2, 0xFFFFFFFF);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetLLMPortIPPrescalar | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | prescalarClock |
| ) |  |  |

============================================================================
CSL_SRIO_SetLLMPortIPPrescalar

Description
The function is used to set the LLM Port IP Prescalar

Arguments

              hSrio             Handle of the SRIO device
              prescalarClock    Prescalar clock

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PRESCALAR_SRV_CLK_PRESCALAR_SRV_CLK

Example

            CSL_SrioHandle      hSrio;
            Uint8               prescalarClock;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the LLM Port IP Prescalar Clock to the default value
            CSL_SRIO_SetLLMPortIPPrescalar(hSrio, 31);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetLLMResetControl | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | clearSticky |
| ) |  |  |

============================================================================
CSL_SRIO_SetLLMResetControl

Description
The function is used to set the LLM Reset Control CSR

Arguments

              hSrio             Handle of the SRIO device
              clearSticky       Allows the SELF_RST and PWDN_PORT resets to
                                clear sticky register bits in addition to the
                                normal configuration registers

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_REG_RST_CTL_CLEAR_STICKY

Example

            CSL_SrioHandle      hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the LLM Port Reset Control CSR
            CSL_SRIO_SetLLMResetControl(hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetLocalConfig0SpaceInfo | ( | CSL_SrioHandle | hSrio,
|  | Uint16 | baseInfo0,
|  | Uint16 | baseInfo1 |
| ) |  |  |

============================================================================
CSL_SRIO_SetLocalConfig0SpaceInfo

Description
The function sets the local configuration space base address0 Information

Arguments

              hSrio             Handle of the SRIO device
              baseInfo0         Local Configuration Base Address0
              baseInfo1         Local Configuration Base Address1

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_LCL_CFG_HBAR_LCSBA0,SRIO_RIO_LCL_CFG_HBAR_LCSBA1

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the Local configuration information
            CSL_SRIO_SetLocalConfig0SpaceInfo (hSrio, 0x100, 0x200);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetLocalConfig1SpaceInfo | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | baseInfo0,
|  | Uint32 | baseInfo1 |
| ) |  |  |

============================================================================
CSL_SRIO_SetLocalConfig1SpaceInfo

Description
The function sets the local configuration space base address1 Information

Arguments

              hSrio             Handle of the SRIO device
              baseInfo0         Local Configuration Base Address0
              baseInfo1         Local Configuration Base Address1

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_LCL_CFG_BAR_LCSBA0,SRIO_RIO_LCL_CFG_BAR_LCSBA1

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the Local configuration1 information
            CSL_SRIO_SetLocalConfig1SpaceInfo (hSrio, 0x100, 0x200);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetLoopbackMode | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_SetLoopbackMode

Description
This function sets the port to operate in loopback mode.

Arguments

              hSrio             Handle of the SRIO device
              portNum           Port Number for which loopback mode must be enabled

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PER_SET_CNTL1_LOOPBACK

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the Port 0 to work in loopback mode.
            CSL_SRIO_SetLoopbackMode (hSrio, 0);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetLSUFlowMask | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | lsu,
|  | Uint16 | flowMask |
| ) |  |  |

============================================================================
CSL_SRIO_SetLSUFlowMask

Description
The function is used to set the LSU Flow Masks

Arguments

              hSrio             Handle of the SRIO device
              lsu               LSU Number for which flow mask is to be configured
              flowMask          Flow Mask to be configured.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_LSU_FLOW_MASKS_LSU_EVEN_FLOW_MASK;SRIO_RIO_LSU_FLOW_MASKS_LSU_ODD_FLOW_MASK

Example

            CSL_SrioHandle     hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);
            ...
            // Set the LSU Flow Mask for LSU 0 to use Flow 1
            CSL_SRIO_SetLSUFlowMask (hSrio, 0, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetLSUReg0 | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | lsu,
|  | Uint32 | rapidIOMSB |
| ) |  |  |

============================================================================
CSL_SRIO_SetLSUReg0

Description
The function configures the REG0 of the specified LSU

Arguments

              hSrio             Handle of the SRIO device
              lsu               LSU Number
              rapidIOMSB        Address to be configured in the REG0

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_LSU_REG0_RIO_ADDRESS_MSB

Example

            CSL_SrioHandle     hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);
            ...
            // Configure REG0 of LSU 0
            CSL_SRIO_SetLSUReg0(hSrio, 0, 0x0);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetLSUReg1 | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | lsu,
|  | Uint32 | rapidIOLSB |
| ) |  |  |

============================================================================
CSL_SRIO_SetLSUReg1

Description
The function configures the REG1 of the specified LSU

Arguments

              hSrio             Handle of the SRIO device
              lsu               LSU Number
              rapidIOLSB        Address to be configured in the REG1

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_LSU_REG1_RIO_ADDRESS_LSB

Example

            CSL_SrioHandle     hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);
            ...
            // Configure REG1 of LSU 0
            CSL_SRIO_SetLSUReg1(hSrio, 0, 0x0);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetLSUReg2 | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | lsu,
|  | Uint32 | dspAddress |
| ) |  |  |

============================================================================
CSL_SRIO_SetLSUReg2

Description
The function configures the REG2 of the specified LSU

Arguments

              hSrio             Handle of the SRIO device
              lsu               LSU Number
              dspAddress        Address to be configured in the REG2

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_LSU_REG2_DSP_ADDRESS

Example

            CSL_SrioHandle     hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);
            ...
            // Configure REG2 of LSU 0
            CSL_SRIO_SetLSUReg2(hSrio, 0, &myBuffer);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetLSUReg3 | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | lsu,
|  | Uint32 | byteCount,
|  | Uint8 | doorbellValid |
| ) |  |  |

============================================================================
CSL_SRIO_SetLSUReg3

Description
The function configures the REG3 of the specified LSU

Arguments

              hSrio             Handle of the SRIO device
              lsu               LSU Number
              byteCount         Byte Count
              doorbellValid     Doorbell valid flag

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_LSU_REG3_BYTE_COUNT,SRIO_RIO_LSU_REG3_DRBLL_VALUE

Example

            CSL_SrioHandle     hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);
            ...
            // Configure REG3 of LSU 0
            CSL_SRIO_SetLSUReg3(hSrio, 0, 100, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetLSUReg4 | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | lsu,
|  | Uint16 | dstId,
|  | Uint8 | srcIdMap,
|  | Uint8 | idSize,
|  | Uint8 | outPortId,
|  | Uint8 | priority,
|  | Uint8 | xambs,
|  | Uint8 | supGoodInt,
|  | Uint8 | intRequest |
| ) |  |  |

============================================================================
CSL_SRIO_SetLSUReg4

Description
The function configures the REG4 of the specified LSU

Arguments

              hSrio             Handle of the SRIO device
              lsu               LSU Number
              byteCount         Byte Count
              doorbellValid     Doorbell valid flag

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_LSU_REG4_DESTID, SRIO_RIO_LSU_REG4_SRCID_MAP, SRIO_RIO_LSU_REG4_ID_SIZE,
SRIO_RIO_LSU_REG4_OUTPORTID, SRIO_RIO_LSU_REG4_PRIORITY, SRIO_RIO_LSU_REG4_XAMBS,
SRIO_RIO_LSU_REG4_SUP_GINT, SRIO_RIO_LSU_REG4_INT_REQ

Example

            CSL_SrioHandle     hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);
            ...
            // Configure REG4 of LSU 0
            CSL_SRIO_SetLSUReg4(hSrio, 0, 0xBEEF, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetLSUReg5 | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | lsu,
|  | Uint8 | ttype,
|  | Uint8 | ftype,
|  | Uint8 | hopCount,
|  | Uint16 | doorbellInfo |
| ) |  |  |

============================================================================
CSL_SRIO_SetLSUReg5

Description
The function configures the REG5 of the specified LSU

Arguments

              hSrio             Handle of the SRIO device
              lsu               LSU Number
              ttype             TTYPE value
              ftype             FTYPE value
              hopCount          Hop Count
              doorBellInfo      Doorbell Information

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_LSU_REG5_TTYPE, SRIO_RIO_LSU_REG5_FTYPE,
SRIO_RIO_LSU_REG5_HOP_COUNT, SRIO_RIO_LSU_REG5_DRBLL_INFO

Example

            CSL_SrioHandle     hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);
            ...
            // Configure REG5 of LSU 0
            CSL_SRIO_SetLSUReg5(hSrio, 0, 4, 5, 1, 0);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetLSUShadowRegs | ( | CSL_SrioHandle | hSrio,
|  | Uint32 | shadowGrp0,
|  | Uint32 | shadowGrp1 |
| ) |  |  |

============================================================================
CSL_SRIO_SetLSUShadowRegs

Description
The function is used to configure the number of LSU Shadow Registers.

Arguments

              hSrio             Handle of the SRIO device
              shadowGrp0        Number of Shadow Registers associated with LSU0-3
              shadowGrp1        Number of Shadow Registers associated with LSU4-7

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_LSU_SETUP_REG0_SHADOW_GRP0, SRIO_RIO_LSU_SETUP_REG0_SHADOW_GRP1

Example

            CSL_SrioHandle     hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);
            ...
            // Set the LSU Shadow Regs as 4 for LSU 0-3 and 4 for LSU 4-7
            CSL_SRIO_SetLSUShadowRegs (hSrio, 0x0, 0x0);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetLSUSwappingMode | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | mode |
| ) |  |  |

============================================================================
CSL_SRIO_SetLSUSwappingMode

Description
This function sets the Little Endian Swapping Mode for the Load Store Unit

Arguments

              hSrio     Handle of the SRIO device
              mode      Little Endian Swapping Mode for the LSU.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PER_SET_CNTL_LSU_LEND_SWAP_MODE

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Ensure that the LSU operates in mode A
            CSL_SRIO_SetLSUSwappingMode (hSrio, 0);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetLSUTransfer | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | lsu,
|  | SRIO_LSU_TRANSFER * | lsuTransfer |
| ) |  |  |

============================================================================
CSL_SRIO_SetLSUTransfer

Description
The function sets the specified LSU for a DIO Transfer.

Arguments

              hSrio             Handle of the SRIO device
              lsu               LSU Number which is to be used for the transfer.
              lsuTransfer       LSU Transfer Information

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_LSU_REG0_RIO_ADDRESS_MSB,
SRIO_RIO_LSU_REG1_RIO_ADDRESS_LSB,
SRIO_RIO_LSU_REG2_DSP_ADDRESS,
SRIO_RIO_LSU_REG3_BYTE_COUNT,SRIO_RIO_LSU_REG3_DRBLL_VALUE,
SRIO_RIO_LSU_REG4_INT_REQ,SRIO_RIO_LSU_REG4_SUP_GINT,SRIO_RIO_LSU_REG4_XAMBS,
SRIO_RIO_LSU_REG4_PRIORITY,SRIO_RIO_LSU_REG4_OUTPORTID,SRIO_RIO_LSU_REG4_ID_SIZE,
SRIO_RIO_LSU_REG4_SRCID_MAP,SRIO_RIO_LSU_REG4_DESTID,
SRIO_RIO_LSU_REG5_TTYPE,SRIO_RIO_LSU_REG5_FTYPE,SRIO_RIO_LSU_REG5_HOP_COUNT, SRIO_RIO_LSU_REG5_DRBLL_INFO

Example

            CSL_SrioHandle     hSrio;
            SRIO_LSU_TRANSFER  lsuTransfer;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);
            ...
            // Populate the Transfer Information.
            lsuTransfer.rapidIOMSB    = 0x0;
            lsuTransfer.rapidIOLSB    = (Uint32)&tx_buffer[0];
            lsuTransfer.dspAddress    = (Uint32)&rx_buffer[0];
            lsuTransfer.bytecount     = 256;
            lsuTransfer.doorbellValid = 0;
            lsuTransfer.intrRequest   = 1;
            lsuTransfer.supInt        = 0;
            lsuTransfer.xambs         = 0;
            lsuTransfer.priority      = 2;
            lsuTransfer.outPortID     = 1;
            lsuTransfer.idSize        = 1;
            lsuTransfer.srcIDMap      = 0;
            lsuTransfer.dstID         = 0xDEAD;
            lsuTransfer.ttype         = 4;
            lsuTransfer.ftype         = 5;
            lsuTransfer.hopCount      = 0;
            lsuTransfer.doorbellInfo  = 0;

            // Send the transfer on LSU 1
            CSL_SRIO_SetLSUTransfer (hSrio, 1, &lsuTransfer);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetMAUSwappingMode | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | mode |
| ) |  |  |

============================================================================
CSL_SRIO_SetMAUSwappingMode

Description
This function sets the Little Endian Swapping Mode for the Memory Access Unit.

Arguments

              hSrio     Handle of the SRIO device
              mode      Little Endian Swapping Mode for the MAU.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PER_SET_CNTL_MAU_LEND_SWAP_MODE

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Ensure that the Memory Access Unit operates in mode A
            CSL_SRIO_SetMAUSwappingMode (hSrio, 0);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetMulticastEventParticipant | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 | multicastEvent |
| ) |  |  |

============================================================================
CSL_SRIO_SetMulticastEventParticipant

Description
The function is used to set the Multicast Event Participant status for the specific port.

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number
              multicastEvent    Multicast Event Participant status to be configured

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_CTL_MULT_CS

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the Multicast Event Participant status for Port 1
            CSL_SRIO_SetMulticastEventParticipant(hSrio, 1, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetNormalMode | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum |
| ) |  |  |

============================================================================
CSL_SRIO_SetNormalMode

Description
This function sets the port to operate in Normal mode.

Arguments

              hSrio             Handle of the SRIO device
              portNum           Port Number for which normal mode must be enabled

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PER_SET_CNTL1_LOOPBACK

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the port 0 to work in normal mode.
            CSL_SRIO_SetNormalMode (hSrio, 0);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetPacketForwarding | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | index,
|  | Uint16 | low16bitDeviceID,
|  | Uint16 | up16bitDeviceID,
|  | Uint8 | low8bitDeviceID,
|  | Uint8 | up8bitDeviceID,
|  | Uint8 | outPort |
| ) |  |  |

============================================================================
CSL_SRIO_SetPacketForwarding

Description
The function sets the packet forwarding for the SRIO peripheral. There exist multiple packet forwarding registers and the parameter index is to used to select which register is to be configured.

Arguments

              hSrio             Handle of the SRIO device
              index             Index of the Packet forwarding register to be configured (0-Based)
              low16bitDeviceID  Lower bound 16bit Device Identifier which can use this
              up16bitDeviceID   Upper bound 16bit Device Identifier which can use this
              low8bitDeviceID   Lower bound 8bit Device Identifier which can use this
              up8bitDeviceID    Upper bound 8bit Device Identifier which can use this
              outPort           Outgoing SRIO port to be used.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PF_16B_CNTL_DEVID_16B_UP, SRIO_RIO_PF_16B_CNTL_DEVID_16B_LO, SRIO_RIO_PF_8B_CNTL_DEVID_8B_LO,SRIO_RIO_PF_8B_CNTL_DEVID_8B_UP, SRIO_RIO_PF_8B_CNTL_OUT_PORT

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Create a packet forwarding entry for device ID 0xBEEF to be forwarded
            // to port 1; we dont care about the 8-bit identifiers hence these are
            // set to reset values.
            CSL_SRIO_SetPacketForwarding (hSrio, 0, 0xBEEF, 0xBEEF, 0xFF, 0xFF, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetPBMPortControl | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 | egReorderMode,
|  | Uint8 | egReorderStick |
| ) |  |  |

============================================================================
CSL_SRIO_SetPBMPortControl

Description
The function is used to set the PBM Port Control information

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number
              egReorderMode         Reorder Mode
              egReorderStick        Number of repeat times the CRQ is reordered

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PBM_SP_CONTROL_EG_REORDER_MODE, SRIO_RIO_PBM_SP_CONTROL_EG_REORDER_STICK

Example

            CSL_SrioHandle      hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the PBM Port Control Information.
            CSL_SRIO_GetPBMPortControl(hSrio, 1, 1, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetPBMPortEventGenerate | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 | egDataOverflow,
|  | Uint8 | egCRQOverflow,
|  | Uint8 | egBadChannel,
|  | Uint8 | egBabblePacket |
| ) |  |  |

============================================================================
CSL_SRIO_SetPBMPortEventGenerate

Description
The function is used to set the PBM Port Event generates

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number
              egDataOverflow        PBMe received a request to enqueue a packet
                                    for which it did not have enough data storage.
              egCRQOverflow         PBMe received a request to enqueue a packet
                                    for which it did not have CRQ Entry.
              egBadChannel          PBMe received a request to enqueue a packet
                                    on a channel enqueue interface which should be
                                    unused for the path’s Mode.
              egBabblePacket        PBMe detected a packet that exceeded 276 bytes
                                    on its enqueue interface

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PBM_SP_EVENT_GEN_EG_DATA_OVERFLOW,
SRIO_RIO_PBM_SP_EVENT_GEN_EG_CRQ_OVERFLOW,
SRIO_RIO_PBM_SP_EVENT_GEN_EG_BAD_CHANNEL,
SRIO_RIO_PBM_SP_EVENT_GEN_EG_BABBLE_PACKET

Affects
SRIO_RIO_PBM_SP_STATUS_EG_DATA_OVERFLOW=1, SRIO_RIO_PBM_SP_STATUS_EG_CRQ_OVERFLOW=1,
SRIO_RIO_PBM_SP_STATUS_EG_BAD_CHANNEL=1, SRIO_RIO_PBM_SP_STATUS_EG_BABBLE_PACKET=1

Example

            CSL_SrioHandle      hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the PBM Port Event Generates for Data overflow only
            CSL_SRIO_SetPBMPortEventGenerate(hSrio, 1, 1, 0, 0, 0);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetPBMPortIngressPriorityWatermark | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 | priority,
|  | Uint16 | crfWatermark,
|  | Uint16 | priWatermark |
| ) |  |  |

============================================================================
CSL_SRIO_SetPBMPortIngressPriorityWatermark

Description
The function is used to set the PBM Port Ingress Priority Watermark configuration

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number
              priority              Priority 0,1,2 or 3
              crfWatermark          CRF Watermark
              priWatermark          Priority Watermark

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PBM_SP_IG_WATERMARK0_PRIO0CRF_WM, SRIO_RIO_PBM_SP_IG_WATERMARK0_PRIO0_WM;
SRIO_RIO_PBM_SP_IG_WATERMARK1_PRIO1CRF_WM, SRIO_RIO_PBM_SP_IG_WATERMARK1_PRIO1_WM;
SRIO_RIO_PBM_SP_IG_WATERMARK2_PRIO2CRF_WM, SRIO_RIO_PBM_SP_IG_WATERMARK2_PRIO2_WM;
SRIO_RIO_PBM_SP_IG_WATERMARK3_PRIO3CRF_WM, SRIO_RIO_PBM_SP_IG_WATERMARK3_PRIO3_WM

Example

            CSL_SrioHandle      hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the PBM Port Ingress 0 Watermarks
            CSL_SRIO_SetPBMPortIngressPriorityWatermark(hSrio, 1, 0, 10, 12);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetPBMPortInterrupts | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 | egDataOverflow,
|  | Uint8 | egCRQOverflow,
|  | Uint8 | egBadChannel,
|  | Uint8 | egBabblePacket |
| ) |  |  |

============================================================================
CSL_SRIO_SetPBMPortInterrupts

Description
The function is used to set the PBM Port Interrupt status

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number
              egDataOverflow        PBMe received a request to enqueue a packet
                                    for which it did not have enough data storage.
              egCRQOverflow         PBMe received a request to enqueue a packet
                                    for which it did not have CRQ Entry.
              egBadChannel          PBMe received a request to enqueue a packet
                                    on a channel enqueue interface which should be
                                    unused for the path’s Mode.
              egBabblePacket        PBMe detected a packet that exceeded 276 bytes
                                    on its enqueue interface

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PBM_SP_INT_ENABLE_EG_DATA_OVERFLOW,
SRIO_RIO_PBM_SP_INT_ENABLE_EG_CRQ_OVERFLOW,
SRIO_RIO_PBM_SP_INT_ENABLE_EG_BAD_CHANNEL,
SRIO_RIO_PBM_SP_INT_ENABLE_EG_BABBLE_PACKET

Example

            CSL_SrioHandle      hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the PBM Port Interrupts for Data Overflow only
            CSL_SRIO_SetPBMPortInterrupts(hSrio, 1, 1, 0, 0, 0);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetPBMPortWriteEnables | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 | egDataOverflow,
|  | Uint8 | egCRQOverflow,
|  | Uint8 | egBadChannel,
|  | Uint8 | egBabblePacket |
| ) |  |  |

============================================================================
CSL_SRIO_SetPBMPortWriteEnables

Description
The function is used to set the PBM Port Write Enables

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number
              egDataOverflow        PBMe received a request to enqueue a packet
                                    for which it did not have enough data storage.
              egCRQOverflow         PBMe received a request to enqueue a packet
                                    for which it did not have CRQ Entry.
              egBadChannel          PBMe received a request to enqueue a packet
                                    on a channel enqueue interface which should be
                                    unused for the path’s Mode.
              egBabblePacket        PBMe detected a packet that exceeded 276 bytes
                                    on its enqueue interface

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PBM_SP_PW_ENABLE_EG_DATA_OVERFLOW,
SRIO_RIO_PBM_SP_PW_ENABLE_EG_CRQ_OVERFLOW,
SRIO_RIO_PBM_SP_PW_ENABLE_EG_BAD_CHANNEL,
SRIO_RIO_PBM_SP_PW_ENABLE_EG_BABBLE_PACKET

Example

            CSL_SrioHandle      hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the PBM Port Write Enables for Data Overflow only
            CSL_SRIO_SetPBMPortWriteEnables(hSrio, 1, 1, 0, 0, 0);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetPEExtendedAddressingControl | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | controlInfo |
| ) |  |  |

============================================================================
CSL_SRIO_SetPEExtendedAddressingControl

Description
The function sets the processing element extended addressing control

Arguments

              hSrio             Handle of the SRIO device
              controlInfo       Extended Addressing Control Information to be configured

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PE_LL_CTL_EXT_ADDR_CTL

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the Extended Addressing Control Information to operate in 34 bit addresses
            CSL_SRIO_SetPEExtendedAddressingControl (hSrio, 0x1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetPLMPortCSTransmit | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | SRIO_PLM_CONTROL_SYMBOL * | ptrCSTransmit |
| ) |  |  |

============================================================================
CSL_SRIO_SetPLMPortCSTransmit

Description
The function is used to set the Control Symbol Transmit1

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number
              ptrCSTransmit         Control Symbol Transmit Configuration

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PLM_SP_LONG_CS_TX1_STYPE_0, SRIO_RIO_PLM_SP_LONG_CS_TX1_PAR_0,
SRIO_RIO_PLM_SP_LONG_CS_TX1_PAR_1, SRIO_RIO_PLM_SP_LONG_CS_TX1_CS_EMB,
SRIO_RIO_PLM_SP_LONG_CS_TX1_STYPE_1, SRIO_RIO_PLM_SP_LONG_CS_TX1_CMD,
SRIO_RIO_PLM_SP_LONG_CS_TX2_STYPE_2, SRIO_RIO_PLM_SP_LONG_CS_TX2_PARM

Example

            CSL_SrioHandle              hSrio;
            SRIO_PLM_CONTROL_SYMBOL     cntlSymbol;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the PLM Port Control Symbol Transmit Configuration
            CSL_SRIO_SetPLMPortCSTransmit(hSrio, 1, &cntlSymbol);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetPLMPortDiscoveryTimer | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 | portDiscoveryTimer |
| ) |  |  |

============================================================================
CSL_SRIO_SetPLMPortDiscoveryTimer

Description
The function is used to set the PLM Port Discovery timer

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number
              portDiscoveryTimer    PLM Port Discovery Timer

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PLM_SP_DISCOVERY_TIMER_DISCOVERY_TIMER

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the PLM Discovery Timer
            CSL_SRIO_SetPLMPortDiscoveryTimer(hSrio, 1, 0x5);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetPLMPortEventGenerate | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 | eventStatus |
| ) |  |  |

============================================================================
CSL_SRIO_SetPLMPortEventGenerate

Description
The function is used to set the current status of the PLM events.

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number
              eventStatus       PLM event status to be configured

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PLM_SP_EVENT_GEN

Example

            CSL_SrioHandle  hSrio;
            Uint8           eventStatus;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the current PLM event generate
            CSL_SRIO_GetPLMPortEventGenerate(hSrio, 1, &eventStatus);

            // Ensure MAX Denial event is set
            eventStatus = eventStatus | 0x1;
            CSL_SRIO_SetPLMPortEventGenerate (hSrio, 1, eventStatus);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetPLMPortImplSpecificControl | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | SRIO_PLM_IMPL_CONTROL * | ptrPLMControl |
| ) |  |  |

============================================================================
CSL_SRIO_SetPLMPortImplSpecificControl

Description
The function is used to set the PLM Implementation Specific control

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number
              ptrPLMControl         Pointer to the PLM Implementation specific control

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PLM_SP_IMP_SPEC_CTL_PAYL_CAP, SRIO_RIO_PLM_SP_IMP_SPEC_CTL_USE_IDLE2,
SRIO_RIO_PLM_SP_IMP_SPEC_CTL_USE_IDLE1, SRIO_RIO_PLM_SP_IMP_SPEC_CTL_DLB_EN,
SRIO_RIO_PLM_SP_IMP_SPEC_CTL_FORCE_REINIT, SRIO_RIO_PLM_SP_IMP_SPEC_CTL_SOFT_RST_PORT,
SRIO_RIO_PLM_SP_IMP_SPEC_CTL_TX_BYPASS, SRIO_RIO_PLM_SP_IMP_SPEC_CTL_LLB_EN,
SRIO_RIO_PLM_SP_IMP_SPEC_CTL_PORT_SELF_RST, SRIO_RIO_PLM_SP_IMP_SPEC_CTL_SELF_RST,
SRIO_RIO_PLM_SP_IMP_SPEC_CTL_SWAP_TX, SRIO_RIO_PLM_SP_IMP_SPEC_CTL_SWAP_RX,
SRIO_RIO_PLM_SP_IMP_SPEC_CTL_DLT_THRESH

Example

            CSL_SrioHandle          hSrio;
            SRIO_PLM_IMPL_CONTROL   implControl;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the PLM Implementation specific control
            CSL_SRIO_GetPortPLMImplSpecificControl (hSrio, 1, &implControl);

            // Bypass the tx clock crossing the FIFO
            implControl.txBypass = 1;
            CSL_SRIO_SetPLMPortImplSpecificControl (hSrio, 1, &implControl);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetPLMPortInterrupts | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 | intStatus |
| ) |  |  |

============================================================================
CSL_SRIO_SetPLMPortInterrupts

Description
The function is used to set the current status of the PLM Port Interrupts

Arguments

              hSrio         Handle of the SRIO device
              portNum       SRIO Port Number
              intStatus     Interrupt status to be configured

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PLM_SP_INT_ENABLE

Example

            CSL_SrioHandle  hSrio;
            Uint8           intStatus;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the current interrupt status
            CSL_SRIO_GetPLMPortInterrupts(hSrio, 1, &intStatus);

            // Enable the Max Denial interrupt.
            intStatus = intStatus | 0x1;
            CSL_SRIO_SetPLMPortInterrupts(hSrio, 1, intStatus);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetPLMPortMECSForwarding | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 | subscription |
| ) |  |  |

============================================================================
CSL_SRIO_SetPLMPortMECSForwarding

Description
The function is used to set the PLM Port MECS Forwarding

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number
              subscription          Specifies which MECS cmd values the port
                                    should forward to its link

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PLM_SP_MECS_FWD_SUBSCRIPTION

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the PLM Port MECS Forwarding
            CSL_SRIO_SetPLMPortMECSForwarding(hSrio, 1, 0x1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetPLMPortPacketDenialControl | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 | cntPacketNotAccepted,
|  | Uint8 | cntRetry,
|  | Uint8 | denialThreshold |
| ) |  |  |

============================================================================
CSL_SRIO_SetPLMPortPacketDenialControl

Description
The function is used to set the PLM Port Packet Denial.

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number
              cntPacketNotAccepted  Controls whether Packet-Not-Accepted control
                                    symbols count toward the packet denial threshold value
              cntRetry              Controls whether Retry control symbols count toward
                                    the packet denial threshold value
              denialThreshold       Sets the threshold for reporting too many consecutive retries

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PLM_SP_DENIAL_CTL_CNT_PNA, SRIO_RIO_PLM_SP_DENIAL_CTL_CNT_RTY,
SRIO_RIO_PLM_SP_DENIAL_CTL_DENIAL_THRESH

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the PLM Port Packet Denial
            CSL_SRIO_SetPLMPortPacketDenialControl(hSrio, 1, 1, 1, 2);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetPLMPortPathControlMode | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 | pathMode |
| ) |  |  |

============================================================================
CSL_SRIO_SetPLMPortPathControlMode

Description
The function is used to get the PLM Port Path control mode

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number
              pathMode          The mode of the path

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PLM_SP_PATH_CTL_PATH_MODE

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the path mode for PLM Port 1 as 0
            CSL_SRIO_SetPLMPortPathControlMode(hSrio, 1, 0x0);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetPLMPortPolarityControl | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | SRIO_PLM_POLARITY_CONTROL * | ptrPolarityConfig |
| ) |  |  |

============================================================================
CSL_SRIO_SetPLMPortPolarityControl

Description
The function is used to set the PLM Port Polarity Control

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number
              ptrPolarityConfig     PLM Port Polarity configuration

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PLM_SP_POL_CTL_TX3_POL, SRIO_RIO_PLM_SP_POL_CTL_TX2_POL,
SRIO_RIO_PLM_SP_POL_CTL_TX1_POL, SRIO_RIO_PLM_SP_POL_CTL_TX0_POL,
SRIO_RIO_PLM_SP_POL_CTL_RX3_POL, SRIO_RIO_PLM_SP_POL_CTL_RX2_POL,
SRIO_RIO_PLM_SP_POL_CTL_RX1_POL, SRIO_RIO_PLM_SP_POL_CTL_RX0_POL

Example

            CSL_SrioHandle              hSrio;
            SRIO_PLM_POLARITY_CONTROL   polarityControlConfig;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the PLM Port Polarity Control Configuration.
            CSL_SRIO_GetPLMPortPolarityControl(hSrio, 1, &polarityControlConfig);

            // Make sure that the TX3 Polarity is reversed
            polarityControlConfig.tx3Pol = 1;
            CSL_SRIO_SetPLMPortPolarityControl(hSrio, 1, &polarityControlConfig);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetPLMPortPowerDownControl | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 | powerDownStatus |
| ) |  |  |

============================================================================
CSL_SRIO_SetPLMPortPowerDownControl

Description
The function is used to set the PLM Port Power Down status

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number
              powerDownStatus       Power Down Status

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PLM_SP_PWDN_CTL_PWDN_PORT

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the PLM Port to be powered down
            CSL_SRIO_SetPLMPortPowerDownControl (hSrio, 1, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetPLMPortSilenceTimer | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 | portSilenceTimer |
| ) |  |  |

============================================================================
CSL_SRIO_SetPLMPortSilenceTimer

Description
The function is used to set up the PLM Port Silence timer value.

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number
              portSilenceTimer      PLM Port Silence Timer value to configure

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Affects
SRIO_RIO_PLM_SP_SILENCE_TIMER_SILENCE_TIMER=0

Example

            CSL_SrioHandle  hSrio;
            Uint8           portSilenceTimer;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the PLM Silence Timer
            CSL_SRIO_GetPLMPortSilenceTimer(hSrio, 1, &portSilenceTimer);
            ...
            // Set the PLM Silence Timer
            CSL_SRIO_SetPLMPortSilenceTimer(hSrio, 1, &portSilenceTimer);

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetPLMPortVMinExponentConfig | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | SRIO_PLM_VMIN_EXPONENT * | ptrVminExponent |
| ) |  |  |

============================================================================
CSL_SRIO_SetPLMPortVMinExponentConfig

Description
The function is used to set the PLM Port VMin Export configuration

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number
              ptrVminExponent       PLM Port VMin Exponent configuration

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PLM_SP_VMIN_EXP_VMIN_EXP, SRIO_RIO_PLM_SP_VMIN_EXP_IMAX,
SRIO_RIO_PLM_SP_VMIN_EXP_MMAX

Example

            CSL_SrioHandle          hSrio;
            SRIO_PLM_VMIN_EXPONENT  vminExponentConfig;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the PLM Port VMin Exponent Configuration.
            CSL_SRIO_GetPLMPortVMinExponentConfig(hSrio, 1, &vminExponentConfig);

            vminExponentConfig.imax = 2;
            CSL_SRIO_SetPLMPortVMinExponentConfig(hSrio, 1,  &vminExponentConfig);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetPLMPortWriteEnables | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 | portWriteStatus |
| ) |  |  |

============================================================================
CSL_SRIO_SetPLMPortWriteEnables

Description
The function is used to set the current status of the PLM Port Write enables. These events will enable a port write notification

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number
              portWriteStatus   Port write status to be configured

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PLM_SP_PW_ENABLE

Example

            CSL_SrioHandle  hSrio;
            Uint8           portWriteStatus;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the current interrupt status
            CSL_SRIO_GetPLMPortWriteEnables(hSrio, 1, &portWriteStatus);

            // Ensure that Max Denial port write notification is set.
            portWriteStatus = portWriteStatus | 0x1;
            CSL_SRIO_SetPLMPortWriteEnables (hSrio, 1, portWriteStatus);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetPortGeneralCSR | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | hostDev,
|  | Uint8 | masterEn,
|  | Uint8 | disc |
| ) |  |  |

============================================================================
CSL_SRIO_SetPortGeneralCSR

Description
The functions sets the CSR information for all ports.

Arguments

              hSrio          Handle of the SRIO device
              hostDev        Host /Agent or Slave Device to be configured
              masterEn       Master Enable to be configured
              disc           Discovered flag to be configured

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_GEN_CTL_HOST,SRIO_RIO_SP_GEN_CTL_MAST_EN,SRIO_RIO_SP_GEN_CTL_DISC

Example

            CSL_SrioHandle hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the port information.
            CSL_SRIO_SetPortGeneralCSR (hSrio, 1, 1, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetPortLinkTimeoutCSR | ( | CSL_SrioHandle | hSrio,
|  | Uint32 | timeout |
| ) |  |  |

============================================================================
CSL_SRIO_SetPortLinkTimeoutCSR

Description
The functions sets the port link timeout.

Arguments

              hSrio          Handle of the SRIO device
              timeout        Timeout value to be configured

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_LT_CTL_TVAL

Example

            CSL_SrioHandle  hSrio;
            Uint32          timeout;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the port link timeout
            CSL_SRIO_SetPortLinkTimeoutCSR (hSrio, 10);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetPortResponseTimeoutCSR | ( | CSL_SrioHandle | hSrio,
|  | Uint32 | timeout |
| ) |  |  |

============================================================================
CSL_SRIO_SetPortResponseTimeoutCSR

Description
The functions sets the port response timeout. This timeout is for sending a packet to receiving the corresponding response packet

Arguments

              hSrio          Handle of the SRIO device
              timeout        Timeout value to be configured

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_RT_CTL_TVAL

Example

            CSL_SrioHandle  hSrio;
            Uint32          timeout;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the port response timeout
            CSL_SRIO_SetPortResponseTimeoutCSR (hSrio, 0xFFFF);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetPortWriteControl | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | pwTimer,
|  | Uint8 | pwcMode |
| ) |  |  |

============================================================================
CSL_SRIO_SetPortWriteControl

Description
The function is used to set the port write control information

Arguments

              hSrio         Handle of the SRIO device
              pwTimer       Port Write Timer
              pwcMode       Port Write Capture Mode

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PW_CTL_PW_TIMER, SRIO_RIO_PW_CTL_PWC_MODE

Example

            CSL_SrioHandle      hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the Port Write Control to disable port write timer and to enable
            // continuous port capture
            CSL_SRIO_SetPortWriteControl(hSrio, 0, 0);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetPortWriteDeviceId | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | msbTargetId,
|  | Uint8 | lsbTargetID,
|  | Uint8 | lrgTrans |
| ) |  |  |

============================================================================
CSL_SRIO_SetPortWriteDeviceId

Description
The function is used to get the target device ID to be used when a device generates a Maintenance Port-Write operation to report errors to a system host.

Arguments

              hSrio             Handle of the SRIO device
              msbTargetId       Most significant byte of Port-Write Target device ID
              lsbTargetID       Least significant byte of Port-Write Target device ID
              lrgTrans          DeviceID size to use for a port-write

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PW_TGT_ID_DEVICEID_MSB,SRIO_RIO_PW_TGT_ID_DEVICEID,
SRIO_RIO_PW_TGT_ID_ID_LARGE

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the Port Write Target Device ID information.
            CSL_SRIO_SetPortWriteDeviceId (hSrio, 0x0, 0x80, 0x0);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetPortWriteEventGenerate | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | pwDisc,
|  | Uint8 | pwVal |
| ) |  |  |

============================================================================
CSL_SRIO_SetPortWriteEventGenerate

Description
The function is used to set the port write reception status

Arguments

              hSrio         Handle of the SRIO device
              pwDisc        Port-write discard event generate status
              pwVal         Port-write data event generate status

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PW_RX_EVENT_GEN_PW_DISC, SRIO_RIO_PW_RX_EVENT_GEN_PW_VAL

Affects
SRIO_RIO_PW_RX_STAT_PW_DISC=1, SRIO_RIO_PW_RX_STAT_PW_VAL=1

Example

            CSL_SrioHandle      hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the Port Write Event Generate Status
            CSL_SRIO_SetPortWriteEventGenerate(hSrio, 1, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetPortWriteReceptionCapture | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | port,
|  | Uint32 | cap |
| ) |  |  |

============================================================================
CSL_SRIO_SetPortWriteReceptionCapture

Description
The function is used to set the port write reception capture

Arguments

              hSrio         Handle of the SRIO device
              port          Port number for which the write reception capture needs
                            to be configured.
              cap           Reception Capture value

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Affects
SRIO_RIO_PW_RX_CAPT=0

Example

            CSL_SrioHandle      hSrio;
            Uint32              cap0;
            Uint32              cap1;
            Uint32              cap2;
            Uint32              cap3;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Port Write Reception Capture
            CSL_SRIO_GetPortWriteReceptionCapture(hSrio, &cap0, &cap1, &cap2, &cap3);
            ...
            // Set the Port Write Reception Capture for port 0
            CSL_SRIO_SetPortWriteReceptionCapture(hSrio, 0, cap0);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetPortWriteRouting | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | port |
| ) |  |  |

============================================================================
CSL_SRIO_SetPortWriteRouting

Description
The function is used to set the port write routing

Arguments

              hSrio         Handle of the SRIO device
              port          Indicates if a port-write should be sent to this port.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PW_ROUTE_PORT

Example

            CSL_SrioHandle      hSrio;
            Uint8               port;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the Port Write Routing to ensure port writes are sent on all ports
            CSL_SRIO_SetPortWriteRouting(hSrio, 0xF);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetPrescalarSelect | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | prescalarSelect |
| ) |  |  |

============================================================================
CSL_SRIO_SetPrescalarSelect

Description
This function sets the prescalar select for SRIO

Arguments

              hSrio             Handle of the SRIO device
              prescalarSelect   Prescalar Select which is to be configured.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PER_SET_CNTL_PRESCALER_SELECT

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the SRIO Prescalar select to operate in the range of 44.7 to 89.5
            CSL_SRIO_SetPrescalarSelect (hSrio, 0);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetProcessingElementFeatures | ( | CSL_SrioHandle | hSrio,
|  | SRIO_PE_FEATURES * | ptrPEFeatures |
| ) |  |  |

============================================================================
CSL_SRIO_SetProcessingElementFeatures

Description
The function sets the processing element features.

Arguments

              hSrio             Handle of the SRIO device
              peFeatures        Processing Element Features to be configured

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PE_FEAT_BRDG,SRIO_RIO_PE_FEAT_MEM,SRIO_RIO_PE_FEAT_PROC,
SRIO_RIO_PE_FEAT_SW,SRIO_RIO_PE_FEAT_MULT_P,SRIO_RIO_PE_FEAT_FLOW_ARB,
SRIO_RIO_PE_FEAT_MC,SRIO_RIO_PE_FEAT_ERTC,SRIO_RIO_PE_FEAT_SRTC,
SRIO_RIO_PE_FEAT_FLOW_CTRL, SRIO_RIO_PE_FEAT_CRF,
SRIO_RIO_PE_FEAT_CTLS,SRIO_RIO_PE_FEAT_EXT_FEA,SRIO_RIO_PE_FEAT_EXT_AS

Example

            CSL_SrioHandle      hSrio;
            SRIO_PE_FEATURES    peFeatures;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the processing element features.
            CSL_SRIO_GetProcessingElementFeatures (hSrio, &peFeatures);

            // Modify the processing element features and make this a BRIDGE
            peFeatures.isBridge = 1;
            CSL_SRIO_SetProcessingElementFeatures(hSrio, &peFeatures);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetQMBaseAddress | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | qmIndex,
|  | Uint32 | qmBaseAddress |
| ) |  |  |

============================================================================
CSL_SRIO_SetQMBaseAddress

Description
The function sets the QM base address

Arguments

              hSrio             Handle of the SRIO device
              qmIndex           Index of the Queue Manager whose base address is to be set
              qmBaseAddress     QM Base Address to be configured

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_QM_BASE_ADDRESS_REG

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);
            ...
            // Set the QM Base Address information for 0
            CSL_SRIO_SetQMBaseAddress(hSrio, 0, 0x10800000);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetResponseCRF | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | value |
| ) |  |  |

============================================================================
CSL_SRIO_SetResponseCRF

Description
This function sets the CRF value in the response

Arguments

              hSrio             Handle of the SRIO device
              value             CRF value to be set in the response.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PER_SET_CNTL1_CRF

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the Response CRF to be always set to 1
            CSL_SRIO_SetResponseCRF (hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetRXUWatermark | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | value |
| ) |  |  |

============================================================================
CSL_SRIO_SetRXUWatermark

Description
This function sets the RXU Watermark value.

Arguments

              hSrio             Handle of the SRIO device
              value             0/1 to disable/enable RXU context assignment based on
                                priority.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PER_SET_CNTL1_RXU_WATERMARK

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the RXU Watermark to to 1
            CSL_SRIO_SetRXUWatermark (hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetSoftwarePortWidth | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 | portWidth |
| ) |  |  |

============================================================================
CSL_SRIO_SetSoftwarePortWidth

Description
The function is used to set the software port configuration to override the hardware sizes.

Arguments

              hSrio             Handle of the SRIO device
              portNum           SRIO Port Number
              portWidth         Port Width to be configured

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SP_CTL_OVER_PWIDTH

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the software port width override to force 2x mode
            CSL_SRIO_SetSoftwarePortWidth(hSrio, 1, 5);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetSourceOperationCAR | ( | CSL_SrioHandle | hSrio,
|  | SRIO_OP_CAR * | ptrSrcOp |
| ) |  |  |

============================================================================
CSL_SRIO_SetSourceOperationCAR

Description
The function sets the Switch Port Capabilities which are all the logical operations that can be issued by the application.

Arguments

              hSrio             Handle of the SRIO device
              ptrSrcOp          Pointer to the Source CAR Structure to be configured

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SRC_OP_G_READ, SRIO_RIO_SRC_OP_G_IREAD, SRIO_RIO_SRC_OP_G_READ_OWN,
SRIO_RIO_SRC_OP_G_DC_INVALIDATE, SRIO_RIO_SRC_OP_G_CASTOUT, SRIO_RIO_SRC_OP_G_DC_FLUSH,
SRIO_RIO_SRC_OP_G_IO_READ, SRIO_RIO_SRC_OP_G_IC_INVALIDATE, SRIO_RIO_SRC_OP_G_TLB_INVALIDATE,
SRIO_RIO_SRC_OP_G_TLB_SYNC, SRIO_RIO_SRC_OP_DS_TM, SRIO_RIO_SRC_OP_DS,
SRIO_RIO_SRC_OP_IMPLEMENT_DEF, SRIO_RIO_SRC_OP_READ, SRIO_RIO_SRC_OP_WRITE,
SRIO_RIO_SRC_OP_STRM_WR, SRIO_RIO_SRC_OP_WR_RES, SRIO_RIO_SRC_OP_D_MSG, SRIO_RIO_SRC_OP_DBELL,
SRIO_RIO_SRC_OP_ACSWAP, SRIO_RIO_SRC_OP_ATSWAP, SRIO_RIO_SRC_OP_A_INC, SRIO_RIO_SRC_OP_A_DEC,
SRIO_RIO_SRC_OP_A_SET, SRIO_RIO_SRC_OP_A_CLEAR, SRIO_RIO_SRC_OP_A_SWAP, SRIO_RIO_SRC_OP_PORT_WR,
SRIO_RIO_SRC_OP_IMPLEMENT_DEF2

Example

            CSL_SrioHandle  hSrio;
            SRIO_OP_CAR     srcOPCAR;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the Source Operation CAR
            CSL_SRIO_GetSourceOperationCAR (hSrio, &srcOPCAR);

            // Allow Doorbell support.
            srcOPCAR.doorbellSupport = 1;

            // Set the Source Operation CAR
            CSL_SRIO_SetSourceOperationCAR (hSrio, &srcOPCAR);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetSupervisorPerms | ( | CSL_SrioHandle | hSrio,
|  | Uint16 | supervisor16ID,
|  | Uint8 | supervisor8ID |
| ) |  |  |

============================================================================
CSL_SRIO_SetSupervisorPerms

Description
The function is used to set the supervisor permissions

Arguments

              hSrio             Handle of the SRIO device
              supervisor16ID    16 bit Supervisor ID
              supervisor8ID     8 bit Supervisor ID

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_SUPERVISOR_ID_16B_SUPRVSR_ID,SRIO_RIO_SUPERVISOR_ID_8B_SUPRVSR_ID

Example

            CSL_SrioHandle     hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);
            ...
            // Set the Supervisor Permissions for Source ID 0xBEEF
            CSL_SRIO_SetSupervisorPerms (hSrio, 0xBEEF, 0x0);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetSysClkSel | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | value |
| ) |  |  |

============================================================================
CSL_SRIO_SetSysClkSel

Description
This function sets the SYS_CLK source

Arguments

              hSrio             Handle of the SRIO device
              value             SYS_CLK source to configure

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PER_SET_CNTL1_SYS_CLK_SEL

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the SYS_CLK source to 1
            CSL_SRIO_SetSysClkSel (hSrio, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetTimeoutCnt | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | timeoutCnt |
| ) |  |  |

============================================================================
CSL_SRIO_SetTimeoutCnt

Description
The function is used to set the number of timecode changes after an error condition before the current LSU transaction is discarded and a new transaction is loaded from the shadow register.

Arguments

              hSrio             Handle of the SRIO device
              timeoutCnt        Time out count to be configured.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_LSU_SETUP_REG1_TIMEOUT_CNT

Example

            CSL_SrioHandle     hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);
            ...
            // Set the Timeout Count to be 1
            CSL_SRIO_SetTimeoutCnt (hSrio, 2);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetTLMPortBaseRoutingInfo | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 | brrNum,
|  | Uint8 | enableStatus,
|  | Uint8 | maintRouting,
|  | Uint8 | privateStatus |
| ) |  |  |

============================================================================
CSL_SRIO_SetTLMPortBaseRoutingInfo

Description
The function is used to set the TLM Base Routing Information

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number
              brrNum                BRR Number for which this configuration is applied.
              enableStatus          Status of the BRR for accepting & routing packets
              maintRouting          Maintainance Packet Routing Status
              privateStatus         Status of the BRR to be used by its port or by all
                                    ports

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_TLM_SP_BRR_0_CTL_ENABLE, SRIO_RIO_TLM_SP_BRR_0_CTL_ROUTE_MR_TO_LLM,
SRIO_RIO_TLM_SP_BRR_0_CTL_PRIVATE;
SRIO_RIO_TLM_SP_BRR_1_CTL_ENABLE, SRIO_RIO_TLM_SP_BRR_1_CTL_ROUTE_MR_TO_LLM,
SRIO_RIO_TLM_SP_BRR_1_CTL_PRIVATE;
SRIO_RIO_TLM_SP_BRR_2_CTL_ENABLE, SRIO_RIO_TLM_SP_BRR_2_CTL_ROUTE_MR_TO_LLM,
SRIO_RIO_TLM_SP_BRR_2_CTL_PRIVATE;
SRIO_RIO_TLM_SP_BRR_3_CTL_ENABLE, SRIO_RIO_TLM_SP_BRR_3_CTL_ROUTE_MR_TO_LLM,
SRIO_RIO_TLM_SP_BRR_3_CTL_PRIVATE

Example

            CSL_SrioHandle      hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the TLM Port Base routing information.
            CSL_SRIO_SetTLMPortBaseRoutingInfo(hSrio, 1, 0, 1, 0, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetTLMPortBaseRoutingPatternMatch | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 | brrNum,
|  | Uint16 | pattern,
|  | Uint16 | match |
| ) |  |  |

============================================================================
CSL_SRIO_SetTLMPortBaseRoutingPatternMatch

Description
The function is used to set the TLM Base Routing Pattern Match information

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number
              brrNum                BRR Number for which this configuration is applied.
              pattern               16 bit ID used for comparison.
              match                 Indicates which of the 16bits should be used

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_TLM_SP_BRR_0_PATTERN_MATCH_PATTERN, SRIO_RIO_TLM_SP_BRR_0_PATTERN_MATCH_MATCH;
SRIO_RIO_TLM_SP_BRR_1_PATTERN_MATCH_PATTERN, SRIO_RIO_TLM_SP_BRR_1_PATTERN_MATCH_MATCH;
SRIO_RIO_TLM_SP_BRR_2_PATTERN_MATCH_PATTERN, SRIO_RIO_TLM_SP_BRR_2_PATTERN_MATCH_MATCH;
SRIO_RIO_TLM_SP_BRR_3_PATTERN_MATCH_PATTERN, SRIO_RIO_TLM_SP_BRR_3_PATTERN_MATCH_MATCH

Example

            CSL_SrioHandle      hSrio;
            Uint16              pattern;
            Uint16              match;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the TLM Port Base routing pattern match information
            CSL_SRIO_SetTLMPortBaseRoutingPatternMatch(hSrio, 1, &pattern, &match);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetTLMPortControl | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | SRIO_TLM_CONTROL * | ptrTLMControl |
| ) |  |  |

============================================================================
CSL_SRIO_SetTLMPortControl

Description
The function is used to set the TLM port control

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number
              ptrTLMControl         TLM Port Control

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_TLM_SP_CONTROL_PORTGROUP_SELECT, SRIO_RIO_TLM_SP_CONTROL_VOQ_SELECT,
SRIO_RIO_TLM_SP_CONTROL_TGT_ID_DIS, SRIO_RIO_TLM_SP_CONTROL_MTC_TGT_ID_DIS

Example

            CSL_SrioHandle          hSrio;
            SRIO_TLM_CONTROL        tlmCntlSymbol;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Get the TLM Port Control Configuration
            CSL_SRIO_GetTLMPortControl(hSrio, 1, &tlmCntlSymbol);

            // Set Promiscuous mode.
            tlmCntlSymbol.tgtIDDis    = 1;
            tlmCntlSymbol.mtcTgtIDDis = 1;
            CSL_SRIO_SetTLMPortControl (hSrio, 1, &tlmCntlSymbol);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetTLMPortEventGenerate | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 | igBadVC,
|  | Uint8 | igBrrFilter |
| ) |  |  |

============================================================================
CSL_SRIO_SetTLMPortEventGenerate

Description
The function is used to set the TLM port event generates

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number
              igBadVC               Detected an inbound packet with the VC bit set
              igBrrFilter           Discarded an inbound transaction based on the BRR

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_TLM_SP_EVENT_GEN_IG_BAD_VC,
SRIO_RIO_TLM_SP_EVENT_GEN_IG_BRR_FILTER

Affects
SRIO_RIO_TLM_SP_STATUS_IG_BAD_VC=1, SRIO_RIO_TLM_SP_STATUS_IG_BRR_FILTER=1

Example

            CSL_SrioHandle      hSrio;
            Uint8               igBadVC;
            Uint8               igBrrFilter;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the TLM Port Event Generate Status
            CSL_SRIO_SetTLMPortEventGenerate(hSrio, 1, 1, 0);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetTLMPortInterrupts | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 | igBadVC,
|  | Uint8 | igBrrFilter |
| ) |  |  |

============================================================================
CSL_SRIO_SetTLMPortInterrupts

Description
The function is used to set the TLM Port Interrupts

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number
              igBadVC               Detected an inbound packet with the VC bit set
              igBrrFilter           Discarded an inbound transaction based on the BRR

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_TLM_SP_INT_ENABLE_IG_BAD_VC,
SRIO_RIO_TLM_SP_INT_ENABLE_IG_BRR_FILTER

Example

            CSL_SrioHandle      hSrio;
            Uint8               igBadVC;
            Uint8               igBrrFilter;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Enable BadVC Interrupt & Disable BRR Filter Interrupts
            CSL_SRIO_SetTLMPortInterrupts(hSrio, 1, 1, 0);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetTLMPortWriteEnable | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | portNum,
|  | Uint8 | igBadVC,
|  | Uint8 | igBrrFilter |
| ) |  |  |

============================================================================
CSL_SRIO_SetTLMPortWriteEnable

Description
The function is used to set the TLM port write enable status

Arguments

              hSrio                 Handle of the SRIO device
              portNum               SRIO Port Number
              igBadVC               Detected an inbound packet with the VC bit set
              igBrrFilter           Discarded an inbound transaction based on the BRR

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_TLM_SP_PW_ENABLE_IG_BAD_VC,
SRIO_RIO_TLM_SP_PW_ENABLE_IG_BRR_FILTER

Example

            CSL_SrioHandle      hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the TLM Port Write Enable status for BAD VC and NOT for BRR Filter
            CSL_SRIO_SetTLMPortWriteEnable(hSrio, 1, 1, 0);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetTransactionPriority | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | priority |
| ) |  |  |

============================================================================
CSL_SRIO_SetTransactionPriority

Description
This function sets the DSP System transaction priority. 0 implies Highest Priority while 7 implies lowest.

Arguments

              hSrio     Handle of the SRIO device
              priority  Priority to be configured.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PER_SET_CNTL_CBA_TRANS_PRI

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the transaction priority to be HIGHEST
            CSL_SRIO_SetTransactionPriority (hSrio, 0);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetTxCPPIFlowMask | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | txCPPI,
|  | Uint16 | flowMask |
| ) |  |  |

============================================================================
CSL_SRIO_SetTxCPPIFlowMask

Description
The function is used to set the Transmit CPPI Flow Masks

Arguments

              hSrio             Handle of the SRIO device
              txCPPI            Transmit CPPI Flow Index
              flowMask          Flow Mask to be configured.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_TX_CPPI_FLOW_MASKS_TX_QUEUE_EVEN_FLOW_MASK;
SRIO_RIO_TX_CPPI_FLOW_MASKS_TX_QUEUE_ODD_FLOW_MASK

Example

            CSL_SrioHandle     hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);
            ...
            // Set the Transmit CPPI Flow Mask for 0 to use Flow 1
            CSL_SRIO_SetTxCPPIFlowMask (hSrio, 0, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetTxCreditThreshold | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | priority,
|  | Uint8 | credit |
| ) |  |  |

============================================================================
CSL_SRIO_SetTxCreditThreshold

Description
This function sets the transmit credit threshold for priority packets

Arguments

              hSrio     Handle of the SRIO device
              priority  Priority of the Transmit Buffers
              credit    Credit Threshold for the priority which is to be configured.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PER_SET_CNTL_TX_PRI2_WM;SRIO_RIO_PER_SET_CNTL_TX_PRI1_WM; SRIO_RIO_PER_SET_CNTL_TX_PRI0_WM

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Set the Transmit Credit Threshold as 8 for priority 2
            CSL_SRIO_SetTxCreditThreshold (hSrio, 2, 8);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetTxGarbageCollectionInfo | ( | CSL_SrioHandle | hSrio,
|  | Uint16 | qidLength,
|  | Uint16 | qidTimeout,
|  | Uint16 | qidRetry,
|  | Uint16 | qidTransErr,
|  | Uint16 | qidProg,
|  | Uint16 | qidSsize |
| ) |  |  |

============================================================================
CSL_SRIO_SetTxGarbageCollectionInfo

Description
The function sets the Transmit Garbage collection information.

Arguments

              hSrio         Handle of the SRIO device
              qidLength     Length mismatch between size in the UDI to be configured.
              qidTimeout    Timeout on receiving the segments to be configured.
              qidRetry      Excessive retries to be configured
              qidTransErr   Transaction Error to be configured
              qidProg       Programming Error queue to be configured
              qidSsize      Queue ID Ssize to be configured

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_GARBAGE_COLL_QID0_GARBAGE_QID_LEN,
SRIO_RIO_GARBAGE_COLL_QID0_GARBAGE_QID_TOUT,
SRIO_RIO_GARBAGE_COLL_QID1_GARBAGE_QID_RETRY,
SRIO_RIO_GARBAGE_COLL_QID1_GARBAGE_QID_TRANS_ERR,
SRIO_RIO_GARBAGE_COLL_QID2_GARBAGE_QID_PROG,
SRIO_RIO_GARBAGE_COLL_QID2_GARBAGE_QID_SSIZE

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);
            ...
            // Set the Transmit Garbage Collection Information.
            CSL_SRIO_SetTxGarbageCollectionInfo (hSrio, 2, 3, 4, 5, 6, 10);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetTxQueueSchedInfo | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | txQueue,
|  | Uint8 | portNum,
|  | Uint8 | crf |
| ) |  |  |

============================================================================
CSL_SRIO_SetTxQueueSchedInfo

Description
The function is used to set the port and scheduler information for a specific transmit queue.

Arguments

              hSrio       Handle of the SRIO device
              txQueue     Transmit Queue Index for which information is configured.
              portNum     Port Number to which the queue is mapped.
              crf         Critical Resource Flow Value

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_TX_QUEUE_SCH_INFO_QUEUE0_INFO,SRIO_RIO_TX_QUEUE_SCH_INFO_QUEUE1_INFO,SRIO_RIO_TX_QUEUE_SCH_INFO_QUEUE2_INFO; SRIO_RIO_TX_QUEUE_SCH_INFO_QUEUE0_INFO,SRIO_RIO_TX_QUEUE_SCH_INFO_QUEUE1_INFO,SRIO_RIO_TX_QUEUE_SCH_INFO_QUEUE2_INFO; SRIO_RIO_TX_QUEUE_SCH_INFO_QUEUE0_INFO,SRIO_RIO_TX_QUEUE_SCH_INFO_QUEUE1_INFO,SRIO_RIO_TX_QUEUE_SCH_INFO_QUEUE2_INFO;

Example

            CSL_SrioHandle     hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);
            ...
            // Set the Tx Queue 0 Scheduler Information
            //  - The Queue needs to be mapped to SRIO Port 1
            //  - The Queue sets the CRF Bit.
            CSL_SRIO_SetTxQueueSchedInfo (hSrio, 0, 1, 1);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetTXURXUSwappingMode | ( | CSL_SrioHandle | hSrio,
|  | Uint8 | mode |
| ) |  |  |

============================================================================
CSL_SRIO_SetTXURXUSwappingMode

Description
This function sets the Little Endian Swapping Mode for the TXU and RXU

Arguments

              hSrio     Handle of the SRIO device
              mode      Little Endian Swapping Mode for the TXU and RXU.

Return Value
None

Pre Condition
CSL_SRIO_Open() must be called

Post Condition
None

Writes
SRIO_RIO_PER_SET_CNTL_TXU_RXU_LEND_SWAP_MODE

Example

            CSL_SrioHandle  hSrio;

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Ensure that the TXU and RXU operates in mode A
            CSL_SRIO_SetTXURXUSwappingMode (hSrio, 0);
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetType11PSInfo | ( | Uint32 | psInfo[2],
|  | Uint16 | dstId,
|  | Uint16 | srcId,
|  | Uint8 | mbox,
|  | Uint8 | letter,
|  | Uint8 | tt,
|  | Uint8 | ssize,
|  | Uint8 | retryCount |
| ) |  |  |

============================================================================
CSL_SRIO_SetType11PSInfo

Description
The function creates the type11 protocol specific information.

Arguments

            psInfo      - 8 bytes of PS information populated by this API
            dstID       - Destination Identifier.
            srcId       - Source Identifier.
            mbox        - Mail Box
            ltr         - Letter
            tt          - Identifies if 8 bit or 16 bit identifiers are to be used.
            ssize       - Standard Message Payload Size
            retryCount  - Total Number of retries allowed for this message.

Return Value
None

Pre Condition
None

Post Condition
None

Example

            CSL_SrioHandle  hSrio;
            Uint32          psInfo[2];

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Create the Protocol Specific Information.
            CSL_SRIO_SetType11PSInfo(psInfo, 0xDEAD, 0xBEED, 0x1, 0x2, 0x1, 0xe, 0x0);

            // Set the PS Information into the Buffer Descriptor.
            ...

=============================================================================

CSL_IDEF_INLINE void CSL_SRIO_SetType9PSInfo | ( | Uint32 | psInfo[2],
|  | Uint16 | dstId,
|  | Uint16 | srcId,
|  | Uint8 | cos,
|  | Uint8 | cosMask,
|  | Uint8 | tt,
|  | Uint16 | streamId |
| ) |  |  |

============================================================================
CSL_SRIO_SetType9PSInfo

Description
The function creates the type9 protocol specific information.

Arguments

            psInfo      - 8 bytes of PS information populated by this API
            dstID       - Destination Identifier.
            srcId       - Source Identifier.
            cos         - Class of Service
            cosMask     - Class of Service Mask
            tt          - Identifies if 8 bit or 16 bit identifiers are to be used.
            streamId    - Stream ID for the transaction

Return Value
None

Pre Condition
None

Post Condition
None

Example

            CSL_SrioHandle  hSrio;
            Uint32          psInfo[2];

            // Open the CSL SRIO Module 0
            hSrio = CSL_SRIO_Open (0);

            // Create the Protocol Specific Information.
            CSL_SRIO_SetType9PSInfo(psInfo, 0xDEAD, 0xBEED, 0x4, 0x1, 0x1, 0xABCD);

            // Set the PS Information into the Buffer Descriptor.
            ...

=============================================================================

Copyright 2012, Texas Instruments Incorporated