|
AM64x MCU+ SDK
10.00.00
|
|
Go to the documentation of this file.
69 #define UDMA_DMA_CH_INVALID ((uint32_t) 0xFFFF0000U)
74 #define UDMA_DMA_CH_ANY ((uint32_t) 0xFFFF0001U)
79 #define UDMA_DMA_CH_NA ((uint32_t) 0xFFFF0002U)
81 #define UDMA_MAPPED_GROUP_INVALID ((uint32_t) 0xFFFF0004U)
84 #define UDMA_DMSC_EXTENDED_CH_TYPE_BCDMA_BLK_CPY ((uint8_t) 1U)
87 #define UDMA_DMSC_EXTENDED_CH_TYPE_BCDMA_SPLIT_TR_TX ((uint8_t) 0U)
99 #define UDMA_CH_FLAG_TX ((uint32_t) 0x0001U)
101 #define UDMA_CH_FLAG_RX ((uint32_t) 0x0002U)
103 #define UDMA_CH_FLAG_BLK_COPY ((uint32_t) 0x0004U)
105 #define UDMA_CH_FLAG_PDMA ((uint32_t) 0x0008U)
107 #define UDMA_CH_FLAG_PSIL ((uint32_t) 0x0010U)
109 #define UDMA_CH_FLAG_UTC ((uint32_t) 0x0020U)
111 #define UDMA_CH_FLAG_HC ((uint32_t) 0x0040U)
113 #define UDMA_CH_FLAG_UHC ((uint32_t) 0x0080U)
115 #define UDMA_CH_FLAG_MAPPED ((uint32_t) 0x0100U)
127 #define UDMA_CH_TYPE_TR_BLK_COPY (UDMA_CH_FLAG_BLK_COPY | \
131 #define UDMA_CH_TYPE_TR_BLK_COPY_HC (UDMA_CH_FLAG_BLK_COPY | \
136 #define UDMA_CH_TYPE_TR_BLK_COPY_UHC (UDMA_CH_FLAG_BLK_COPY | \
141 #define UDMA_CH_TYPE_TX (UDMA_CH_FLAG_TX | UDMA_CH_FLAG_PSIL)
143 #define UDMA_CH_TYPE_TX_HC (UDMA_CH_FLAG_TX | UDMA_CH_FLAG_PSIL | UDMA_CH_FLAG_HC)
145 #define UDMA_CH_TYPE_TX_UHC (UDMA_CH_FLAG_TX | UDMA_CH_FLAG_PSIL | UDMA_CH_FLAG_UHC)
148 #define UDMA_CH_TYPE_RX (UDMA_CH_FLAG_RX | UDMA_CH_FLAG_PSIL)
150 #define UDMA_CH_TYPE_RX_HC (UDMA_CH_FLAG_RX | UDMA_CH_FLAG_PSIL | UDMA_CH_FLAG_HC)
152 #define UDMA_CH_TYPE_RX_UHC (UDMA_CH_FLAG_RX | UDMA_CH_FLAG_PSIL | UDMA_CH_FLAG_UHC)
155 #define UDMA_CH_TYPE_PDMA_TX (UDMA_CH_FLAG_TX | UDMA_CH_FLAG_PDMA)
157 #define UDMA_CH_TYPE_PDMA_TX_HC (UDMA_CH_FLAG_TX | UDMA_CH_FLAG_PDMA | UDMA_CH_FLAG_HC)
159 #define UDMA_CH_TYPE_PDMA_TX_UHC (UDMA_CH_FLAG_TX | UDMA_CH_FLAG_PDMA | UDMA_CH_FLAG_UHC)
162 #define UDMA_CH_TYPE_PDMA_RX (UDMA_CH_FLAG_RX | UDMA_CH_FLAG_PDMA)
164 #define UDMA_CH_TYPE_PDMA_RX_HC (UDMA_CH_FLAG_RX | UDMA_CH_FLAG_PDMA | UDMA_CH_FLAG_HC)
166 #define UDMA_CH_TYPE_PDMA_RX_UHC (UDMA_CH_FLAG_RX | UDMA_CH_FLAG_PDMA | UDMA_CH_FLAG_UHC)
173 #define UDMA_CH_TYPE_TX_MAPPED (UDMA_CH_FLAG_TX | UDMA_CH_FLAG_PSIL | UDMA_CH_FLAG_MAPPED)
179 #define UDMA_CH_TYPE_RX_MAPPED (UDMA_CH_FLAG_RX | UDMA_CH_FLAG_PSIL | UDMA_CH_FLAG_MAPPED)
186 #define UDMA_CH_TYPE_UTC (UDMA_CH_FLAG_UTC)
195 #define UDMA_PDMA_ES_8BITS ((uint32_t) 0x00U)
196 #define UDMA_PDMA_ES_16BITS ((uint32_t) 0x01U)
197 #define UDMA_PDMA_ES_24BITS ((uint32_t) 0x02U)
198 #define UDMA_PDMA_ES_32BITS ((uint32_t) 0x03U)
199 #define UDMA_PDMA_ES_64BITS ((uint32_t) 0x04U)
201 #define UDMA_PDMA_ES_DONTCARE ((uint32_t) 0x00U)
910 #if (UDMA_SOC_CFG_RA_NORMAL_PRESENT == 1)
928 CSL_UdmapTdResponse *tdResponse);
943 typedef struct Udma_ChObject_t
945 #if defined (SOC_AM65X)
Udma_RingHandle Udma_chGetCqRingHandle(Udma_ChHandle chHandle)
Returns the default completion ring handle of the channel.
uint8_t pauseOnError
Definition: udma_ch.h:346
uint32_t startedByteCnt
Definition: udma_ch.h:480
void * Udma_FlowHandle
UDMA flow handle.
Definition: udma_types.h:73
uint16_t flowIdFwRangeStart
Definition: udma_ch.h:365
UDMA TX channel parameters.
Definition: udma_ch.h:272
UDMA channel open parameters.
Definition: udma_ch.h:212
uint8_t ignoreLongPkts
Definition: udma_ch.h:386
UDMA ring parameters.
Definition: udma_ring.h:124
int32_t Udma_chOpen(Udma_DrvHandle drvHandle, Udma_ChHandle chHandle, uint32_t chType, const Udma_ChPrms *chPrms)
UDMA open channel.
uint32_t configDefaultFlow
Definition: udma_ch.h:390
uint16_t fetchWordSize
Definition: udma_ch.h:284
int32_t Udma_chEnable(Udma_ChHandle chHandle)
UDMA channel enable API.
void * Udma_ChHandle
UDMA channel handle.
Definition: udma_types.h:67
uint8_t flowErrorHandling
Definition: udma_ch.h:376
UDMA RX channel parameters.
Definition: udma_ch.h:345
Udma_RingHandle Udma_chGetTdCqRingHandle(Udma_ChHandle chHandle)
Returns the teardown completion ring handle of the channel.
uint8_t txCredit
Definition: udma_ch.h:296
uint8_t busOrderId
Definition: udma_ch.h:290
int32_t Udma_chDisable(Udma_ChHandle chHandle, uint32_t timeout)
UDMA channel teardown and disable API.
uint32_t elemCnt
Definition: udma_ch.h:433
uint8_t ignoreShortPkts
Definition: udma_ch.h:382
UDMA PDMA channel Static TR parameters.
Definition: udma_ch.h:423
void UdmaChPdmaPrms_init(Udma_ChPdmaPrms *pdmaPrms)
Udma_ChPdmaPrms structure init function.
uint32_t mappedChGrp
Definition: udma_ch.h:239
int32_t Udma_chGetStats(Udma_ChHandle chHandle, Udma_ChStats *chStats)
Get real-time channel statistics.
uint32_t Udma_chGetNum(Udma_ChHandle chHandle)
Returns the channel number offset with in a channel type - TX, RX and External (UTC) channel types.
int32_t Udma_chPause(Udma_ChHandle chHandle)
UDMA channel pause API.
Udma_RingPrms fqRingPrms
Definition: udma_ch.h:252
Udma_FlowHandle Udma_chGetDefaultFlowHandle(Udma_ChHandle chHandle)
Returns the default flow handle of the RX channel.
uint8_t busPriority
Definition: udma_ch.h:355
uint8_t flowPsInfoPresent
Definition: udma_ch.h:373
uint8_t flowSopOffset
Definition: udma_ch.h:379
int32_t Udma_chConfigTx(Udma_ChHandle chHandle, const Udma_ChTxPrms *txPrms)
UDMA configure TX channel.
int32_t Udma_chSetSwTrigger(Udma_ChHandle chHandle, uint32_t trigger)
Sets the software trigger register based on the trigger mode provided.
Udma_RingPrms tdCqRingPrms
Definition: udma_ch.h:259
Udma_RingPrms cqRingPrms
Definition: udma_ch.h:254
void * Udma_RingHandle
UDMA ring handle.
Definition: udma_types.h:71
uint8_t flowEInfoPresent
Definition: udma_ch.h:370
int32_t Udma_getPeerData(Udma_ChHandle chHandle, uint32_t *peerData)
Get real-time peer data which contains number of bytes written.
uint32_t elemSize
Definition: udma_ch.h:424
Opaque UDMA channel object.
Definition: udma_ch.h:944
int32_t Udma_chResume(Udma_ChHandle chHandle)
UDMA channel resume API.
uint8_t burstSize
Definition: udma_ch.h:313
uint8_t filterPsWords
Definition: udma_ch.h:277
uint8_t busPriority
Definition: udma_ch.h:286
void * Udma_chGetSwTriggerRegister(Udma_ChHandle chHandle)
Returns the software trigger register address for the channel.
uint32_t chNum
Definition: udma_ch.h:213
uint32_t fifoCnt
Definition: udma_ch.h:452
uint8_t addrType
Definition: udma_ch.h:279
uint16_t fetchWordSize
Definition: udma_ch.h:353
uint32_t Udma_chGetTriggerEvent(Udma_ChHandle chHandle, uint32_t trigger)
Returns the global trigger event for the channel.
uint16_t Udma_chGetCqRingNum(Udma_ChHandle chHandle)
Returns the default completion ring number to be programmed in descriptor.
void UdmaChPrms_init(Udma_ChPrms *chPrms, uint32_t chType)
Udma_ChPrms structure init function.
int32_t Udma_chSetChaining(Udma_ChHandle triggerChHandle, Udma_ChHandle chainedChHandle, uint32_t trigger)
Chains the trigger channel with the chained channel.
uint32_t peerChNum
Definition: udma_ch.h:223
void UdmaChTxPrms_init(Udma_ChTxPrms *txPrms, uint32_t chType)
Udma_ChTxPrms structure init function.
void UdmaChRxPrms_init(Udma_ChRxPrms *rxPrms, uint32_t chType)
Udma_ChRxPrms structure init function.
uint32_t completedByteCnt
Definition: udma_ch.h:478
uint8_t dmaPriority
Definition: udma_ch.h:361
UDMA channel statistics.
Definition: udma_ch.h:475
uint16_t fifoDepth
Definition: udma_ch.h:298
int32_t Udma_clearPeerData(Udma_ChHandle chHandle, uint32_t peerData)
Clear real-time peer data which contains number of bytes written.
void * Udma_DrvHandle
UDMA driver handle.
Definition: udma_types.h:65
uint8_t supressTdCqPkt
Definition: udma_ch.h:332
uint8_t pauseOnError
Definition: udma_ch.h:273
uint16_t flowIdFwRangeCnt
Definition: udma_ch.h:367
int32_t Udma_chClose(Udma_ChHandle chHandle)
UDMA close channel.
uint32_t packetCnt
Definition: udma_ch.h:476
Udma_RingHandle Udma_chGetFqRingHandle(Udma_ChHandle chHandle)
Returns the default free ring handle of the channel.
int32_t Udma_chConfigPdma(Udma_ChHandle chHandle, const Udma_ChPdmaPrms *pdmaPrms)
UDMA configure PDMA channel (peerChNum as part of Udma_ChPrms) paired with the UDMAP channel.
uint8_t chanType
Definition: udma_ch.h:282
void * appData
Definition: udma_ch.h:247
uint8_t burstSize
Definition: udma_ch.h:398
uint8_t dmaPriority
Definition: udma_ch.h:292
uint8_t busOrderId
Definition: udma_ch.h:359
uint8_t filterEinfo
Definition: udma_ch.h:275
uint8_t addrType
Definition: udma_ch.h:348
uint8_t chanType
Definition: udma_ch.h:351
uint8_t busQos
Definition: udma_ch.h:288
int32_t Udma_chBreakChaining(Udma_ChHandle triggerChHandle, Udma_ChHandle chainedChHandle)
Breaks the chaining by resetting the trigger channel's OES.
int32_t Udma_chConfigRx(Udma_ChHandle chHandle, const Udma_ChRxPrms *rxPrms)
UDMA configure RX channel.
uint8_t busQos
Definition: udma_ch.h:357
uint16_t Udma_chGetFqRingNum(Udma_ChHandle chHandle)
Returns the default free ring number to be programmed in descriptor.