62 #define ENET_TO_PER(per) ((EnetPer_Handle)(per)) 65 #define ENET_PER_NAME(per) (ENET_TO_PER(per)->name) 68 #define ENET_PER_PUBLIC_IOCTL(x) (ENET_IOCTL_TYPE_PUBLIC | \ 69 ENET_IOCTL_PER_BASE | \ 225 typedef struct Enet_DfltFlowInfo_s
243 typedef struct Enet_MacDstFlowInfo_s
261 typedef struct EnetPer_PortLinkCfg_s
282 typedef struct EnetPer_AttachCoreOutArgs_s
461 typedef struct EnetPer_Obj_s
Register destination MAC address to a specific rx flow.
Definition: enet_per.h:185
Disable VLAN aware mode.
Definition: enet_per.h:219
Enet_Magic
Enet driver magic value, used to indicate if driver is open or not.
Definition: enet_types.h:228
Enet_Type
Ethernet peripheral type.
Definition: enet_types.h:195
void(* EnetPer_Close)(EnetPer_Handle hPer)
Close the Enet Peripheral.
Definition: enet_per.h:456
EnetPer_Rejoin rejoin
Definition: enet_per.h:504
Enet_MacPort macPort
Definition: enet_per.h:264
EnetPhy_Cfg phyCfg
Definition: enet_per.h:270
Attach core to Ethernet peripheral.
Definition: enet_per.h:142
MAC port interface.
Definition: enet_mod_macport.h:273
int32_t(* EnetPer_Ioctl)(EnetPer_Handle hPer, uint32_t cmd, Enet_IoctlPrms *prms)
Issue an operation on the Enet Peripheral.
Definition: enet_per.h:366
#define ENET_PER_PUBLIC_IOCTL(x)
Helper macro to create IOCTL commands for peripherals.
Definition: enet_per.h:68
void(* EnetPer_Poll)(EnetPer_Handle hPer, Enet_Event evt, const void *arg, uint32_t argSize)
Poll for Ethernet events.
Definition: enet_per.h:384
Close port link (MAC port and PHY).
Definition: enet_per.h:115
uint64_t physAddr2
Definition: enet_per.h:486
PHY configuration parameters.
Definition: enetphy.h:335
EnetPer_ConvertTs convertTs
Definition: enet_per.h:513
This file contains the basic types using across the Enet driver.
Check if port link is up.
Definition: enet_per.h:124
Link speed and duplexity configuration.
Definition: enet_mod_macport.h:288
uint32_t coreKey
Definition: enet_per.h:285
EnetPer_InitCfg initCfg
Definition: enet_per.h:498
Output args for ENET_PER_IOCTL_ATTACH_CORE command.
Definition: enet_per.h:282
const char * name
Definition: enet_per.h:464
EnetPer_Ioctl ioctl
Definition: enet_per.h:507
EnetPer_Ioctl_e
Ethernet peripheral IOCTL commands.
Definition: enet_per.h:79
This file contains the type definitions and helper macros for the Enet MAC port module interface.
#define ENET_MAC_ADDR_LEN
MAC address length in bytes/octets.
Definition: enet_types.h:153
int32_t(* EnetPer_Rejoin)(EnetPer_Handle hPer, Enet_Type enetType, uint32_t instId)
Rejoin a running Enet Peripheral.
Definition: enet_per.h:351
uint64_t physAddr
Definition: enet_per.h:480
void * virtAddr
Definition: enet_per.h:483
Detach core from Ethernet peripheral using its core key.
Definition: enet_per.h:151
uint32_t flowIdx
Definition: enet_per.h:252
Enet_Magic magic
Definition: enet_per.h:473
Register default flow to a specific rx flow.
Definition: enet_per.h:160
Rx Default Flow Info used for default flow registration/unregistration.
Definition: enet_per.h:225
void * macCfg
Definition: enet_per.h:267
Enet_Type enetType
Definition: enet_per.h:467
Open port link (MAC port and PHY).
Definition: enet_per.h:106
Enable VLAN aware mode.
Definition: enet_per.h:208
This file contains the type definitions and helper macros for the Enet IOCTL interface.
uint32_t instId
Definition: enet_per.h:470
Unregister default flow.
Definition: enet_per.h:172
EnetPer_Open open
Definition: enet_per.h:501
uint32_t chIdx
Definition: enet_per.h:231
uint32_t startIdx
Definition: enet_per.h:249
Get the hardware version of the peripheral.
Definition: enet_per.h:88
EnetPer_UnregisterEventCb unregisterEventCb
Definition: enet_per.h:522
Input args for ENET_PER_IOCTL_OPEN_PORT_LINK command.
Definition: enet_per.h:261
Ethernet Peripheral object.
Definition: enet_per.h:461
uint32_t errata
Definition: enet_per.h:495
uint32_t coreKey
Definition: enet_per.h:246
uint32_t startIdx
Definition: enet_per.h:234
Enet IOCTL param.
Definition: enet_ioctl.h:229
EnetPer_PeriodicTick periodicTick
Definition: enet_per.h:516
uint32_t coreKey
Definition: enet_per.h:228
void(* EnetPer_InitCfg)(EnetPer_Handle hPer, Enet_Type enetType, void *cfg, uint32_t cfgSize)
Initialize peripheral's configuration parameters.
Definition: enet_per.h:311
Output args for ENET_PER_IOCTL_ATTACH_CORE command.
Definition: enet_per.h:243
#define ENET_PRI_NUM
Packet priority.
Definition: enet_types.h:165
EnetPer_Poll poll
Definition: enet_per.h:510
EnetMacPort_Interface mii
Definition: enet_per.h:273
EnetMacPort_LinkCfg linkCfg
Definition: enet_per.h:276
uint32_t flowIdx
Definition: enet_per.h:237
uint32_t rxMtu
Definition: enet_per.h:288
Enet_Event
Ethernet events.
Definition: enet_types.h:258
uint64_t(* EnetPer_ConvertTs)(EnetPer_Handle hPer, uint64_t ts)
Convert a timestamp to nanoseconds.
Definition: enet_per.h:405
Enet_MacPort
MAC port.
Definition: enet_types.h:402
Print registers of the peripheral and all its modules.
Definition: enet_per.h:97
void(* EnetPer_PeriodicTick)(EnetPer_Handle hPer)
Run periodic tick on the Ethernet peripheral.
Definition: enet_per.h:415
Get port link configuration (speed and duplexity).
Definition: enet_per.h:133
Unregister destination MAC address to a specific flow.
Definition: enet_per.h:197
void(* EnetPer_UnregisterEventCb)(EnetPer_Handle hPer, Enet_Event evt, uint32_t evtNum)
Unregister callback for an event.
Definition: enet_per.h:445
struct EnetPer_Obj_s * EnetPer_Handle
Ethernet Peripheral handle.
Definition: enet_per.h:299
void * virtAddr2
Definition: enet_per.h:489
void(* Enet_EventCallback)(Enet_Event evt, uint32_t evtNum, void *evtCbArgs, void *arg1, void *arg2)
Event callback.
Definition: enet_types.h:445
int32_t(* EnetPer_Open)(EnetPer_Handle hPer, Enet_Type enetType, uint32_t instId, const void *cfg, uint32_t cfgSize)
Open and initialize the Enet Peripheral.
Definition: enet_per.h:330
void(* EnetPer_RegisterEventCb)(EnetPer_Handle hPer, Enet_Event evt, uint32_t evtNum, Enet_EventCallback evtCb, void *evtCbArgs)
Register a callback for an event.
Definition: enet_per.h:430
This file contains the type definitions and helper macros for the Ethernet PHY interface.
EnetPer_RegisterEventCb registerEventCb
Definition: enet_per.h:519
uint32_t features
Definition: enet_per.h:492
EnetPer_Close close
Definition: enet_per.h:525