PDK API Guide for J721E
Cpsw_Obj Struct Reference

Detailed Description

CPSW driver object.

Data Fields

EnetPer_Obj enetPer
 
CpswHostPort_Obj hostPortObj
 
CpswMacPort_ObjmacPortObj
 
uint32_t macPortNum
 
CpswAle_Obj aleObj
 
CpswCpts_Obj cptsObj
 
Mdio_Obj mdioObj
 
CpswStats_Obj statsObj
 
EnetRm_Obj rmObj
 
EnetDma_Handle hDma
 
EnetDma_RxChHandle hRxRsvdFlow
 
Enet_dmaResInfo dmaResInfo
 
uint32_t rsvdFlowId
 
EnetMod_Handle hHostPort
 
EnetMod_Handle hMacPort [CPSW_MAC_PORT_NUM]
 
EnetPhy_Handle hPhy [CPSW_MAC_PORT_NUM]
 
EnetMod_Handle hAle
 
EnetMod_Handle hCpts
 
EnetMod_Handle hMdio
 
EnetMod_Handle hStats
 
EnetMod_Handle hRm
 
uint32_t selfCoreId
 
Cpsw_PortLinkState portLinkState [CPSW_MAC_PORT_NUM]
 
void * hStatsIntr
 
void * hMdioIntr
 
void * hCptsIntr
 
Cpsw_MdioLinkIntCtx mdioLinkIntCtx
 
Cpsw_PortLinkStatusChangeCb portLinkStatusChangeCb
 
void * portLinkStatusChangeCbArg
 
uint32_t maxPerPrioMtu
 

Field Documentation

◆ enetPer

EnetPer_Obj Cpsw_Obj::enetPer

Enet peripheral object. Must be first member

◆ hostPortObj

CpswHostPort_Obj Cpsw_Obj::hostPortObj

Host port module

◆ macPortObj

CpswMacPort_Obj* Cpsw_Obj::macPortObj

MAC port objects

◆ macPortNum

uint32_t Cpsw_Obj::macPortNum

Number of MAC port ojects in macPortObj

◆ aleObj

CpswAle_Obj Cpsw_Obj::aleObj

ALE object

◆ cptsObj

CpswCpts_Obj Cpsw_Obj::cptsObj

CPTS object

◆ mdioObj

Mdio_Obj Cpsw_Obj::mdioObj

MDIO object

◆ statsObj

CpswStats_Obj Cpsw_Obj::statsObj

Network statistics object

◆ rmObj

EnetRm_Obj Cpsw_Obj::rmObj

RM object

◆ hDma

EnetDma_Handle Cpsw_Obj::hDma

DMA handle

◆ hRxRsvdFlow

EnetDma_RxChHandle Cpsw_Obj::hRxRsvdFlow

CPSW DMA Rx Reserved flow handle

◆ dmaResInfo

Enet_dmaResInfo Cpsw_Obj::dmaResInfo

CPSW DMA resource information

◆ rsvdFlowId

uint32_t Cpsw_Obj::rsvdFlowId

CPSW DMA Rx Reserved flow Id

◆ hHostPort

EnetMod_Handle Cpsw_Obj::hHostPort

Host port handle

◆ hMacPort

EnetMod_Handle Cpsw_Obj::hMacPort[CPSW_MAC_PORT_NUM]

MAC port handles

◆ hPhy

PHY handles

◆ hAle

EnetMod_Handle Cpsw_Obj::hAle

ALE handle

◆ hCpts

EnetMod_Handle Cpsw_Obj::hCpts

CPTS handle

◆ hMdio

EnetMod_Handle Cpsw_Obj::hMdio

MDIO handle

◆ hStats

EnetMod_Handle Cpsw_Obj::hStats

Network statistics handle

◆ hRm

EnetMod_Handle Cpsw_Obj::hRm

Resource Manager handle

◆ selfCoreId

uint32_t Cpsw_Obj::selfCoreId

Core on which Cpsw_Open() is executed

◆ portLinkState

Cpsw_PortLinkState Cpsw_Obj::portLinkState[CPSW_MAC_PORT_NUM]

PHY link up/down state

◆ hStatsIntr

void* Cpsw_Obj::hStatsIntr

Statistics interrupt handle

◆ hMdioIntr

void* Cpsw_Obj::hMdioIntr

MDIO interrupt handle

◆ hCptsIntr

void* Cpsw_Obj::hCptsIntr

CPTS interrupt handle

◆ mdioLinkIntCtx

Cpsw_MdioLinkIntCtx Cpsw_Obj::mdioLinkIntCtx

MDIO link state change interrupt context

◆ portLinkStatusChangeCb

Cpsw_PortLinkStatusChangeCb Cpsw_Obj::portLinkStatusChangeCb

Port link status change callback function pointer

◆ portLinkStatusChangeCbArg

void* Cpsw_Obj::portLinkStatusChangeCbArg

Application data to be passed to the port link status change callback

◆ maxPerPrioMtu

uint32_t Cpsw_Obj::maxPerPrioMtu

Maximum of MTUs for TX Priority 0 to 7