|
AM263x MCU+ SDK
10.00.00
|
|
Go to the documentation of this file.
60 #define ENET_MOD(mod) ((EnetMod_Handle)mod)
164 typedef struct EnetMod_Obj_s
void(*const EnetMod_SaveCtxt)(EnetMod_Handle hMod)
Saves and closes the Enet Module context before resetting.
Definition: enet_mod.h:140
EnetMod_Rejoin rejoin
Definition: enet_mod.h:194
This file contains the basic types using across the Enet driver.
EnetMod_Ioctl ioctl
Definition: enet_mod.h:197
void EnetMod_close(EnetMod_Handle hMod)
Wrapper function to close an Enet Module.
int32_t(*const EnetMod_Rejoin)(EnetMod_Handle hMod, Enet_Type enetType, uint32_t instId)
Rejoin the Enet Module.
Definition: enet_mod.h:105
This file contains the type definitions and helper macros for the Enet IOCTL interface.
uint32_t errata
Definition: enet_mod.h:185
@ ENET_MAGIC
Definition: enet_types.h:237
Enet_Magic
Enet driver magic value, used to indicate if driver is open or not.
Definition: enet_types.h:235
EnetMod_Open open
Definition: enet_mod.h:191
void * virtAddr2
Definition: enet_mod.h:179
void * virtAddr
Definition: enet_mod.h:173
Enet IOCTL param.
Definition: enet_ioctl.h:275
void(*const EnetMod_Close)(EnetMod_Handle hMod)
Close the Enet Module.
Definition: enet_mod.h:131
struct EnetMod_Obj_s * EnetMod_Handle
Ethernet Module handle.
Definition: enet_mod.h:71
EnetMod_RestoreCtxt restoreCtxt
Definition: enet_mod.h:206
int32_t(*const EnetMod_RestoreCtxt)(EnetMod_Handle hMod, Enet_Type enetType, uint32_t instId, const void *cfg, uint32_t cfgSize)
Restores and opens the Enet Module after reset.
Definition: enet_mod.h:156
Ethernet Module object.
Definition: enet_mod.h:165
int32_t(*const 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
int32_t EnetMod_restoreCtxt(EnetMod_Handle hMod, Enet_Type enetType, uint32_t instId, const void *cfg, uint32_t cfgSize)
Wrapper to retore and open Enet Module.
int32_t(*const EnetMod_Ioctl)(EnetMod_Handle hMod, uint32_t cmd, Enet_IoctlPrms *prms)
Issue an operation on the Enet Module.
Definition: enet_mod.h:120
static bool EnetMod_isOpen(EnetMod_Handle hMod)
Check if Enet Module is open or not.
Definition: enet_mod.h:342
int32_t EnetMod_registerMacportIoctlHandler(EnetMod_Handle hMod, uint32_t cmdBase, uint32_t cmd, Enet_IoctlPrms *prms)
Wrapper function to register IOCTL for Macport Module. This function is defined for the cases when ON...
Enet_Type
Ethernet peripheral type.
Definition: enet_types.h:199
uint64_t physAddr
Definition: enet_mod.h:170
int32_t EnetMod_ioctl(EnetMod_Handle hMod, uint32_t cmd, Enet_IoctlPrms *prms)
Wrapper function to issue an operation on an Enet Module.
void EnetMod_saveCtxt(EnetMod_Handle hMod)
Wrapper function to save and close Enet Module.
EnetMod_Close close
Definition: enet_mod.h:200
uint32_t features
Definition: enet_mod.h:182
int32_t EnetMod_rejoin(EnetMod_Handle hMod, Enet_Type enetType, uint32_t instId)
Wrapper to rejoin an Enet Module.
const char * name
Definition: enet_mod.h:167
uint64_t physAddr2
Definition: enet_mod.h:176
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.
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.
Enet_Magic magic
Definition: enet_mod.h:188
EnetMod_SaveCtxt saveCtxt
Definition: enet_mod.h:203