 |
AM243x MCU+ SDK
11.02.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)
636 #if (UDMA_SOC_CFG_RA_NORMAL_PRESENT == 1)
654 CSL_UdmapTdResponse *tdResponse);
Udma_RingHandle Udma_chGetCqRingHandle(Udma_ChHandle chHandle)
Returns the default completion ring handle of the channel.
UDMA TX channel parameters.
Definition: udma_types.h:223
UDMA channel open parameters.
Definition: udma_types.h:163
int32_t Udma_chOpen(Udma_DrvHandle drvHandle, Udma_ChHandle chHandle, uint32_t chType, const Udma_ChPrms *chPrms)
UDMA open channel.
int32_t Udma_chEnable(Udma_ChHandle chHandle)
UDMA channel enable API.
struct Udma_DrvObjectInt * Udma_DrvHandle
UDMA driver handle.
Definition: udma_types.h:84
UDMA RX channel parameters.
Definition: udma_types.h:296
Udma_RingHandle Udma_chGetTdCqRingHandle(Udma_ChHandle chHandle)
Returns the teardown completion ring handle of the channel.
int32_t Udma_chDisable(Udma_ChHandle chHandle, uint32_t timeout)
UDMA channel teardown and disable API.
UDMA PDMA channel Static TR parameters.
Definition: udma_types.h:374
void UdmaChPdmaPrms_init(Udma_ChPdmaPrms *pdmaPrms)
Udma_ChPdmaPrms structure init function.
struct Udma_FlowObjectInt * Udma_FlowHandle
UDMA flow handle.
Definition: udma_types.h:92
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_FlowHandle Udma_chGetDefaultFlowHandle(Udma_ChHandle chHandle)
Returns the default flow handle of the RX channel.
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.
int32_t Udma_getPeerData(Udma_ChHandle chHandle, uint32_t *peerData)
Get real-time peer data which contains number of bytes written.
int32_t Udma_chResume(Udma_ChHandle chHandle)
UDMA channel resume API.
uint32_t Udma_chGetTriggerEvent(Udma_ChHandle chHandle, uint32_t trigger)
Returns the global trigger event for the channel.
uint32_t * Udma_chGetSwTriggerRegister(Udma_ChHandle chHandle)
Returns the software trigger register address 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.
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.
UDMA channel statistics.
Definition: udma_types.h:426
int32_t Udma_clearPeerData(Udma_ChHandle chHandle, uint32_t peerData)
Clear real-time peer data which contains number of bytes written.
struct Udma_ChObjectInt * Udma_ChHandle
UDMA channel handle.
Definition: udma_types.h:86
int32_t Udma_chClose(Udma_ChHandle chHandle)
UDMA close channel.
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.
struct Udma_RingObjectInt * Udma_RingHandle
UDMA ring handle.
Definition: udma_types.h:90
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.
uint16_t Udma_chGetFqRingNum(Udma_ChHandle chHandle)
Returns the default free ring number to be programmed in descriptor.