Sub Modules | |
CPDMA Configuration | |
CPDMA Packet Definitions | |
Functions | |
int32_t | EnetCpdma_rxThreshIsr (EnetDma_Handle hEnetDma) |
ENET CPDMA Rx Threshold interrupt service routine. More... | |
int32_t | EnetCpdma_rxIsr (EnetDma_Handle hEnetDma) |
ENET CPDMA Rx interrupt service routine. More... | |
int32_t | EnetCpdma_txIsr (EnetDma_Handle hEnetDma) |
ENET CPDMA Tx interrupt service routine. More... | |
int32_t | EnetCpdma_miscIsr (EnetDma_Handle hEnetDma, uint32_t *pStatusMask) |
ENET CPDMA Miscellaneous interrupt service routine. More... | |
int32_t | EnetCpdma_ackMiscIsr (EnetDma_Handle hEnetDma) |
void | EnetCpdma_initParams (Enet_Type enetType, EnetDma_Cfg *pDmaConfig) |
Initialize CPDMA config params. More... | |
Macros | |
#define | ENET_CPDMA_CPSW_MAX_SG_LIST (4U) |
Enet CPDMA instance configuration | |
#define | ENET_CPDMA_CPSW_MAX_TX_CH (8U) |
Maximum number of CPSW TX DMA channels. More... | |
#define | ENET_CPDMA_CPSW_MAX_RX_CH (8U) |
Maximum number of CPSW RX DMA channels. More... | |
Enet DMA driver opaque handles | |
Enet DMA configuration structure. Opaque handle typedefs for Enet DMA driver objects. | |
typedef struct EnetCpdma_Cfg_s | EnetDma_Cfg |
Opaque handle that holds config Info for Enet DMA channel. More... | |
typedef void(* | EnetDma_PktNotifyCb) (void *cbArg) |
Function pointer type for packet notify call back. More... | |
#define ENET_CPDMA_CPSW_MAX_TX_CH (8U) |
Maximum number of CPSW TX DMA channels.
#define ENET_CPDMA_CPSW_MAX_RX_CH (8U) |
Maximum number of CPSW RX DMA channels.
#define ENET_CPDMA_CPSW_MAX_SG_LIST (4U) |
Maximum number of scatter gather segements supported in a packet
typedef struct EnetCpdma_Cfg_s EnetDma_Cfg |
Opaque handle that holds config Info for Enet DMA channel.
typedef void(* EnetDma_PktNotifyCb) (void *cbArg) |
Function pointer type for packet notify call back.
This is called by driver when packet is received on the RX channel or transmission completed from TX channel.
int32_t EnetCpdma_rxThreshIsr | ( | EnetDma_Handle | hEnetDma | ) |
ENET CPDMA Rx Threshold interrupt service routine.
Processes Rx Threshold interrupt. This function retrieves the received packets from the linked CPPI descriptors and passes them to the receive queue when the number of received descriptors exceed the threshold
Requirement:
hEnetDma | [IN] Enet DMA Handle |
int32_t EnetCpdma_rxIsr | ( | EnetDma_Handle | hEnetDma | ) |
ENET CPDMA Rx interrupt service routine.
Processes Rx interrupt. This function retrieves the received packets from the linked CPPI descriptors and passes them to the receive queue when one or more packets has been received
Requirement:
hEnetDma | [IN] Enet DMA Handle |
int32_t EnetCpdma_txIsr | ( | EnetDma_Handle | hEnetDma | ) |
ENET CPDMA Tx interrupt service routine.
Processes Tx interrupt. This function retrieves the completed Tx packets from the linked CPPI descriptors and passes them to the free queue when one or more packets have been transmitted.
Requirement:
hEnetDma | [IN] Enet DMA Handle |
int32_t EnetCpdma_miscIsr | ( | EnetDma_Handle | hEnetDma, |
uint32_t * | pStatusMask | ||
) |
ENET CPDMA Miscellaneous interrupt service routine.
Processes Miscellaneous interrupt. This function extracts the intrrupt status bit masks from MMR and pass it to the caller to process all masked interrupts.
Requirement:
hEnetDma | [IN] Enet DMA Handle |
pStatusMask | [IN] pointer to the interrupt status bit mask |
int32_t EnetCpdma_ackMiscIsr | ( | EnetDma_Handle | hEnetDma | ) |
EnetCpdma_ackMiscIsr
CPSW CPDMA Miscellaneous ISR ACK.
[in] | hEnetDma |
ENET_SOK |
void EnetCpdma_initParams | ( | Enet_Type | enetType, |
EnetDma_Cfg * | pDmaConfig | ||
) |
Initialize CPDMA config params.
Initialize CPDMA config params to default values
Requirement:
enetType | [IN] Enet Type |
pDmaConfig | [IN] pointer to the config structure |