41 #ifndef CPSW_HOSTPORT_PRIV_H_ 42 #define CPSW_HOSTPORT_PRIV_H_ 59 #define CPSW_HOSTPORT_PRIVATE_IOCTL(x) (ENET_IOCTL_TYPE_PRIVATE | \ 60 ENET_IOCTL_HOSTPORT_BASE | \ 61 ENET_IOCTL_PER_CPSW | \ 71 typedef enum CpswHostPort_PrivIoctls_e
88 typedef struct CpswHostPort_Obj_s
void CpswHostPort_close(EnetMod_Handle hMod)
Close CPSW host port.
Enet_Type
Ethernet peripheral type.
Definition: enet_types.h:195
uint32_t instId
Definition: cpsw_hostport_priv.h:97
Set flow ID offset.
Definition: cpsw_hostport_priv.h:82
Ethernet Module object.
Definition: enet_mod.h:136
CPSW host port object.
Definition: cpsw_hostport_priv.h:88
CpswHostPort_PrivIoctls
Host port private IOCTL commands.
Definition: cpsw_hostport_priv.h:71
CpswHostPort_Obj * CpswHostPort_Handle
Host port module handle.
Definition: cpsw_hostport_priv.h:103
This file contains the type definitions and helper macros for the Enet Hostport module interface.
Enet_Type enetType
Definition: cpsw_hostport_priv.h:94
int32_t CpswHostPort_ioctl(EnetMod_Handle hMod, uint32_t cmd, Enet_IoctlPrms *prms)
Run an IOCTL operation on CPSW host port.
int32_t CpswHostPort_open(EnetMod_Handle hMod, Enet_Type enetType, uint32_t instId, const void *cfg, uint32_t cfgSize)
Open and initialize CPSW host port.
Enet IOCTL param.
Definition: enet_ioctl.h:229
EnetMod_Obj enetMod
Definition: cpsw_hostport_priv.h:91
int32_t CpswHostPort_rejoin(EnetMod_Handle hMod, Enet_Type enetType, uint32_t instId)
Rejoin a running CPSW host port.
#define CPSW_HOSTPORT_PRIVATE_IOCTL(x)
Helper macro to create private IOCTL commands for CPSW MAC port module.
Definition: cpsw_hostport_priv.h:59
struct EnetMod_Obj_s * EnetMod_Handle
Ethernet Module handle.
Definition: enet_mod.h:71