The CPSW statistics module implements only the IOCTLs defined in the generic Enet Statistics API. There are no additional CPSW-specific IOCTLs.
The CPSW host port module provides additional IOCTL commands than those supported by the generci Enet Host Port API set.
CPSW host port clocks:
Compile-time configuration:
Data Structures | |
| struct | CpswHostPort_FifoStats |
| FIFO related statistics of the host port. More... | |
| struct | CpswHostPort_Cfg |
| Host port module configuration parameters. More... | |
Functions | |
| void | CpswHostPort_initCfg (CpswHostPort_Cfg *hostPortCfg) |
| Initialize CPSW host port configuration parameters. More... | |
Enumerations | |
| enum | CpswHostPort_Ioctl { CPSW_HOSTPORT_IOCTL_GET_FIFO_STATS = CPSW_HOSTPORT_PUBLIC_IOCTL(0U), CPSW_HOSTPORT_GET_FLOW_ID_OFFSET = CPSW_HOSTPORT_PUBLIC_IOCTL(1U) } |
| CPSW HOST port IOCTL commands. More... | |
Macros | |
| #define | CPSW_HOSTPORT_PUBLIC_IOCTL(x) |
| Helper macro to create IOCTL commands for CPSW host port module. More... | |
| #define CPSW_HOSTPORT_PUBLIC_IOCTL | ( | x | ) |
Helper macro to create IOCTL commands for CPSW host port module.
| enum CpswHostPort_Ioctl |
CPSW HOST port IOCTL commands.
| Enumerator | |
|---|---|
| CPSW_HOSTPORT_IOCTL_GET_FIFO_STATS | Get host port's FIFO statistics. IOCTL parameters:
|
| CPSW_HOSTPORT_GET_FLOW_ID_OFFSET | Get host port flow Id offset. IOCTL parameters:
|
| void CpswHostPort_initCfg | ( | CpswHostPort_Cfg * | hostPortCfg | ) |
Initialize CPSW host port configuration parameters.
| hostPortCfg | Configuration parameters to be initialized |