Data Fields
CpswDma_PktInfo_s Struct Reference

CPPI Buffer info. More...

#include <cpsw_dma.h>

Data Fields

node_t node
 
uint8_t * bufPtr
 
uint32_t orgBufLen
 
uint32_t userBufLen
 
void * appPriv
 
uint32_t pktState
 
uint32_t chkSumInfo
 

Detailed Description

CPPI Buffer info.

Application buffer info structure.

Field Documentation

void* CpswDma_PktInfo_s::appPriv

Pointer to application layer specific data blob

uint8_t* CpswDma_PktInfo_s::bufPtr

Pointer to data buffer

uint32_t CpswDma_PktInfo_s::chkSumInfo

Protocol information word. Currently used for checksum offload related information.

For Rx it contains HW computed checksum. App should call appropriate CPSW CPPI helper macros to extract required fields.

For Tx it contains information passed to HW for checksum computation. App should call appropriate cpsw cppi helper macros to insert required fields

node_t CpswDma_PktInfo_s::node

Pointer to next Buffer Note: Keep node_t as first member always as driver uses generic queue functions and deferences to this member

uint32_t CpswDma_PktInfo_s::orgBufLen

Original length of the data buffer passed

uint32_t CpswDma_PktInfo_s::pktState

Packet State Info. Refer to CpswUtils_PktStateModuleType, CpswUtils_PktStateMemMgr, CpswUtils_PktStateDma and CpswUtils_PktStateApp.

This is only for runtime check and debug, not to be used by application

uint32_t CpswDma_PktInfo_s::userBufLen

Actual filled buffer length while receiving/transmitting data with DMA


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

Copyright 2020, Texas Instruments Incorporated