ETHFW API Guide
EthFw_Config Struct Reference

Detailed Description

Ethernet Firmware configuration.

Ethernet Firmware configuration parameters.

Data Fields

Cpsw_Cfg cpswCfg
 
Enet_MacPort * ports
 
uint32_t numPorts
 
EthFwVirtPort_VirtPortCfgvirtPortCfg
 
uint32_t numVirtPorts
 
EthFwVlan_VlanCfgvlanCfg
 
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_CfgportMirCfg
 

Field Documentation

◆ cpswCfg

Cpsw_Cfg EthFw_Config::cpswCfg

CPSW configuration

◆ ports

Enet_MacPort* EthFw_Config::ports

MAC ports owned by EthFw. It must be provided as an array of MAC port ids

◆ numPorts

uint32_t EthFw_Config::numPorts

Number of MAC ports owned by EthFw, that is, the size of EthFw_Config::ports array

◆ virtPortCfg

EthFwVirtPort_VirtPortCfg* EthFw_Config::virtPortCfg

Virtual ports accessed via remote_device framework (A72 Linux, A72 QNX, RTOS cores)

◆ numVirtPorts

uint32_t EthFw_Config::numVirtPorts

Number of virtual ports accessed via remote_device framework

◆ vlanCfg

EthFwVlan_VlanCfg* EthFw_Config::vlanCfg

VLAN configuration

◆ numStaticVlans

uint32_t EthFw_Config::numStaticVlans

Number of static VLANs configured.

◆ defaultPortMask

uint32_t EthFw_Config::defaultPortMask

Default port mask for all ports in switch mode

◆ defaultVirtPortMask

uint32_t EthFw_Config::defaultVirtPortMask

Default virtual port mask for all ports in switch mode

◆ dVlanSwtFwdEn

bool EthFw_Config::dVlanSwtFwdEn

Whether forwarding to all Switch ports for dynamic VLANs is enabled

◆ mcastCfg

EthFwMcast_Cfg EthFw_Config::mcastCfg

Multicast configuration.

◆ dfltVlanIdMacOnlyPorts

uint16_t EthFw_Config::dfltVlanIdMacOnlyPorts

Default VLAN id to be used for MAC ports configured in MAC-only mode

◆ dfltVlanIdSwitchPorts

uint16_t EthFw_Config::dfltVlanIdSwitchPorts

Default VLAN id to be used for MAC ports configured in switch mode (non MAC-only)

◆ setPortCfg

EthFw_setPortCfg EthFw_Config::setPortCfg

Callback function for application to set port link parameters (MII, PHY, speed, duplexity, etc)

◆ configPtpCb

EthFw_configPtpCb EthFw_Config::configPtpCb

Callback for setting gPTP config parameters from the application

◆ configPtpCbArg

void* EthFw_Config::configPtpCbArg

Argument to be passed to gPTP config callback function

◆ vepaCfg

EthFwVepa_Cfg EthFw_Config::vepaCfg

VEPA configuration passed from application

◆ ietCfg

EthFwIET_Config EthFw_Config::ietCfg

IET configuration passed from application

◆ monitorCfg

EthFwMon_Cfg EthFw_Config::monitorCfg

CPSW monitor and recovery configuration

◆ isStaticTxChanAllocated

bool EthFw_Config::isStaticTxChanAllocated

Flag to let application allocate absolute tx channels

◆ ppsConfig

EthFwTsn_PpsConfig EthFw_Config::ppsConfig

PPS config params

◆ passErrPkt

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.

◆ portMirCfg

EthFwPortMirroring_Cfg* EthFw_Config::portMirCfg

Port mirroring configuration