![]() |
ETHFW API Guide
|
Ethernet Firmware configuration.
Ethernet Firmware configuration parameters.
Data Fields | |
| Cpsw_Cfg | cpswCfg |
| Enet_MacPort * | ports |
| uint32_t | numPorts |
| EthFwVirtPort_VirtPortCfg * | virtPortCfg |
| uint32_t | numVirtPorts |
| EthFwVlan_VlanCfg * | vlanCfg |
| uint32_t | numStaticVlans |
| uint32_t | defaultPortMask |
| uint32_t | defaultVirtPortMask |
| bool | dVlanSwtFwdEn |
| EthFwMcast_Cfg | mcastCfg |
| uint16_t | dfltVlanIdMacOnlyPorts |
| uint16_t | dfltVlanIdSwitchPorts |
| EthFw_setPortCfg | setPortCfg |
| EthFw_configPtpCb | configPtpCb |
| void * | configPtpCbArg |
| EthFwVepa_Cfg | vepaCfg |
| EthFwIET_Config | ietCfg |
| EthFwMon_Cfg | monitorCfg |
| bool | isStaticTxChanAllocated |
| EthFwTsn_PpsConfig | ppsConfig |
| bool | passErrPkt |
| EthFwPortMirroring_Cfg * | portMirCfg |
| Cpsw_Cfg EthFw_Config::cpswCfg |
CPSW configuration
| Enet_MacPort* EthFw_Config::ports |
MAC ports owned by EthFw. It must be provided as an array of MAC port ids
| uint32_t EthFw_Config::numPorts |
Number of MAC ports owned by EthFw, that is, the size of EthFw_Config::ports array
| EthFwVirtPort_VirtPortCfg* EthFw_Config::virtPortCfg |
Virtual ports accessed via remote_device framework (A72 Linux, A72 QNX, RTOS cores)
| uint32_t EthFw_Config::numVirtPorts |
Number of virtual ports accessed via remote_device framework
| EthFwVlan_VlanCfg* EthFw_Config::vlanCfg |
VLAN configuration
| uint32_t EthFw_Config::numStaticVlans |
Number of static VLANs configured.
| uint32_t EthFw_Config::defaultPortMask |
Default port mask for all ports in switch mode
| uint32_t EthFw_Config::defaultVirtPortMask |
Default virtual port mask for all ports in switch mode
| bool EthFw_Config::dVlanSwtFwdEn |
Whether forwarding to all Switch ports for dynamic VLANs is enabled
| EthFwMcast_Cfg EthFw_Config::mcastCfg |
Multicast configuration.
| uint16_t EthFw_Config::dfltVlanIdMacOnlyPorts |
Default VLAN id to be used for MAC ports configured in MAC-only mode
| uint16_t EthFw_Config::dfltVlanIdSwitchPorts |
Default VLAN id to be used for MAC ports configured in switch mode (non MAC-only)
| EthFw_setPortCfg EthFw_Config::setPortCfg |
Callback function for application to set port link parameters (MII, PHY, speed, duplexity, etc)
| EthFw_configPtpCb EthFw_Config::configPtpCb |
Callback for setting gPTP config parameters from the application
| void* EthFw_Config::configPtpCbArg |
Argument to be passed to gPTP config callback function
| EthFwVepa_Cfg EthFw_Config::vepaCfg |
VEPA configuration passed from application
| EthFwIET_Config EthFw_Config::ietCfg |
IET configuration passed from application
| EthFwMon_Cfg EthFw_Config::monitorCfg |
CPSW monitor and recovery configuration
| bool EthFw_Config::isStaticTxChanAllocated |
Flag to let application allocate absolute tx channels
| EthFwTsn_PpsConfig EthFw_Config::ppsConfig |
PPS config params
| bool EthFw_Config::passErrPkt |
Pass packets with errors to host port. Error packets will be passed to the application through handleErrPktFxn() callback of lwIP adaptation layer's output args LwipifEnetAppIf_GetHandleOutArgs.
| EthFwPortMirroring_Cfg* EthFw_Config::portMirCfg |
Port mirroring configuration