![]() |
PDK API Guide for AM65xx
|
This file contains private type definitions and helper macros for the CPSW host port module which are meant for internal use in Enet Per drivers.
Go to the source code of this file.
Data Structures | |
struct | CpswHostPort_Obj |
CPSW host port object. More... | |
Macros | |
#define | CPSW_HOSTPORT_PRIVATE_IOCTL(x) |
Helper macro to create private IOCTL commands for CPSW MAC port module. More... | |
Typedefs | |
typedef CpswHostPort_Obj * | CpswHostPort_Handle |
Host port module handle. More... | |
Enumerations | |
enum | CpswHostPort_PrivIoctls { CPSW_HOSTPORT_SET_FLOW_ID_OFFSET = CPSW_HOSTPORT_PRIVATE_IOCTL(0U) } |
Host port private IOCTL commands. More... | |
Functions | |
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. More... | |
int32_t | CpswHostPort_rejoin (EnetMod_Handle hMod, Enet_Type enetType, uint32_t instId) |
Rejoin a running CPSW host port. More... | |
int32_t | CpswHostPort_ioctl (EnetMod_Handle hMod, uint32_t cmd, Enet_IoctlPrms *prms) |
Run an IOCTL operation on CPSW host port. More... | |
void | CpswHostPort_close (EnetMod_Handle hMod) |
Close CPSW host port. More... | |
#define CPSW_HOSTPORT_PRIVATE_IOCTL | ( | x | ) |
Helper macro to create private IOCTL commands for CPSW MAC port module.
typedef CpswHostPort_Obj* CpswHostPort_Handle |
Host port module handle.
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.
hMod | Enet Module handle |
enetType | Enet Peripheral type |
instId | Enet Peripheral instance id |
cfg | Configuration parameters |
cfgSize | Size of the configuration parameters |
int32_t CpswHostPort_rejoin | ( | EnetMod_Handle | hMod, |
Enet_Type | enetType, | ||
uint32_t | instId | ||
) |
Rejoin a running CPSW host port.
hMod | Enet Module handle |
enetType | Enet Peripheral type |
instId | Enet Peripheral instance id |
int32_t CpswHostPort_ioctl | ( | EnetMod_Handle | hMod, |
uint32_t | cmd, | ||
Enet_IoctlPrms * | prms | ||
) |
Run an IOCTL operation on CPSW host port.
hMod | Enet Module handle |
cmd | IOCTL command Id |
prms | IOCTL parameters |
void CpswHostPort_close | ( | EnetMod_Handle | hMod | ) |
Close CPSW host port.
hMod | Enet Module handle |