![]() |
PDK API Guide for AM65xx
|
This file contains private type definitions and helper macros for the CPSW ALE module which are meant for internal use in Enet Per drivers.
Go to the source code of this file.
Data Structures | |
struct | CpswAle_Obj |
CPSW ALE object. More... | |
Macros | |
#define | CPSW_ALE_FEATURE_FLOW_PRIORITY (ENET_BIT(0U)) |
Flow priority feature mask. More... | |
#define | CPSW_ALE_FEATURE_IP_HDR_WHITELIST (ENET_BIT(1U)) |
IP header white-list feature mask. More... | |
Typedefs | |
typedef CpswAle_Obj * | CpswAle_Handle |
CPSW ALE module handle. More... | |
Enumerations | |
enum | CpswAle_AddrType { CPSW_ALE_ADDR_TYPE_SRC, CPSW_ALE_ADDR_TYPE_DST } |
Address type: source or destination. More... | |
Functions | |
int32_t | CpswAle_open (EnetMod_Handle hMod, Enet_Type enetType, uint32_t instId, const void *cfg, uint32_t cfgSize) |
Open and initialize CPSW ALE. More... | |
int32_t | CpswAle_rejoin (EnetMod_Handle hMod, Enet_Type enetType, uint32_t instId) |
Rejoin a running CPSW ALE module. More... | |
int32_t | CpswAle_ioctl (EnetMod_Handle hMod, uint32_t cmd, Enet_IoctlPrms *prms) |
Run an IOCTL operation on CPSW ALE. More... | |
void | CpswAle_close (EnetMod_Handle hMod) |
Close CPSW ALE. More... | |
#define CPSW_ALE_FEATURE_FLOW_PRIORITY (ENET_BIT(0U)) |
Flow priority feature mask.
#define CPSW_ALE_FEATURE_IP_HDR_WHITELIST (ENET_BIT(1U)) |
IP header white-list feature mask.
typedef CpswAle_Obj* CpswAle_Handle |
CPSW ALE module handle.
enum CpswAle_AddrType |
int32_t CpswAle_open | ( | EnetMod_Handle | hMod, |
Enet_Type | enetType, | ||
uint32_t | instId, | ||
const void * | cfg, | ||
uint32_t | cfgSize | ||
) |
Open and initialize CPSW ALE.
hMod | Enet Module handle |
enetType | Enet Peripheral type |
instId | Enet Peripheral instance id |
cfg | Configuration parameters |
cfgSize | Size of the configuration parameters |
int32_t CpswAle_rejoin | ( | EnetMod_Handle | hMod, |
Enet_Type | enetType, | ||
uint32_t | instId | ||
) |
Rejoin a running CPSW ALE module.
hMod | Enet Module handle |
enetType | Enet Peripheral type |
instId | Enet Peripheral instance id |
int32_t CpswAle_ioctl | ( | EnetMod_Handle | hMod, |
uint32_t | cmd, | ||
Enet_IoctlPrms * | prms | ||
) |
Run an IOCTL operation on CPSW ALE.
hMod | Enet Module handle |
cmd | IOCTL command Id |
prms | IOCTL parameters |
void CpswAle_close | ( | EnetMod_Handle | hMod | ) |
Close CPSW ALE.
hMod | Enet Module handle |