|
AM263x MCU+ SDK
10.00.00
|
|
Go to the documentation of this file.
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 | \
281 typedef struct Enet_DfltFlowInfo_s
299 typedef struct Enet_MacDstFlowInfo_s
317 typedef struct EnetPer_PortLinkCfg_s
338 typedef struct EnetPer_AttachCoreOutArgs_s
354 typedef struct Enet_ExtPhyLinkUpEventInfo_s
366 typedef struct Enet_IoctlRegisterHandlerInArgs_s
567 typedef struct EnetPer_Obj_s
@ ENET_PER_IOCTL_SET_VLAN_AWARE
Enable VLAN aware mode.
Definition: enet_per.h:208
const char * name
Definition: enet_per.h:570
EnetPer_Close close
Definition: enet_per.h:631
@ ENET_PER_IOCTL_HANDLE_EXTPHY_LINKDOWN_EVENT
Handle link down event for an externally managed PHY.
Definition: enet_per.h:241
@ ENET_PER_IOCTL_CLEAR_ISOLATE_STATE
Clear PHY ISOLATE mode.
Definition: enet_per.h:274
uintptr_t fxn
Definition: enet_per.h:372
void(*const EnetPer_SaveCtxt)(EnetPer_Handle hPer)
Save and close the Enet Peripheral.
Definition: enet_per.h:546
int32_t(*const EnetPer_Ioctl)(EnetPer_Handle hPer, uint32_t cmd, Enet_IoctlPrms *prms)
Issue an operation on the Enet Peripheral.
Definition: enet_per.h:447
@ ENET_PER_IOCTL_GET_VERSION
Get the hardware version of the peripheral.
Definition: enet_per.h:88
This file contains the type definitions and helper macros for the Enet MAC port module interface.
@ ENET_PER_IOCTL_OPEN_PORT_LINK
Open port link (MAC port and PHY).
Definition: enet_per.h:106
Enet_MacPort macPort
Definition: enet_per.h:320
void * virtAddr2
Definition: enet_per.h:595
Link speed and duplexity configuration.
Definition: enet_mod_macport.h:457
Enet_Magic magic
Definition: enet_per.h:579
uint32_t features
Definition: enet_per.h:598
This file contains the basic types using across the Enet driver.
uint32_t rxMtu
Definition: enet_per.h:344
uint32_t instId
Definition: enet_per.h:576
@ ENET_IOCTL_UNREGISTER_DSTMAC_RX_FLOW
Unregister destination MAC address to a specific flow.
Definition: enet_per.h:197
void(*const EnetPer_Poll)(EnetPer_Handle hPer, Enet_Event evt, const void *arg, uint32_t argSize)
Poll for Ethernet events.
Definition: enet_per.h:465
Enet_MacPort
MAC port.
Definition: enet_types.h:409
Enet_Event
Ethernet events.
Definition: enet_types.h:265
uint32_t flowIdx
Definition: enet_per.h:308
Output args for ENET_PER_IOCTL_ATTACH_CORE command.
Definition: enet_per.h:339
uint64_t physAddr
Definition: enet_per.h:586
EnetPer_Rejoin rejoin
Definition: enet_per.h:610
Input args for ENET_PER_IOCTL_HANDLE_EXTPHY_LINKUP_EVENT command.
Definition: enet_per.h:355
This file contains the type definitions and helper macros for the Enet IOCTL interface.
void(*const EnetPer_PeriodicTick)(EnetPer_Handle hPer)
Run periodic tick on the Ethernet peripheral.
Definition: enet_per.h:496
Enet_Magic
Enet driver magic value, used to indicate if driver is open or not.
Definition: enet_types.h:235
uint64_t physAddr2
Definition: enet_per.h:592
@ ENET_PER_IOCTL_SET_VLAN_UNAWARE
Disable VLAN aware mode.
Definition: enet_per.h:219
PHY configuration parameters.
Definition: enetphy.h:356
int32_t(*const EnetPer_RestoreCtxt)(EnetPer_Handle hPer, Enet_Type enetType, uint32_t instId)
Restores and Opens the Enet Peripheral.
Definition: enet_per.h:560
Enet_MacPort macPort
Definition: enet_per.h:357
#define ENET_PER_PUBLIC_IOCTL(x)
Helper macro to create IOCTL commands for peripherals.
Definition: enet_per.h:68
@ ENET_PER_IOCTL_PRINT_REGS
Print registers of the peripheral and all its modules.
Definition: enet_per.h:97
Enet IOCTL param.
Definition: enet_ioctl.h:275
This file contains the type definitions and helper macros for the Ethernet PHY interface.
EnetPhy_Cfg phyCfg
Definition: enet_per.h:326
Ethernet Peripheral object.
Definition: enet_per.h:568
@ ENET_PER_IOCTL_GET_PORT_LINK_CFG
Get port link configuration (speed and duplexity).
Definition: enet_per.h:133
Input args for ENET_PER_IOCTL_OPEN_PORT_LINK command.
Definition: enet_per.h:318
#define ENET_PRI_NUM
Packet priority.
Definition: enet_types.h:165
void(*const EnetPer_UnregisterEventCb)(EnetPer_Handle hPer, Enet_Event evt, uint32_t evtNum)
Unregister callback for an event.
Definition: enet_per.h:526
MAC port interface.
Definition: enet_mod_macport.h:442
uint32_t coreKey
Definition: enet_per.h:302
EnetPer_RegisterEventCb registerEventCb
Definition: enet_per.h:625
@ ENET_IOCTL_REGISTER_DSTMAC_RX_FLOW
Register destination MAC address to a specific rx flow.
Definition: enet_per.h:185
@ ENET_PER_IOCTL_SET_ISOLATE_STATE
Setting PHY ISOLATE mode.
Definition: enet_per.h:263
void(*const EnetPer_InitCfg)(EnetPer_Handle hPer, Enet_Type enetType, void *cfg, uint32_t cfgSize)
Initialize peripheral's configuration parameters.
Definition: enet_per.h:392
EnetPer_ConvertTs convertTs
Definition: enet_per.h:619
uint32_t chIdx
Definition: enet_per.h:287
EnetMacPort_LinkCfg linkCfg
Definition: enet_per.h:332
Rx Default Flow Info used for default flow registration/unregistration.
Definition: enet_per.h:282
struct EnetPer_Obj_s * EnetPer_Handle
Ethernet Peripheral handle.
Definition: enet_per.h:380
void(*const EnetPer_Close)(EnetPer_Handle hPer)
Close the Enet Peripheral.
Definition: enet_per.h:537
EnetPer_InitCfg initCfg
Definition: enet_per.h:604
int32_t(*const 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:411
@ ENET_PER_IOCTL_ATTACH_CORE
Attach core to Ethernet peripheral.
Definition: enet_per.h:142
Enet_Type
Ethernet peripheral type.
Definition: enet_types.h:199
Enet_Type enetType
Definition: enet_per.h:573
EnetPer_Poll poll
Definition: enet_per.h:616
uint32_t startIdx
Definition: enet_per.h:305
EnetPhy_LinkCfg phyLinkCfg
Definition: enet_per.h:360
EnetPer_RestoreCtxt restoreCtxt
Definition: enet_per.h:637
@ ENET_PER_IOCTL_DETACH_CORE
Detach core from Ethernet peripheral using its core key.
Definition: enet_per.h:151
uint64_t(*const EnetPer_ConvertTs)(EnetPer_Handle hPer, uint64_t ts)
Convert a timestamp to nanoseconds.
Definition: enet_per.h:486
ENET_PER_IOCTL_REGISTER_IOCTL_HANDLER inArgs
Definition: enet_per.h:367
@ ENET_PER_IOCTL_IS_PORT_LINK_UP
Check if port link is up.
Definition: enet_per.h:124
void * virtAddr
Definition: enet_per.h:589
Link speed and duplexity configuration.
Definition: enetphy.h:302
EnetPer_Ioctl_e
Ethernet peripheral IOCTL commands.
Definition: enet_per.h:80
@ ENET_IOCTL_REGISTER_RX_DEFAULT_FLOW
Register default flow to a specific rx flow.
Definition: enet_per.h:160
@ ENET_PER_IOCTL_CLOSE_PORT_LINK
Close port link (MAC port and PHY).
Definition: enet_per.h:115
uint32_t startIdx
Definition: enet_per.h:290
uint32_t flowIdx
Definition: enet_per.h:293
void(* Enet_EventCallback)(Enet_Event evt, uint32_t evtNum, void *evtCbArgs, void *arg1, void *arg2)
Event callback.
Definition: enet_types.h:451
EnetPer_Ioctl ioctl
Definition: enet_per.h:613
uint32_t cmd
Definition: enet_per.h:369
void(*const 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:511
uint32_t errata
Definition: enet_per.h:601
#define ENET_MAC_ADDR_LEN
MAC address length in bytes/octets.
Definition: enet_types.h:153
Output args for ENET_PER_IOCTL_ATTACH_CORE command.
Definition: enet_per.h:300
@ ENET_PER_IOCTL_REGISTER_IOCTL_HANDLER
Register IOCTL handler.
Definition: enet_per.h:252
EnetPer_PeriodicTick periodicTick
Definition: enet_per.h:622
void * macCfg
Definition: enet_per.h:323
uint32_t coreKey
Definition: enet_per.h:284
uint32_t coreKey
Definition: enet_per.h:341
EnetPer_Open open
Definition: enet_per.h:607
int32_t(*const EnetPer_Rejoin)(EnetPer_Handle hPer, Enet_Type enetType, uint32_t instId)
Rejoin a running Enet Peripheral.
Definition: enet_per.h:432
@ ENET_PER_IOCTL_HANDLE_EXTPHY_LINKUP_EVENT
Handle link up event for an externally managed PHY.
Definition: enet_per.h:230
@ ENET_IOCTL_UNREGISTER_RX_DEFAULT_FLOW
Unregister default flow.
Definition: enet_per.h:172
EnetPer_UnregisterEventCb unregisterEventCb
Definition: enet_per.h:628
EnetMacPort_Interface mii
Definition: enet_per.h:329
EnetPer_SaveCtxt saveCtxt
Definition: enet_per.h:634