|
AM64x MCU+ SDK
08.02.00
|
|
Go to the documentation of this file.
59 #if defined(SOC_AM64X) || defined(SOC_AM243X)
64 #elif defined (SOC_AM273X) || defined(SOC_AWR294X) || defined(SOC_AM263X)
65 #include <include/dma/cpdma/enet_cpdma.h>
67 #error "SOC not supported"
78 #if defined(SOC_AM273X) || defined(SOC_AWR294X) || defined(SOC_AM263X)
80 #define Enet_isCacheCoherent() (false)
82 #define ENETDMA_CACHELINE_ALIGNMENT (128U)
83 #elif defined(SOC_AM64X) || defined(SOC_AM243X)
85 #define Enet_isCacheCoherent() (Udma_isCacheCoherent())
87 #define ENETDMA_CACHELINE_ALIGNMENT (UDMA_CACHELINE_ALIGNMENT)
89 #error "SOC not supported"
98 #define ENET_DMA_STATS_HISTORY_CNT ((uint32_t)32U)
144 typedef struct EnetDma_CbStats_s
187 typedef struct EnetDma_DmaDescStats_s
200 typedef struct EnetDma_RxChStats_s
219 typedef struct EnetDma_TxChStats_s
326 const void *pRxChCfg);
406 const void *pTxChCfg);
uint64_t txSubmitPktEnq
Definition: enet_dma.h:228
uint64_t rxSubmitPktEnq
Definition: enet_dma.h:209
int32_t EnetDma_disableRxEvent(EnetDma_RxChHandle hRxCh)
Disable RX channel packet reception event.
int32_t EnetDma_close(EnetDma_Handle hEnetDma)
Close Enet DMA (data path).
uint64_t freeDmaDescDeq
Definition: enet_dma.h:192
int32_t EnetDma_retrieveTxPkt(EnetDma_TxChHandle hTxCh, EnetDma_Pkt **pPkt)
Retrieve single TX free (empty) packet from TX channel.
int32_t EnetDma_submitTxPktQ(EnetDma_TxChHandle hTxCh, EnetDma_PktQ *pSubmitQ)
Submit a queue of ready (full) packets to TX channel.
uint64_t rxRetrievePktDeq
Definition: enet_dma.h:211
EnetDma_CbStats submitPktStats
Definition: enet_dma.h:203
#define ENET_DMA_STATS_HISTORY_CNT
Enet DMA statistics configuration.
Definition: enet_dma.h:98
int32_t EnetDma_enableTxEvent(EnetDma_TxChHandle hTxCh)
Enable TX channel packet transmit completion event.
void EnetDma_initRxChParams(void *pRxChCfg)
Initialize RX channel open parameters.
RX channel statistics.
Definition: enet_dma.h:201
This file contains the basic types using across the Enet driver.
TX channel statistics.
Definition: enet_dma.h:220
int32_t EnetDma_getTxChStats(EnetDma_TxChHandle hTxCh, EnetDma_TxChStats *pStats)
Get TX channel statistics.
EnetDma_CbStats retrievePktStats
Definition: enet_dma.h:205
struct EnetUdma_TxChObj_s * EnetDma_TxChHandle
Opaque handle that holds software state for Enet TX DMA channel.
Definition: enet_udma_types.h:100
int32_t EnetDma_getRxChStats(EnetDma_RxChHandle hRxCh, EnetDma_RxChStats *pStats)
Get RX channel statistics.
This file contains the type definitions and helper macros for the Enet software queue.
uint64_t zeroNotifyCnt
Definition: enet_dma.h:151
uint64_t pktsPerNotifyMax
Definition: enet_dma.h:160
uint64_t txRetrievePktDeq
Definition: enet_dma.h:230
uint64_t txSubmitPktOverFlowCnt
Definition: enet_dma.h:232
int32_t EnetDma_resetRxChStats(EnetDma_RxChHandle hRxCh)
Reset RX channel statistics.
void EnetDma_initPktInfo(EnetDma_Pkt *pktInfo)
Initialize packet information structure.
EnetDma_TxChHandle EnetDma_openTxCh(EnetDma_Handle hDma, const void *pTxChCfg)
Enet DMA open TX channel.
EnetDma_DmaDescStats dmaDescStats
Definition: enet_dma.h:207
EnetDma_DmaDescStats dmaDescStats
Definition: enet_dma.h:226
Enet DMA utility API to check packet and descriptor ownership states during development and debug.
int32_t EnetDma_resetTxChStats(EnetDma_TxChHandle hTxCh)
Reset TX channel statistics.
uint64_t totalCycleCnt
Definition: enet_dma.h:155
void EnetDma_initTxChParams(void *pTxChCfg)
Initialize TX channel open parameters.
struct EnetUdma_PktInfo_s EnetDma_Pkt
Opaque handle that represents a DMA packet.
Definition: enet_udma_types.h:105
EnetDma_Handle EnetDma_initDmaCfg(Enet_Type enetType, uint32_t instId, const EnetDma_initCfg *pDmaCfg)
Initialize data path.
int32_t EnetDma_retrieveRxPktQ(EnetDma_RxChHandle hRxCh, EnetDma_PktQ *pRetrieveQ)
Retrieve queue of RX ready (full) packets from RX channel.
This file contains the type definitions and helper macros for the Enet UDMA data path (DMA) interface...
uint64_t underFlowCnt
Definition: enet_dma.h:194
This file contains the type definitions and helper macros for the Enet UDMA CPPI protocol specific in...
This file contains the base DMA definitions.
int32_t EnetDma_retrieveRxPkt(EnetDma_RxChHandle hRxCh, EnetDma_Pkt **pPkt)
Retrieve single RX ready (full) packet (single) from RX channel.
int32_t EnetDma_enableRxEvent(EnetDma_RxChHandle hRxCh)
Enable RX channel packet reception event.
int32_t EnetDma_retrieveTxPktQ(EnetDma_TxChHandle hTxCh, EnetDma_PktQ *pRetrieveQ)
Retrieve queue of TX free (empty) packets from TX channel.
EnetDma_CbStats retrievePktStats
Definition: enet_dma.h:224
uint64_t dataNotifyCnt
Definition: enet_dma.h:147
int32_t EnetDma_submitTxPkt(EnetDma_TxChHandle hTxCh, EnetDma_Pkt *pPkt)
Submit a single ready (full) packet to TX channel.
Enet_Type
Ethernet peripheral type.
Definition: enet_types.h:196
EnetDma_Handle EnetDma_open(Enet_Type enetType, uint32_t instId, const void *dmaCfg)
Set default data path parameters.
int32_t EnetDma_submitRxPkt(EnetDma_RxChHandle hRxCh, EnetDma_Pkt *pPkt)
Submit single RX free (empty) packet for reception to RX channel.
void(* EnetDma_FreeEthPktFxn)(EnetDma_Pkt *pPktInfo)
Function pointer type for Ethernet packet free function.
Definition: enet_dma.h:115
int32_t EnetDma_submitRxPktQ(EnetDma_RxChHandle hRxCh, EnetDma_PktQ *pSubmitQ)
Submit queue of RX free (empty) packets for reception to RX channel.
uint64_t cycleCntPerPktMax
Definition: enet_dma.h:172
DMA descriptor stats for the RX & TX channels.
Definition: enet_dma.h:188
UDMA Driver API/interface file.
EnetDma_CbStats submitPktStats
Definition: enet_dma.h:222
EnetDma_RxChHandle EnetDma_openRxCh(EnetDma_Handle hDma, const void *pRxChCfg)
Enet DMA open RX channel.
uint64_t totalPktCnt
Definition: enet_dma.h:153
Config structure for Enet UDMA Data Path initialization.
Definition: enet_udma.h:750
int32_t EnetDma_closeTxCh(EnetDma_TxChHandle hTxCh, EnetDma_PktQ *fq, EnetDma_PktQ *cq)
Enet DMA close TX channel.
Stats for packets submitted/retrieved in the DMA event callbacks functions.
Definition: enet_dma.h:145
EnetQ EnetDma_PktQ
Packet queue.
Definition: enet_dma.h:126
struct EnetUdma_RxFlowObj_s * EnetDma_RxChHandle
Opaque handle that holds software state for Enet RX DMA flow.
Definition: enet_udma_types.h:95
int32_t EnetDma_disableTxEvent(EnetDma_TxChHandle hTxCh)
Disable TX channel packet transmit completion event.
struct EnetUdma_DrvObj_s * EnetDma_Handle
Opaque handle for Enet UDMA driver object.
Definition: enet_udma_types.h:86
int32_t EnetDma_closeRxCh(EnetDma_RxChHandle hRxCh, EnetDma_PktQ *fq, EnetDma_PktQ *cq)
Enet DMA close RX channel.
Generic queue.
Definition: enet_queue.h:83
uint64_t rxSubmitPktUnderFlowCnt
Definition: enet_dma.h:213
uint64_t readyDmaDescEnq
Definition: enet_dma.h:190
int32_t EnetDma_deinitDmaCfg(EnetDma_Handle hEnetUdma)
De-initialize data path.
uint64_t cycleCntPerNotifyMax
Definition: enet_dma.h:166