![]() |
PDK API Guide for AM65xx
|
This file contains private type definitions and helper macros for the CPSW statistics module which are meant for internal use in Enet Per drivers.
Go to the source code of this file.
Data Structures | |
struct | CpswStats_Obj |
CPSW statistics object. More... | |
Macros | |
#define | CPSW_STATS_PRIVATE_IOCTL(x) |
Helper macro to create private IOCTL commands for CPSW stats module. More... | |
#define | CPSW_STATS_MACPORT_MAX (8U) |
Maximum number of MAC port stats blocks. More... | |
Typedefs | |
typedef CpswStats_Obj * | CpswStats_Handle |
Statistics module handle. More... | |
Enumerations | |
enum | CpswStats_PrivIoctls { CPSW_STATS_IOCTL_SYNC = CPSW_STATS_PRIVATE_IOCTL(0U) } |
Statistics private IOCTL commands. More... | |
Functions | |
int32_t | CpswStats_open (EnetMod_Handle hMod, Enet_Type enetType, uint32_t instId, const void *cfg, uint32_t cfgSize) |
Open and initialize CPSW stats. More... | |
int32_t | CpswStats_rejoin (EnetMod_Handle hMod, Enet_Type enetType, uint32_t instId) |
Rejoin a running CPSW stats module. More... | |
int32_t | CpswStats_ioctl (EnetMod_Handle hMod, uint32_t cmd, Enet_IoctlPrms *prms) |
Run an IOCTL operation on CPSW stats. More... | |
void | CpswStats_close (EnetMod_Handle hMod) |
Close CPSW stats. More... | |
#define CPSW_STATS_PRIVATE_IOCTL | ( | x | ) |
Helper macro to create private IOCTL commands for CPSW stats module.
#define CPSW_STATS_MACPORT_MAX (8U) |
Maximum number of MAC port stats blocks.
typedef CpswStats_Obj* CpswStats_Handle |
Statistics module handle.
enum CpswStats_PrivIoctls |
int32_t CpswStats_open | ( | EnetMod_Handle | hMod, |
Enet_Type | enetType, | ||
uint32_t | instId, | ||
const void * | cfg, | ||
uint32_t | cfgSize | ||
) |
Open and initialize CPSW stats.
hMod | Enet Module handle |
enetType | Enet Peripheral type |
instId | Enet Peripheral instance id |
cfg | Configuration parameters |
cfgSize | Size of the configuration parameters |
int32_t CpswStats_rejoin | ( | EnetMod_Handle | hMod, |
Enet_Type | enetType, | ||
uint32_t | instId | ||
) |
Rejoin a running CPSW stats module.
hMod | Enet Module handle |
enetType | Enet Peripheral type |
instId | Enet Peripheral instance id |
int32_t CpswStats_ioctl | ( | EnetMod_Handle | hMod, |
uint32_t | cmd, | ||
Enet_IoctlPrms * | prms | ||
) |
Run an IOCTL operation on CPSW stats.
hMod | Enet Module handle |
cmd | IOCTL command Id |
prms | IOCTL parameters |
void CpswStats_close | ( | EnetMod_Handle | hMod | ) |
Close CPSW stats.
hMod | Enet Module handle |