60 #define ENET_MOD(mod) ((EnetMod_Handle)mod) 136 typedef struct EnetMod_Obj_s
uint32_t errata
Definition: enet_mod.h:157
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
int32_t EnetMod_ioctl(EnetMod_Handle hMod, uint32_t cmd, Enet_IoctlPrms *prms)
Wrapper function to issue an operation on an Enet Module.
EnetMod_Close close
Definition: enet_mod.h:172
void(* EnetMod_Close)(EnetMod_Handle hMod)
Close the Enet Module.
Definition: enet_mod.h:131
int32_t(* EnetMod_Ioctl)(EnetMod_Handle hMod, uint32_t cmd, Enet_IoctlPrms *prms)
Issue an operation on the Enet Module.
Definition: enet_mod.h:120
Definition: enet_types.h:231
EnetMod_Ioctl ioctl
Definition: enet_mod.h:169
This file contains the basic types using across the Enet driver.
void * virtAddr2
Definition: enet_mod.h:151
Enet_Magic magic
Definition: enet_mod.h:160
uint32_t features
Definition: enet_mod.h:154
void * virtAddr
Definition: enet_mod.h:145
int32_t EnetMod_rejoin(EnetMod_Handle hMod, Enet_Type enetType, uint32_t instId)
Wrapper to rejoin an Enet Module.
static bool EnetMod_isOpen(EnetMod_Handle hMod)
Check if Enet Module is open or not.
Definition: enet_mod.h:268
Ethernet Module object.
Definition: enet_mod.h:136
int32_t EnetMod_open(EnetMod_Handle hMod, Enet_Type enetType, uint32_t instId, const void *cfg, uint32_t cfgSize)
Wrapper to open and initialize an Enet Module.
This file contains the type definitions and helper macros for the Enet IOCTL interface.
EnetMod_Open open
Definition: enet_mod.h:163
Enet IOCTL param.
Definition: enet_ioctl.h:232
int32_t(* EnetMod_Rejoin)(EnetMod_Handle hMod, Enet_Type enetType, uint32_t instId)
Rejoin the Enet Module.
Definition: enet_mod.h:105
int32_t(* EnetMod_Open)(EnetMod_Handle hMod, Enet_Type enetType, uint32_t instId, const void *cfg, uint32_t cfgSize)
Open and initialize the Enet Module.
Definition: enet_mod.h:87
const char * name
Definition: enet_mod.h:139
struct EnetMod_Obj_s * EnetMod_Handle
Ethernet Module handle.
Definition: enet_mod.h:71
int32_t EnetMod_ioctlFromIsr(EnetMod_Handle hMod, uint32_t cmd, Enet_IoctlPrms *prms)
Wrapper function to issue an operation on an Enet Module from ISR context.
EnetMod_Rejoin rejoin
Definition: enet_mod.h:166
uint64_t physAddr2
Definition: enet_mod.h:148
uint64_t physAddr
Definition: enet_mod.h:142
void EnetMod_close(EnetMod_Handle hMod)
Wrapper function to close an Enet Module.