MCUSW
Eth_Cfg.h File Reference

Introduction

This file contains generated configuration for ETH MCAL driver.

Go to the source code of this file.

Pre-compile switches for MAC addr configuration, ALE conf. etc.

#define ETH_USE_DEFAULT_MAC_ADDR   (STD_ON)
 
#define ETH_OS_COUNTER_ID   ((CounterType)OsCounter_0)
 Counter ID for counter used to count wait ticks. More...
 
#define ETH_TIMEOUT_DURATION   (3200U)
 Timeout value for a wait (busy wait) More...
 
#define ETH_CTRL_PHY_ADDRESS   { 0xaaU,0xbbU,0xccU,0xddU,0xeeU,0xffU,}
 MAC address of the controller in network byte order. More...
 
#define ETH_VIRTUALMAC_SUPPORT   (STD_OFF)
 Enable/disable Virtual MAC support for CPSW9G. More...
 
#define ETH_VIRTUALMAC_FWINFO_TIMEOUT   (10U)
 Timeout value for Firmware Attach msg received from server Units of timeout is in terms of number of invocations of Eth_MainFunction. More...
 
void EthApp_wbInvCache (uint8 *buf, uint16 len)
 Function to write-back and invalidate cache. More...
 
void EthApp_wbCache (uint8 *buf, uint16 len)
 Function to write-back cache. More...
 
void EthApp_invCache (uint8 *buf, uint16 len)
 Function to invalidate cache. More...
 

Macros

#define ETH_PRE_COMPILE_VARIANT   (STD_ON)
 ETH Build Variant STD_ON for VariantPreCompile / STD_OFF for VariantPostBuild. More...
 
#define ETH_VERSION_INFO_API   (STD_ON)
 Enable/disable SPI get version info API. More...
 
#define ETH_GLOBALTIMESUPPORT_API   (STD_OFF)
 Enable/disable Eth time sync related API. More...
 
#define ETH_DEV_ERROR_DETECT   (STD_ON)
 Enable/Disable Development Error Detection. More...
 
#define ETH_GET_COUNTER_VALUES_API   (STD_ON)
 Enable/disable Eth get counter values API. More...
 
#define ETH_GET_RX_STATS_API   (STD_ON)
 Enable/disable Eth get RX stats count API. More...
 
#define ETH_GET_TX_STATS_API   (STD_ON)
 Enable/disable Eth get TX stats count API. More...
 
#define ETH_GET_TX_ERROR_COUNTERSVALUES_API   (STD_ON)
 Enable/disable Eth get TX error stats count API. More...
 
#define ETH_ZERO_COPY_TX   (STD_OFF)
 Enable/disable Eth zero-copy transmit API. More...
 
#define ETH_USE_Q_APIS   (STD_OFF)
 Enable/disable Eth queue-based APIs. More...
 
#define ETH_ENABLE_MII_API   (STD_ON)
 Enable/disable Eth MII related API. More...
 
#define ETH_UPDATE_PHYS_ADDR_FILTER_API   (STD_ON)
 Enable/disable optional API Eth_UpdatePhysAddrFilter. More...
 
#define ETH_VIRTUALMAC_NOTIFYMSGRECEIVED_API   (STD_OFF)
 Enable/disable optional API Eth_NotifyVirtmacMsgReceived. More...
 
#define ETH_VIRTUALMAC_SUBSCRIBEALLTRAFFIC_API   (STD_OFF)
 Enable/disable optional API Eth_DispatchVirtmacSubscribeAllTraffic. More...
 
#define ETH_VIRTUALMAC_UNSUBSCRIBEALLTRAFFIC_API   (STD_OFF)
 Enable/disable optional API Eth_DispatchVirtmacUnsubscribeAllTraffic. More...
 
#define ETH_VIRTUALMAC_SUBSCRIBEDSTMAC_API   (STD_OFF)
 Enable/disable optional API Eth_DispatchVirtmacSubscribeDstMac. More...
 
#define ETH_VIRTUALMAC_UNSUBSCRIBEDSTMAC_API   (STD_OFF)
 Enable/disable optional API Eth_DispatchVirtmacUnsubscribeDstMac. More...
 
#define ETH_VIRTUALMAC_ASSOCIATEIPV4MACADDR_API   (STD_OFF)
 Enable/disable optional API Eth_DispatchVirtmacAssociateIPv4Macaddr. More...
 
#define ETH_VIRTUALMAC_DISASSOCIATEIPV4MACADDR_API   (STD_OFF)
 Enable/disable optional API Eth_DispatchVirtmacDisassociateIPv4Macaddr. More...
 
#define ETH_VIRTUALMAC_ADD_UNICAST_MACADDR_API   (STD_OFF)
 Enable/disable optional API Eth_DispatchVirtmacAddUnicastAddr. More...
 
#define ETH_VIRTUALMAC_ADD_MCAST_MACADDR_API   (STD_OFF)
 Enable/disable optional API Eth_DispatchVirtmacAddMcastAddr. More...
 
#define ETH_VIRTUALMAC_DEL_MACADDR_API   (STD_OFF)
 Enable/disable optional API Eth_DispatchVirtmacDelAddr. More...
 
#define ETH_VIRTUALMAC_SEND_CUSTOM_NOTIFY_API   (STD_OFF)
 Enable/disable optional API Eth_SendCustomNotify. More...
 
#define ETH_VIRTUALMAC_ADD_VLAN_API   (STD_OFF)
 Enable/disable optional API Eth_DispatchVirtmacAddVlan. More...
 
#define ETH_VIRTUALMAC_DEL_VLAN_API   (STD_OFF)
 Enable/disable optional API Eth_DispatchVirtmacDelVlan. More...
 
#define ETH_ENABLE_TX_INTERRUPT   (STD_ON)
 Enable/disable transmit interrupt. More...
 
#define ETH_ENABLE_RX_INTERRUPT   (STD_ON)
 Enable/disable receive interrupt. More...
 
#define ETH_NUM_TX_BUFFERS   (128U)
 Number of TX buffers. More...
 
#define ETH_NUM_RX_BUFFERS   (128U)
 Number of RX buffers. More...
 
#define ETH_TX_BUF_LEN_BYTE   (1522U)
 Limits the maximum transmit buffer length (frame length) in bytes. More...
 
#define ETH_RX_BUF_LEN_BYTE   (1522U)
 Limits the maximum receive buffer length (frame length) in bytes. More...
 
#define ETH_DESC_IN_CACHED_MEMORY   (STD_ON)
 Enable/Disable DMA descriptors in cached memory. More...
 
#define ETH_RING_IN_CACHED_MEMORY   (STD_ON)
 Enable/Disable DMA rings in cached memory. More...
 
#define ETH_ISR_TYPE   (ETH_ISR_CAT2)
 ISR type. More...
 
#define ETH_DRV_CONFIG_0   ((const Eth_ConfigType *) &EthConfig_0_PC)
 
ETH DEM Error codes to report

Pre-compile switches for enabling/disabling DEM events

#define DemConf_DemEventParameter_ETH_DEM_NO_EVENT   (0xFFFFU)
 
#define ETH_DEM_NO_EVENT   DemConf_DemEventParameter_ETH_DEM_NO_EVENT
 
#define ETH_E_HARDWARE_ERROR   (ETH_DEM_NO_EVENT)
 Hardware failed. More...
 
#define ETH_E_LATECOLLISION   (ETH_DEM_NO_EVENT)
 Late collision. More...
 
#define ETH_E_MULTIPLECOLLISION   (ETH_DEM_NO_EVENT)
 Multiple collision. More...
 
#define ETH_E_SINGLECOLLISION   (ETH_DEM_NO_EVENT)
 Single collision. More...
 
#define ETH_E_ALIGNMENT   (ETH_DEM_NO_EVENT)
 Alignment error. More...
 
#define ETH_E_OVERSIZEFRAME   (ETH_DEM_NO_EVENT)
 Oversize Frame. More...
 
#define ETH_E_UNDERSIZEFRAME   (ETH_DEM_NO_EVENT)
 Undersize frame. More...
 
#define ETH_E_CRC   (ETH_DEM_NO_EVENT)
 CRC Error. More...
 
#define ETH_E_RX_FRAMES_LOST   (ETH_DEM_NO_EVENT)
 Received Frames lost. More...
 
#define ETH_E_ACCESS   (ETH_DEM_NO_EVENT)
 Hardware failed. More...
 
#define ETH_E_TX_INTERNAL   (ETH_DEM_NO_EVENT)
 TX packet descriptor returned by UDMA is corrupted. Invalid data pointer in descriptor. More...
 

Variables

const struct Eth_ConfigType_s EthConfig_0_PC
 Pointer to the generated configuration. More...