The CPSW MAC port module provides additional IOCTL commands than those supported by the generic Enet MAC Port API set.
CPSW MAC port clocks:
Features:
Compile-time configuration:
Data Structures | |
struct | CpswMacPort_TxShortIpgCfg |
Configuration of transmit short inter packet gap feature. More... | |
struct | CpswMacPort_PortTxShortIpgCfg |
MAC port's short gap configuration. More... | |
struct | CpswMacPort_InterVlanRoutingCfg |
Port interVLAN configuration parameters. More... | |
struct | CpswMacPort_FifoStats |
FIFO related statistics of a MAC port. More... | |
struct | CpswMacPort_IpTsCfg |
Port IP configuration for time synchronization events. More... | |
struct | CpswMacPort_TsEventCfg |
Port configuration for time synchronization. More... | |
struct | CpswMacPort_EnableTsEventInArgs |
Input args for CPSW_MACPORT_IOCTL_ENABLE_CPTS_EVENT. More... | |
struct | CpswMacPort_Cfg |
MAC port module configuration parameters. More... | |
Functions | |
void | CpswMacPort_initCfg (CpswMacPort_Cfg *macPortCfg) |
Initialize CPSW MAC port configuration parameters. More... | |
Enumerations | |
enum | CpswMacPort_Ioctl { CPSW_MACPORT_IOCTL_GET_FIFO_STATS = CPSW_MACPORT_PUBLIC_IOCTL(0U), CPSW_MACPORT_IOCTL_ENABLE_CPTS_EVENT = CPSW_MACPORT_PUBLIC_IOCTL(1U), CPSW_MACPORT_IOCTL_DISABLE_CPTS_EVENT = CPSW_MACPORT_PUBLIC_IOCTL(2U) } |
CPSW MAC port IOCTL commands. More... | |
enum | CpswMacPort_InterVlanRouteId { CPSW_MACPORT_INTERVLAN_ROUTEID_FIRST, CPSW_MACPORT_INTERVLAN_ROUTEID_1 = CPSW_MACPORT_INTERVLAN_ROUTEID_FIRST, CPSW_MACPORT_INTERVLAN_ROUTEID_2, CPSW_MACPORT_INTERVLAN_ROUTEID_3, CPSW_MACPORT_INTERVLAN_ROUTEID_4, CPSW_MACPORT_INTERVLAN_ROUTEID_LAST = CPSW_MACPORT_INTERVLAN_ROUTEID_4 } |
MAC port interVLAN route identifier. More... | |
Macros | |
#define | CPSW_MACPORT_PUBLIC_IOCTL(x) |
Helper macro to create IOCTL commands for CPSW MAC port module. More... | |
#define CPSW_MACPORT_PUBLIC_IOCTL | ( | x | ) |
Helper macro to create IOCTL commands for CPSW MAC port module.
enum CpswMacPort_Ioctl |
CPSW MAC port IOCTL commands.
Enumerator | |
---|---|
CPSW_MACPORT_IOCTL_GET_FIFO_STATS | Get MAC port FIFO statistics. IOCTL parameters:
|
CPSW_MACPORT_IOCTL_ENABLE_CPTS_EVENT | Enable Ethernet port CPTS event. IOCTL parameters:
|
CPSW_MACPORT_IOCTL_DISABLE_CPTS_EVENT | Disable Ethernet port CPTS event. IOCTL parameters:
|
MAC port interVLAN route identifier.
void CpswMacPort_initCfg | ( | CpswMacPort_Cfg * | macPortCfg | ) |
Initialize CPSW MAC port configuration parameters.
macPortCfg | Configuration parameters to be initialized |