Data Fields
CpswDma_OpenRxFlowPrms_s Struct Reference

Param struct for the get default flowId open parameters. More...

#include <cpsw_dma.h>

Data Fields

Udma_DrvHandle hUdmaDrv
 
uint32_t startIdx
 
uint32_t flowIdx
 
CpswDma_UdmaChPrms udmaChPrms
 
CpswDma_PktNotifyCb notifyCb
 
CpswDma_UdmaFlowPrms flowPrms
 
uint32_t numRxPkts
 
bool disableCacheOpsFlag
 
uint32_t rxFlowMtu
 
CpswDma_AllocRingMemFxn ringMemAllocFxn
 
CpswDma_FreeRingMemFxn ringMemFreeFxn
 
CpswDma_AllocDmaDesccFxn dmaDescAllocFxn
 
CpswDma_FreeDmaDescFxn dmaDescFreeFxn
 
void * hCbArg
 
bool useProxy
 

Detailed Description

Param struct for the get default flowId open parameters.

The Param struct for the Rx Flow open function, containing CPSW instance Id for RX flow. The returned channel handle is an opaque variable used to access the RX Flow in other function commands.

Field Documentation

bool CpswDma_OpenRxFlowPrms_s::disableCacheOpsFlag

Flag to disable cache operations on the ring memory

CpswDma_AllocDmaDesccFxn CpswDma_OpenRxFlowPrms_s::dmaDescAllocFxn

DMA HPD (host packet descriptor) memory allocation callback

CpswDma_FreeDmaDescFxn CpswDma_OpenRxFlowPrms_s::dmaDescFreeFxn

Transmit HPD (host packet descriptor) memory free callback

uint32_t CpswDma_OpenRxFlowPrms_s::flowIdx

Flow index to be opened

CpswDma_UdmaFlowPrms CpswDma_OpenRxFlowPrms_s::flowPrms

UDMA Flow params

void* CpswDma_OpenRxFlowPrms_s::hCbArg

Argument to be used for the callback routines (it should mean something to layer into which the callback calls)

Udma_DrvHandle CpswDma_OpenRxFlowPrms_s::hUdmaDrv

UDMA driver handle

CpswDma_PktNotifyCb CpswDma_OpenRxFlowPrms_s::notifyCb

CPSW DMA event callback function - this function will be called when the registered packets are received on RX Flow

uint32_t CpswDma_OpenRxFlowPrms_s::numRxPkts

Number of receive packets, used for allocating number of DMA descriptors Note - The HW ring element count field is 19-bit

CpswDma_AllocRingMemFxn CpswDma_OpenRxFlowPrms_s::ringMemAllocFxn

Callback functions. Callback function typedefs so that the CpswDma layer can call into the app layer and let it translate between the hardware buffer descriptors and packets and the stack/translation layer's buffers and packets

Ring memory allocation callback, this cannot be NULL

CpswDma_FreeRingMemFxn CpswDma_OpenRxFlowPrms_s::ringMemFreeFxn

Ring memory free function callback, used in close flow

uint32_t CpswDma_OpenRxFlowPrms_s::rxFlowMtu

Maximum receive packet length for this flow. Make sure packets of at least this length are submitted in CpswDma_submitRxPackets()

uint32_t CpswDma_OpenRxFlowPrms_s::startIdx

Flow start index

CpswDma_UdmaChPrms CpswDma_OpenRxFlowPrms_s::udmaChPrms

UDMA specific channel params

bool CpswDma_OpenRxFlowPrms_s::useProxy

Flag to indicate if a dedicated proxy should be allocated for the "FQ" for this flow. This should be enabled only for those flows that require very high throughput as there are limited proxy available in the system


The documentation for this struct was generated from the following file:

Copyright 2020, Texas Instruments Incorporated