70 #define CPSW_FEATURE_INTERVLAN (ENET_BIT(1U)) 79 typedef struct Cpsw_MdioLinkIntCtx_s
100 typedef struct Cpsw_PortLinkState_s
121 typedef struct Cpsw_Obj_s
bool isLinkUp
Definition: cpsw_priv.h:109
This file contains the type definitions and helper macros for the CPSW peripheral interface.
Enet DMA resource information.
Definition: enet_base_priv.h:68
Enet_Type
Ethernet peripheral type.
Definition: enet_types.h:195
void * hCptsIntr
Definition: cpsw_priv.h:199
uint32_t macPortNum
Definition: cpsw_priv.h:133
uint32_t pollEnableMask
Definition: cpsw_priv.h:88
CPSW ALE object.
Definition: cpsw_ale_priv.h:84
void(* Cpsw_PortLinkStatusChangeCb)(Enet_MacPort macPort, bool isLinkUp, void *appArg)
CPSW port link status change callback function.
Definition: cpsw.h:463
This file contains the type definitions and helper macros for the CPSW CPTS module.
Cpsw_MdioLinkIntCtx mdioLinkIntCtx
Definition: cpsw_priv.h:202
CpswMacPort_Obj * macPortObj
Definition: cpsw_priv.h:130
CpswStats_Obj statsObj
Definition: cpsw_priv.h:145
CPSW CPTS object.
Definition: cpsw_cpts_priv.h:174
void Cpsw_close(EnetPer_Handle hPer)
Close the CPSW peripheral.
struct EnetUdma_RxFlowObj_s * EnetDma_RxChHandle
Opaque handle that holds software state for Enet RX DMA flow.
Definition: enet_udma_types.h:95
Enet Resource Manager driver object.
Definition: enet_rm_priv.h:321
void Cpsw_initCfg(EnetPer_Handle hPer, Enet_Type enetType, void *cfg, uint32_t cfgSize)
Initialize CPSW peripheral's configuration parameters.
uint32_t phyAddr
Definition: cpsw_priv.h:103
This file contains private type definitions and helper macros for the CPSW ALE module which are meant...
This file contains the type definitions and helper macros for the Enet Data Path (DMA) interface.
bool isOpen
Definition: cpsw_priv.h:106
EnetMod_Handle hRm
Definition: cpsw_priv.h:184
Cpsw_MdioLinkStateChangeCb linkStateChangeCb
Definition: cpsw_priv.h:91
EnetMod_Handle hHostPort
Definition: cpsw_priv.h:163
This file contains the type definitions and helper macros for the Enet Peripheral interface.
struct EnetUdma_DrvObj_s * EnetDma_Handle
Opaque handle for Enet UDMA driver object.
Definition: enet_udma_types.h:86
void * linkStateChangeCbArg
Definition: cpsw_priv.h:94
CPSW host port object.
Definition: cpsw_hostport_priv.h:88
uint32_t maxPerPrioMtu
Definition: cpsw_priv.h:211
This file contains private type definitions and helper macros for the CPSW statistics module which ar...
EnetDma_RxChHandle hRxRsvdFlow
Definition: cpsw_priv.h:154
uint32_t aliveMask
Definition: cpsw_priv.h:82
#define CPSW_MAC_PORT_NUM
Definition: cpsw.h:97
void * hMdioIntr
Definition: cpsw_priv.h:196
void * portLinkStatusChangeCbArg
Definition: cpsw_priv.h:208
Port link state (link up/down, tick enabled)
Definition: cpsw_priv.h:100
int32_t Cpsw_open(EnetPer_Handle hPer, Enet_Type enetType, uint32_t instId, const void *cfg, uint32_t cfgSize)
Open and initialize the CPSW Peripheral.
void(* Cpsw_MdioLinkStateChangeCb)(Cpsw_MdioLinkStateChangeInfo *info, void *appArg)
CPSW PHY link state change callback function.
Definition: cpsw.h:453
int32_t Cpsw_ioctl(EnetPer_Handle hPer, uint32_t cmd, Enet_IoctlPrms *prms)
Issue an operation on the CPSW peripheral.
void Cpsw_periodicTick(EnetPer_Handle hPer)
Run periodic tick on the CPSW peripheral.
EnetPer_Obj enetPer
Definition: cpsw_priv.h:124
This file contains the private type definitions and helper macros for Enet Resource Manager.
EnetMod_Handle hAle
Definition: cpsw_priv.h:172
uint32_t linkedMask
Definition: cpsw_priv.h:85
Enet_dmaResInfo dmaResInfo
Definition: cpsw_priv.h:157
EnetMod_Handle hMdio
Definition: cpsw_priv.h:178
Cpsw_PortLinkStatusChangeCb portLinkStatusChangeCb
Definition: cpsw_priv.h:205
CPSW MAC port object.
Definition: cpsw_macport_priv.h:257
EnetRm_Obj rmObj
Definition: cpsw_priv.h:148
Ethernet Peripheral object.
Definition: enet_per.h:461
void Cpsw_poll(EnetPer_Handle hPer, Enet_Event evt, const void *arg, uint32_t argSize)
Poll for Ethernet events.
bool isPollEnabled
Definition: cpsw_priv.h:112
Enet IOCTL param.
Definition: enet_ioctl.h:229
EnetMod_Handle hCpts
Definition: cpsw_priv.h:175
MDIO status change (MDIO_LINKINT) context.
Definition: cpsw_priv.h:79
This file contains private type definitions and helper macros for the CPSW MAC port module which are ...
CPSW driver object.
Definition: cpsw_priv.h:121
uint32_t rsvdFlowId
Definition: cpsw_priv.h:160
CpswAle_Obj aleObj
Definition: cpsw_priv.h:136
Cpsw_Obj * Cpsw_Handle
CPSW peripheral handle.
Definition: cpsw_priv.h:217
Enet_Event
Ethernet events.
Definition: enet_types.h:258
uint32_t selfCoreId
Definition: cpsw_priv.h:187
CpswHostPort_Obj hostPortObj
Definition: cpsw_priv.h:127
EnetDma_Handle hDma
Definition: cpsw_priv.h:151
struct EnetMod_Obj_s * EnetMod_Handle
Ethernet Module handle.
Definition: enet_mod.h:71
int32_t Cpsw_rejoin(EnetPer_Handle hPer, Enet_Type enetType, uint32_t instId)
Rejoin a running CPSW peripheral.
struct EnetPhy_Obj_s * EnetPhy_Handle
PHY driver object handle.
Definition: enetphy.h:641
CpswCpts_Obj cptsObj
Definition: cpsw_priv.h:139
Mdio_Obj mdioObj
Definition: cpsw_priv.h:142
CPSW statistics object.
Definition: cpsw_stats_priv.h:90
bool isTickEnabled
Definition: cpsw_priv.h:115
EnetMod_Handle hStats
Definition: cpsw_priv.h:181
This file contains private type definitions and helper macros for the MDIO port module which are mean...
struct EnetPer_Obj_s * EnetPer_Handle
Ethernet Peripheral handle.
Definition: enet_per.h:299
This file contains the private top-level type definitions and helper macros.
void * hStatsIntr
Definition: cpsw_priv.h:193
MDIO port object.
Definition: mdio_priv.h:147
This file contains the type definitions and helper macros for the Ethernet PHY interface.
This file contains private type definitions and helper macros for the CPSW host port module which are...