40 #ifndef CPSW_TPR12_PRIV_H_ 41 #define CPSW_TPR12_PRIV_H_ 61 #if ENET_CFG_IS_ON(RM_PRESENT) 74 #define CPSW_FEATURE_INTERVLAN (ENET_BIT(1U)) 80 #define CPSW_INTR_RX_THRESH (1U) 83 #define CPSW_INTR_RX_PEND (2U) 86 #define CPSW_INTR_TX_PEND (3U) 89 #define CPSW_INTR_MISC_PEND (4U) 97 typedef struct Cpsw_MdioLinkIntCtx_s
106 uint32_t pollEnableMask;
112 void *linkStateChangeCbArg;
118 typedef struct Cpsw_PortLinkState_s
139 typedef struct Cpsw_Obj_s
165 #if ENET_CFG_IS_ON(RM_PRESENT) 228 void *portLinkStatusChangeCbArg;
231 uint32_t maxPerPrioMtu;
This file contains the type definitions and helper macros for the CPSW peripheral interface.
Enet_Type
Ethernet peripheral type.
Definition: enet_types.h:195
struct Enet_Obj_s * Enet_Handle
Ethernet driver handle.
Definition: enet_base.h:105
void Cpsw_close(EnetPer_Handle hPer)
Close the CPSW peripheral.
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.
void * hDmaMiscIntr
Definition: cpsw_tpr12_priv.h:219
This file contains the basic types using across the Enet driver.
CPSW CPTS object.
Definition: cpsw_cpts_priv.h:174
Enet Resource Manager driver object.
Definition: enet_rm_priv.h:321
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.
This file contains private type definitions and helper macros for the CPSW ALE module which are meant...
EnetDma_Handle Cpsw_getDmaHandle(const Enet_Handle hEnet)
Get DMA driver handle.
This file contains the type definitions and helper macros for the Enet Peripheral interface.
This file contains the type definitions and helper macros for the Enet Peripheral interface.
int32_t Cpsw_rejoin(EnetPer_Handle hPer, Enet_Type enetType, uint32_t instId)
Rejoin a running CPSW peripheral.
struct EnetUdma_DrvObj_s * EnetDma_Handle
Opaque handle for Enet UDMA driver object.
Definition: enet_udma_types.h:86
CSL_Xge_cpswRegs * cpswRegs
Definition: cpsw_tpr12_priv.h:207
CPSW host port object.
Definition: cpsw_hostport_priv.h:88
This file contains private type definitions and helper macros for the CPSW statistics module which ar...
#define CPSW_MAC_PORT_NUM
Definition: cpsw.h:97
void Cpsw_poll(EnetPer_Handle hPer, Enet_Event evt, const void *arg, uint32_t argSize)
Poll for Ethernet events.
Port link state (link up/down, tick enabled)
Definition: cpsw_priv.h:100
int32_t Cpsw_ioctl(EnetPer_Handle hPer, uint32_t cmd, Enet_IoctlPrms *prms)
Issue an operation on the CPSW peripheral.
void(* Cpsw_MdioLinkStateChangeCb)(Cpsw_MdioLinkStateChangeInfo *info, void *appArg)
CPSW PHY link state change callback function.
Definition: cpsw.h:453
CSL_Xge_cpsw_ss_sRegs * cpswSsRegs
Definition: cpsw_tpr12_priv.h:204
void * hDmaTxIntr
Definition: cpsw_tpr12_priv.h:216
This file contains the private type definitions and helper macros for Enet Resource Manager.
void * hDmaRxIntr
Definition: cpsw_tpr12_priv.h:213
CPSW MAC port object.
Definition: cpsw_macport_priv.h:257
Ethernet Peripheral object.
Definition: enet_per.h:461
Enet IOCTL param.
Definition: enet_ioctl.h:229
MDIO status change (MDIO_LINKINT) context.
Definition: cpsw_priv.h:79
Cpsw_Obj * Cpsw_Handle
CPSW peripheral handle.
Definition: cpsw_tpr12_priv.h:237
This file contains private type definitions and helper macros for the CPSW MAC port module which are ...
void Cpsw_periodicTick(EnetPer_Handle hPer)
Run periodic tick on the CPSW peripheral.
CPSW driver object.
Definition: cpsw_priv.h:121
Enet_Event
Ethernet events.
Definition: enet_types.h:258
struct EnetMod_Obj_s * EnetMod_Handle
Ethernet Module handle.
Definition: enet_mod.h:71
void * hDmaRxThreshIntr
Definition: cpsw_tpr12_priv.h:210
struct EnetPhy_Obj_s * EnetPhy_Handle
PHY driver object handle.
Definition: enetphy.h:641
void Cpsw_initCfg(EnetPer_Handle hPer, Enet_Type enetType, void *cfg, uint32_t cfgSize)
Initialize CPSW peripheral's configuration parameters.
CPSW statistics object.
Definition: cpsw_stats_priv.h:90
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.
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...