PDK API Guide for AM65xx
enet_hostport_udma.h File Reference

Introduction

This file contains the CPSW specific DMA type definations & function prototypes for associated DMA peripheral.

Go to the source code of this file.

Macros

#define ENET_UDMA_RSVDFLOW_RX_PKTS_NUM   (2U)
 
#define ENET_UDMA_CPSW_RX_CH_NUM   (1U)
 Total number of Rx channels for CPSW (always 1 for Jacinto 7 family of devices) More...
 
#define ENET_UDMA_ICSSG_RX_CH_NUM   (6U)
 
#define ENET_UDMA_RX_CH_NUM
 
#define ENET_UDMA_RXFLOWIDX_INVALID   (0xABCDABCDU)
 Enet UDMA invalid RX flow id. More...
 

Functions

void EnetHostPortDma_initCfg (Enet_Type enetType, const void *dmaCfg)
 
EnetDma_Handle EnetHostPortDma_open (EnetPer_Handle hPer, const void *dmaCfg, const EnetRm_ResCfg *resCfg)
 
void EnetHostPortDma_close (EnetDma_Handle hDma)
 
void EnetHostPortDma_getDmaResInfo (EnetDma_Handle hDma, Enet_dmaResInfo *dmaResInfo, uint32_t chIdx)
 
EnetDma_RxChHandle EnetHostPortDma_openRsvdFlow (const void *cfg, uint32_t startIdx, uint32_t flowIdx)
 
int32_t EnetHostPortDma_closeRsvdFlow (EnetDma_RxChHandle hRxRsvdFlow)
 

Macro Definition Documentation

◆ ENET_UDMA_RSVDFLOW_RX_PKTS_NUM

#define ENET_UDMA_RSVDFLOW_RX_PKTS_NUM   (2U)

◆ ENET_UDMA_CPSW_RX_CH_NUM

#define ENET_UDMA_CPSW_RX_CH_NUM   (1U)

Total number of Rx channels for CPSW (always 1 for Jacinto 7 family of devices)

◆ ENET_UDMA_ICSSG_RX_CH_NUM

#define ENET_UDMA_ICSSG_RX_CH_NUM   (6U)

◆ ENET_UDMA_RX_CH_NUM

#define ENET_UDMA_RX_CH_NUM
Value:
ENET_UDMA_ICSSG_RX_CH_NUM)
#define ENET_UDMA_CPSW_RX_CH_NUM
Total number of Rx channels for CPSW (always 1 for Jacinto 7 family of devices)
Definition: enet_hostport_udma.h:62

◆ ENET_UDMA_RXFLOWIDX_INVALID

#define ENET_UDMA_RXFLOWIDX_INVALID   (0xABCDABCDU)

Enet UDMA invalid RX flow id.

Function Documentation

◆ EnetHostPortDma_initCfg()

void EnetHostPortDma_initCfg ( Enet_Type  enetType,
const void *  dmaCfg 
)

◆ EnetHostPortDma_open()

EnetDma_Handle EnetHostPortDma_open ( EnetPer_Handle  hPer,
const void *  dmaCfg,
const EnetRm_ResCfg resCfg 
)

◆ EnetHostPortDma_close()

void EnetHostPortDma_close ( EnetDma_Handle  hDma)

◆ EnetHostPortDma_getDmaResInfo()

void EnetHostPortDma_getDmaResInfo ( EnetDma_Handle  hDma,
Enet_dmaResInfo dmaResInfo,
uint32_t  chIdx 
)

◆ EnetHostPortDma_openRsvdFlow()

EnetDma_RxChHandle EnetHostPortDma_openRsvdFlow ( const void *  cfg,
uint32_t  startIdx,
uint32_t  flowIdx 
)

◆ EnetHostPortDma_closeRsvdFlow()

int32_t EnetHostPortDma_closeRsvdFlow ( EnetDma_RxChHandle  hRxRsvdFlow)