MCUSW
Eth Configuration

Introduction

This files defines ETH MCAL configuration structures

Variables

const struct Eth_ConfigType_s EthConfig_0_PC
 Pointer to the generated configuration. 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 Service Ids

The Service Id is used to identify the source of an error when reported through the Det_ReportError() function.

#define ETH_SID_INIT   ((uint8) 0x01U)
 Eth_Init() API Service ID. More...
 
#define ETH_SID_SET_CONTROLLER_MODE   ((uint8) 0x03U)
 Eth_SetControllerMode() API Service ID. More...
 
#define ETH_SID_GET_CONTROLLER_MODE   ((uint8) 0x04U)
 Eth_GetControllerMode() API Service ID. More...
 
#define ETH_SID_WRITE_MII   ((uint8) 0x05U)
 Eth_WriteMii() API Service ID. More...
 
#define ETH_SID_READ_MII   ((uint8) 0x06U)
 Eth_ReadMii() API Service ID. More...
 
#define ETH_SID_GET_PHYS_ADDR   ((uint8) 0x08U)
 Eth_GetPhysAddr() API Service ID. More...
 
#define ETH_SID_PROVIDE_TX_BUFFER   ((uint8) 0x09U)
 Eth_ProvideTxBuffer() API Service ID. More...
 
#define ETH_SID_MAIN_FUNCTION   ((uint8) 0x0AU)
 Eth_MainFunction() API Service ID. More...
 
#define ETH_SID_TRANSMIT   ((uint8) 0x0BU)
 Eth_Transmit() API Service ID. More...
 
#define ETH_SID_RECEIVE   ((uint8) 0x0CU)
 Eth_Receive() API Service ID. More...
 
#define ETH_SID_TX_CONFIRMATION   ((uint8) 0x0EU)
 Eth_TxConfirmation() API Service ID. More...
 
#define ETH_SID_GET_VERSION_INFO   ((uint8) 0x0FU)
 Eth_GetVersionInfo() API Service ID. More...
 
#define ETH_SID_RX_IRQ_HDLR   ((uint8) 0x10U)
 Eth_RxIrqHdlr_<CtrlIdx>() API Service ID. More...
 
#define ETH_SID_TX_IRQ_HDLR   ((uint8) 0x11U)
 Eth_TxIrqHdlr_<CtrlIdx>() API Service ID. More...
 
#define ETH_SID_UPDATE_PHYS_ADDR_FILTER   ((uint8) 0x12U)
 Eth_UpdatePhysAddrFilter() API Service ID. More...
 
#define ETH_SID_SET_PHYS_ADDR   ((uint8) 0x13U)
 Eth_SetPhysAddr() API Service ID. More...
 
#define ETH_SID_GET_COUNTER_VALUES   ((uint8) 0x14U)
 Eth_GetCounterValues() API Service ID. More...
 
#define ETH_SID_GET_RX_STATS   ((uint8) 0x15U)
 Eth_GetRxStats() API Service ID. More...
 
#define ETH_SID_GET_TX_STATS   ((uint8) 0x1CU)
 Eth_GetTxStats() API Service ID. More...
 
#define ETH_SID_GET_TXERROR_COUNTERVALUES   ((uint8) 0x1DU)
 Eth_GetTxErrorCounterValues() API Service ID. More...
 
#define ETH_SID_GET_CURRENT_TIME   ((uint8) 0x16U)
 Eth_GetCurrentTime() API Service ID. More...
 
#define ETH_SID_ENABLE_EGRESS_TIMESTAMP   ((uint8) 0x17U)
 Eth_EnableEgressTimeStamp() API Service ID. More...
 
#define ETH_SID_GET_EGRESS_TIMESTAMP   ((uint8) 0x18U)
 Eth_GetEgressTimeStamp() API Service ID. More...
 
#define ETH_SID_GET_INGRESS_TIMESTAMP   ((uint8) 0x19U)
 Eth_GetIngressTimeStamp() API Service ID. More...
 
#define ETH_SID_SET_CORRECTION_TIME   ((uint8) 0x1AU)
 Eth_SetCorrectionTime() API Service ID. More...
 
#define ETH_SID_SET_GLOBAL_TIME   ((uint8) 0x1BU)
 Eth_SetGlobalTime() API Service ID. More...
 
#define ETH_SID_DISPATCH_VIRTMAC_INIT   ((uint8) 0x1CU)
 Eth_DispatchVirtmacInit() API Service ID. More...
 
#define ETH_SID_DISPATCH_VIRTMAC_DEINIT   ((uint8) 0x1DU)
 Eth_DispatchVirtmacDeinit() API Service ID. More...
 
#define ETH_SID_NOTIFY_VIRTMAC_MSGRECV   ((uint8) 0x1EU)
 Eth_NotifyVirtmacMsgRecv() API Service ID. More...
 
#define ETH_SID_DISPATCH_VIRTMAC_SUBSCRIBE_ALLTRAFFIC   ((uint8) 0x1FU)
 Eth_DispatchVirtmacSubscribeAllTraffic() API Service ID. More...
 
#define ETH_SID_DISPATCH_VIRTMAC_UNSUBSCRIBE_ALLTRAFFIC   ((uint8) 0x20U)
 Eth_DispatchVirtmacUnsubscribeAllTraffic() API Service ID. More...
 
#define ETH_SID_DISPATCH_VIRTMAC_SUBSCRIBE_DSTMAC   ((uint8) 0x21U)
 Eth_DispatchVirtmacSubscribeDstMac() API Service ID. More...
 
#define ETH_SID_DISPATCH_VIRTMAC_UNSUBSCRIBE_DSTMAC   ((uint8) 0x22U)
 Eth_DispatchVirtmacUnsubscribeDstMac() API Service ID. More...
 
#define ETH_SID_DISPATCH_VIRTMAC_IPV4_MACADDR_ASSOCIATE   ((uint8) 0x23U)
 Eth_DispatchVirtmacIPv4MacAddrAssociate() API Service ID. More...
 
#define ETH_SID_DISPATCH_VIRTMAC_IPV4_MACADDR_DISASSOCIATE   ((uint8) 0x24U)
 Eth_DispatchVirtmacIPv4MacAddrDisassociate() API Service ID. More...
 
#define ETH_SID_DISPATCH_VIRTMAC_ADD_UNICAST_MACADDR   ((uint8) 0x25U)
 Eth_DispatchVirtmacAddUnicastMacAddr() API Service ID. More...
 
#define ETH_SID_DISPATCH_VIRTMAC_ADD_MCAST_MACADDR   ((uint8) 0x26U)
 Eth_DispatchVirtmacAddMcastMacAddr() API Service ID. More...
 
#define ETH_SID_DISPATCH_VIRTMAC_DEL_MACADDR   ((uint8) 0x27U)
 Eth_DispatchVirtmacDelMacAddr() API Service ID. More...
 
#define ETH_SID_DISPATCH_VIRTMAC_ADD_VLAN   ((uint8) 0x28U)
 Eth_DispatchVirtmacAddVlan() API Service ID. More...
 
#define ETH_SID_DISPATCH_VIRTMAC_DEL_VLAN   ((uint8) 0x29U)
 Eth_DispatchVirtmacDelVlan() API Service ID. More...
 
#define ETH_SID_SEND_CUSTOM_NOTIFY   ((uint8) 0x2AU)
 Eth_SendCustomNotify() API Service ID. More...
 
#define ETH_SID_TRANSMIT_NO_COPY   ((uint8) 0x2BU)
 Eth_TransmitNoCpy() API Service ID. More...
 
#define ETH_SID_RETRIEVE_RX_READY_QUEUE   ((uint8) 0x2CU)
 Eth_RetrieveRxReadyQ() API Service ID. More...
 
#define ETH_SID_SUBMIT_RX_FREE_QUEUE   ((uint8) 0x2DU)
 Eth_SubmitRxFreeQ() API Service ID. More...
 
#define ETH_SID_SUBMIT_TX_READY_QUEUE   ((uint8) 0x2EU)
 Eth_SubmitTxReadyQ() API Service ID. More...
 
#define ETH_SID_RETRIEVE_TX_DONE_QUEUE   ((uint8) 0x2FU)
 Eth_RetrieveTxDoneQ() API Service ID. More...
 
#define ETH_SID_VIRTMAC_RPC_INIT   ((uint8) 0x2BU)
 Eth_VirtMacRpcInit() API Service ID. More...
 

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

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...
 
#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...
 

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...
 

Macro Definition Documentation

◆ ETH_SID_INIT

#define ETH_SID_INIT   ((uint8) 0x01U)

Eth_Init() API Service ID.

◆ ETH_SID_SET_CONTROLLER_MODE

#define ETH_SID_SET_CONTROLLER_MODE   ((uint8) 0x03U)

Eth_SetControllerMode() API Service ID.

◆ ETH_SID_GET_CONTROLLER_MODE

#define ETH_SID_GET_CONTROLLER_MODE   ((uint8) 0x04U)

Eth_GetControllerMode() API Service ID.

◆ ETH_SID_WRITE_MII

#define ETH_SID_WRITE_MII   ((uint8) 0x05U)

Eth_WriteMii() API Service ID.

◆ ETH_SID_READ_MII

#define ETH_SID_READ_MII   ((uint8) 0x06U)

Eth_ReadMii() API Service ID.

◆ ETH_SID_GET_PHYS_ADDR

#define ETH_SID_GET_PHYS_ADDR   ((uint8) 0x08U)

Eth_GetPhysAddr() API Service ID.

◆ ETH_SID_PROVIDE_TX_BUFFER

#define ETH_SID_PROVIDE_TX_BUFFER   ((uint8) 0x09U)

Eth_ProvideTxBuffer() API Service ID.

◆ ETH_SID_MAIN_FUNCTION

#define ETH_SID_MAIN_FUNCTION   ((uint8) 0x0AU)

Eth_MainFunction() API Service ID.

◆ ETH_SID_TRANSMIT

#define ETH_SID_TRANSMIT   ((uint8) 0x0BU)

Eth_Transmit() API Service ID.

◆ ETH_SID_RECEIVE

#define ETH_SID_RECEIVE   ((uint8) 0x0CU)

Eth_Receive() API Service ID.

◆ ETH_SID_TX_CONFIRMATION

#define ETH_SID_TX_CONFIRMATION   ((uint8) 0x0EU)

Eth_TxConfirmation() API Service ID.

◆ ETH_SID_GET_VERSION_INFO

#define ETH_SID_GET_VERSION_INFO   ((uint8) 0x0FU)

Eth_GetVersionInfo() API Service ID.

◆ ETH_SID_RX_IRQ_HDLR

#define ETH_SID_RX_IRQ_HDLR   ((uint8) 0x10U)

Eth_RxIrqHdlr_<CtrlIdx>() API Service ID.

◆ ETH_SID_TX_IRQ_HDLR

#define ETH_SID_TX_IRQ_HDLR   ((uint8) 0x11U)

Eth_TxIrqHdlr_<CtrlIdx>() API Service ID.

◆ ETH_SID_UPDATE_PHYS_ADDR_FILTER

#define ETH_SID_UPDATE_PHYS_ADDR_FILTER   ((uint8) 0x12U)

Eth_UpdatePhysAddrFilter() API Service ID.

◆ ETH_SID_SET_PHYS_ADDR

#define ETH_SID_SET_PHYS_ADDR   ((uint8) 0x13U)

Eth_SetPhysAddr() API Service ID.

◆ ETH_SID_GET_COUNTER_VALUES

#define ETH_SID_GET_COUNTER_VALUES   ((uint8) 0x14U)

Eth_GetCounterValues() API Service ID.

◆ ETH_SID_GET_RX_STATS

#define ETH_SID_GET_RX_STATS   ((uint8) 0x15U)

Eth_GetRxStats() API Service ID.

◆ ETH_SID_GET_TX_STATS

#define ETH_SID_GET_TX_STATS   ((uint8) 0x1CU)

Eth_GetTxStats() API Service ID.

◆ ETH_SID_GET_TXERROR_COUNTERVALUES

#define ETH_SID_GET_TXERROR_COUNTERVALUES   ((uint8) 0x1DU)

◆ ETH_SID_GET_CURRENT_TIME

#define ETH_SID_GET_CURRENT_TIME   ((uint8) 0x16U)

Eth_GetCurrentTime() API Service ID.

◆ ETH_SID_ENABLE_EGRESS_TIMESTAMP

#define ETH_SID_ENABLE_EGRESS_TIMESTAMP   ((uint8) 0x17U)

Eth_EnableEgressTimeStamp() API Service ID.

◆ ETH_SID_GET_EGRESS_TIMESTAMP

#define ETH_SID_GET_EGRESS_TIMESTAMP   ((uint8) 0x18U)

Eth_GetEgressTimeStamp() API Service ID.

◆ ETH_SID_GET_INGRESS_TIMESTAMP

#define ETH_SID_GET_INGRESS_TIMESTAMP   ((uint8) 0x19U)

Eth_GetIngressTimeStamp() API Service ID.

◆ ETH_SID_SET_CORRECTION_TIME

#define ETH_SID_SET_CORRECTION_TIME   ((uint8) 0x1AU)

Eth_SetCorrectionTime() API Service ID.

◆ ETH_SID_SET_GLOBAL_TIME

#define ETH_SID_SET_GLOBAL_TIME   ((uint8) 0x1BU)

Eth_SetGlobalTime() API Service ID.

◆ ETH_SID_DISPATCH_VIRTMAC_INIT

#define ETH_SID_DISPATCH_VIRTMAC_INIT   ((uint8) 0x1CU)

Eth_DispatchVirtmacInit() API Service ID.

◆ ETH_SID_DISPATCH_VIRTMAC_DEINIT

#define ETH_SID_DISPATCH_VIRTMAC_DEINIT   ((uint8) 0x1DU)

Eth_DispatchVirtmacDeinit() API Service ID.

◆ ETH_SID_NOTIFY_VIRTMAC_MSGRECV

#define ETH_SID_NOTIFY_VIRTMAC_MSGRECV   ((uint8) 0x1EU)

Eth_NotifyVirtmacMsgRecv() API Service ID.

◆ ETH_SID_DISPATCH_VIRTMAC_SUBSCRIBE_ALLTRAFFIC

#define ETH_SID_DISPATCH_VIRTMAC_SUBSCRIBE_ALLTRAFFIC   ((uint8) 0x1FU)

◆ ETH_SID_DISPATCH_VIRTMAC_UNSUBSCRIBE_ALLTRAFFIC

#define ETH_SID_DISPATCH_VIRTMAC_UNSUBSCRIBE_ALLTRAFFIC   ((uint8) 0x20U)

◆ ETH_SID_DISPATCH_VIRTMAC_SUBSCRIBE_DSTMAC

#define ETH_SID_DISPATCH_VIRTMAC_SUBSCRIBE_DSTMAC   ((uint8) 0x21U)

◆ ETH_SID_DISPATCH_VIRTMAC_UNSUBSCRIBE_DSTMAC

#define ETH_SID_DISPATCH_VIRTMAC_UNSUBSCRIBE_DSTMAC   ((uint8) 0x22U)

◆ ETH_SID_DISPATCH_VIRTMAC_IPV4_MACADDR_ASSOCIATE

#define ETH_SID_DISPATCH_VIRTMAC_IPV4_MACADDR_ASSOCIATE   ((uint8) 0x23U)

Eth_DispatchVirtmacIPv4MacAddrAssociate() API Service ID.

◆ ETH_SID_DISPATCH_VIRTMAC_IPV4_MACADDR_DISASSOCIATE

#define ETH_SID_DISPATCH_VIRTMAC_IPV4_MACADDR_DISASSOCIATE   ((uint8) 0x24U)

Eth_DispatchVirtmacIPv4MacAddrDisassociate() API Service ID.

◆ ETH_SID_DISPATCH_VIRTMAC_ADD_UNICAST_MACADDR

#define ETH_SID_DISPATCH_VIRTMAC_ADD_UNICAST_MACADDR   ((uint8) 0x25U)

Eth_DispatchVirtmacAddUnicastMacAddr() API Service ID.

◆ ETH_SID_DISPATCH_VIRTMAC_ADD_MCAST_MACADDR

#define ETH_SID_DISPATCH_VIRTMAC_ADD_MCAST_MACADDR   ((uint8) 0x26U)

Eth_DispatchVirtmacAddMcastMacAddr() API Service ID.

◆ ETH_SID_DISPATCH_VIRTMAC_DEL_MACADDR

#define ETH_SID_DISPATCH_VIRTMAC_DEL_MACADDR   ((uint8) 0x27U)

Eth_DispatchVirtmacDelMacAddr() API Service ID.

◆ ETH_SID_DISPATCH_VIRTMAC_ADD_VLAN

#define ETH_SID_DISPATCH_VIRTMAC_ADD_VLAN   ((uint8) 0x28U)

◆ ETH_SID_DISPATCH_VIRTMAC_DEL_VLAN

#define ETH_SID_DISPATCH_VIRTMAC_DEL_VLAN   ((uint8) 0x29U)

◆ ETH_SID_SEND_CUSTOM_NOTIFY

#define ETH_SID_SEND_CUSTOM_NOTIFY   ((uint8) 0x2AU)

Eth_SendCustomNotify() API Service ID.

◆ ETH_SID_TRANSMIT_NO_COPY

#define ETH_SID_TRANSMIT_NO_COPY   ((uint8) 0x2BU)

Eth_TransmitNoCpy() API Service ID.

◆ ETH_SID_RETRIEVE_RX_READY_QUEUE

#define ETH_SID_RETRIEVE_RX_READY_QUEUE   ((uint8) 0x2CU)

Eth_RetrieveRxReadyQ() API Service ID.

◆ ETH_SID_SUBMIT_RX_FREE_QUEUE

#define ETH_SID_SUBMIT_RX_FREE_QUEUE   ((uint8) 0x2DU)

Eth_SubmitRxFreeQ() API Service ID.

◆ ETH_SID_SUBMIT_TX_READY_QUEUE

#define ETH_SID_SUBMIT_TX_READY_QUEUE   ((uint8) 0x2EU)

Eth_SubmitTxReadyQ() API Service ID.

◆ ETH_SID_RETRIEVE_TX_DONE_QUEUE

#define ETH_SID_RETRIEVE_TX_DONE_QUEUE   ((uint8) 0x2FU)

Eth_RetrieveTxDoneQ() API Service ID.

◆ ETH_SID_VIRTMAC_RPC_INIT

#define ETH_SID_VIRTMAC_RPC_INIT   ((uint8) 0x2BU)

Eth_VirtMacRpcInit() API Service ID.

◆ ETH_PRE_COMPILE_VARIANT

#define ETH_PRE_COMPILE_VARIANT   (STD_ON)

ETH Build Variant STD_ON for VariantPreCompile / STD_OFF for VariantPostBuild.

◆ ETH_VERSION_INFO_API

#define ETH_VERSION_INFO_API   (STD_ON)

Enable/disable SPI get version info API.

◆ ETH_GLOBALTIMESUPPORT_API

#define ETH_GLOBALTIMESUPPORT_API   (STD_OFF)

Enable/disable Eth time sync related API.

◆ ETH_DEV_ERROR_DETECT

#define ETH_DEV_ERROR_DETECT   (STD_ON)

Enable/Disable Development Error Detection.

◆ ETH_GET_COUNTER_VALUES_API

#define ETH_GET_COUNTER_VALUES_API   (STD_ON)

Enable/disable Eth get counter values API.

◆ ETH_GET_RX_STATS_API

#define ETH_GET_RX_STATS_API   (STD_ON)

Enable/disable Eth get RX stats count API.

◆ ETH_GET_TX_STATS_API

#define ETH_GET_TX_STATS_API   (STD_ON)

Enable/disable Eth get TX stats count API.

◆ ETH_GET_TX_ERROR_COUNTERSVALUES_API

#define ETH_GET_TX_ERROR_COUNTERSVALUES_API   (STD_ON)

Enable/disable Eth get TX error stats count API.

◆ ETH_ZERO_COPY_TX

#define ETH_ZERO_COPY_TX   (STD_OFF)

Enable/disable Eth zero-copy transmit API.

◆ ETH_USE_Q_APIS

#define ETH_USE_Q_APIS   (STD_OFF)

Enable/disable Eth queue-based APIs.

◆ ETH_ENABLE_MII_API

#define ETH_ENABLE_MII_API   (STD_ON)

Enable/disable Eth MII related API.

◆ ETH_UPDATE_PHYS_ADDR_FILTER_API

#define ETH_UPDATE_PHYS_ADDR_FILTER_API   (STD_ON)

Enable/disable optional API Eth_UpdatePhysAddrFilter.

◆ ETH_VIRTUALMAC_NOTIFYMSGRECEIVED_API

#define ETH_VIRTUALMAC_NOTIFYMSGRECEIVED_API   (STD_OFF)

Enable/disable optional API Eth_NotifyVirtmacMsgReceived.

◆ ETH_VIRTUALMAC_SUBSCRIBEALLTRAFFIC_API

#define ETH_VIRTUALMAC_SUBSCRIBEALLTRAFFIC_API   (STD_OFF)

Enable/disable optional API Eth_DispatchVirtmacSubscribeAllTraffic.

◆ ETH_VIRTUALMAC_UNSUBSCRIBEALLTRAFFIC_API

#define ETH_VIRTUALMAC_UNSUBSCRIBEALLTRAFFIC_API   (STD_OFF)

Enable/disable optional API Eth_DispatchVirtmacUnsubscribeAllTraffic.

◆ ETH_VIRTUALMAC_SUBSCRIBEDSTMAC_API

#define ETH_VIRTUALMAC_SUBSCRIBEDSTMAC_API   (STD_OFF)

Enable/disable optional API Eth_DispatchVirtmacSubscribeDstMac.

◆ ETH_VIRTUALMAC_UNSUBSCRIBEDSTMAC_API

#define ETH_VIRTUALMAC_UNSUBSCRIBEDSTMAC_API   (STD_OFF)

Enable/disable optional API Eth_DispatchVirtmacUnsubscribeDstMac.

◆ ETH_VIRTUALMAC_ASSOCIATEIPV4MACADDR_API

#define ETH_VIRTUALMAC_ASSOCIATEIPV4MACADDR_API   (STD_OFF)

Enable/disable optional API Eth_DispatchVirtmacAssociateIPv4Macaddr.

◆ ETH_VIRTUALMAC_DISASSOCIATEIPV4MACADDR_API

#define ETH_VIRTUALMAC_DISASSOCIATEIPV4MACADDR_API   (STD_OFF)

Enable/disable optional API Eth_DispatchVirtmacDisassociateIPv4Macaddr.

◆ ETH_VIRTUALMAC_ADD_UNICAST_MACADDR_API

#define ETH_VIRTUALMAC_ADD_UNICAST_MACADDR_API   (STD_OFF)

Enable/disable optional API Eth_DispatchVirtmacAddUnicastAddr.

◆ ETH_VIRTUALMAC_ADD_MCAST_MACADDR_API

#define ETH_VIRTUALMAC_ADD_MCAST_MACADDR_API   (STD_OFF)

Enable/disable optional API Eth_DispatchVirtmacAddMcastAddr.

◆ ETH_VIRTUALMAC_DEL_MACADDR_API

#define ETH_VIRTUALMAC_DEL_MACADDR_API   (STD_OFF)

Enable/disable optional API Eth_DispatchVirtmacDelAddr.

◆ ETH_VIRTUALMAC_SEND_CUSTOM_NOTIFY_API

#define ETH_VIRTUALMAC_SEND_CUSTOM_NOTIFY_API   (STD_OFF)

Enable/disable optional API Eth_SendCustomNotify.

◆ ETH_VIRTUALMAC_ADD_VLAN_API

#define ETH_VIRTUALMAC_ADD_VLAN_API   (STD_OFF)

Enable/disable optional API Eth_DispatchVirtmacAddVlan.

◆ ETH_VIRTUALMAC_DEL_VLAN_API

#define ETH_VIRTUALMAC_DEL_VLAN_API   (STD_OFF)

Enable/disable optional API Eth_DispatchVirtmacDelVlan.

◆ ETH_ENABLE_TX_INTERRUPT

#define ETH_ENABLE_TX_INTERRUPT   (STD_ON)

Enable/disable transmit interrupt.

◆ ETH_ENABLE_RX_INTERRUPT

#define ETH_ENABLE_RX_INTERRUPT   (STD_ON)

Enable/disable receive interrupt.

◆ ETH_NUM_TX_BUFFERS

#define ETH_NUM_TX_BUFFERS   (128U)

Number of TX buffers.

◆ ETH_NUM_RX_BUFFERS

#define ETH_NUM_RX_BUFFERS   (128U)

Number of RX buffers.

◆ ETH_TX_BUF_LEN_BYTE

#define ETH_TX_BUF_LEN_BYTE   (1522U)

Limits the maximum transmit buffer length (frame length) in bytes.

◆ ETH_RX_BUF_LEN_BYTE

#define ETH_RX_BUF_LEN_BYTE   (1522U)

Limits the maximum receive buffer length (frame length) in bytes.

◆ ETH_DESC_IN_CACHED_MEMORY

#define ETH_DESC_IN_CACHED_MEMORY   (STD_ON)

Enable/Disable DMA descriptors in cached memory.

◆ ETH_RING_IN_CACHED_MEMORY

#define ETH_RING_IN_CACHED_MEMORY   (STD_ON)

Enable/Disable DMA rings in cached memory.

◆ ETH_ISR_TYPE

#define ETH_ISR_TYPE   (ETH_ISR_CAT2)

ISR type.

◆ ETH_USE_DEFAULT_MAC_ADDR

#define ETH_USE_DEFAULT_MAC_ADDR   (STD_ON)

◆ ETH_OS_COUNTER_ID

#define ETH_OS_COUNTER_ID   ((CounterType)OsCounter_0)

Counter ID for counter used to count wait ticks.

◆ ETH_TIMEOUT_DURATION

#define ETH_TIMEOUT_DURATION   (3200U)

Timeout value for a wait (busy wait)

◆ ETH_CTRL_PHY_ADDRESS

#define ETH_CTRL_PHY_ADDRESS   { 0xaaU,0xbbU,0xccU,0xddU,0xeeU,0xffU,}

MAC address of the controller in network byte order.

◆ ETH_VIRTUALMAC_SUPPORT

#define ETH_VIRTUALMAC_SUPPORT   (STD_OFF)

Enable/disable Virtual MAC support for CPSW9G.

◆ ETH_VIRTUALMAC_FWINFO_TIMEOUT

#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.

◆ DemConf_DemEventParameter_ETH_DEM_NO_EVENT

#define DemConf_DemEventParameter_ETH_DEM_NO_EVENT   (0xFFFFU)

◆ ETH_DEM_NO_EVENT

#define ETH_DEM_NO_EVENT   DemConf_DemEventParameter_ETH_DEM_NO_EVENT

◆ ETH_E_HARDWARE_ERROR

#define ETH_E_HARDWARE_ERROR   (ETH_DEM_NO_EVENT)

Hardware failed.

◆ ETH_E_LATECOLLISION

#define ETH_E_LATECOLLISION   (ETH_DEM_NO_EVENT)

Late collision.

◆ ETH_E_MULTIPLECOLLISION

#define ETH_E_MULTIPLECOLLISION   (ETH_DEM_NO_EVENT)

Multiple collision.

◆ ETH_E_SINGLECOLLISION

#define ETH_E_SINGLECOLLISION   (ETH_DEM_NO_EVENT)

Single collision.

◆ ETH_E_ALIGNMENT

#define ETH_E_ALIGNMENT   (ETH_DEM_NO_EVENT)

Alignment error.

◆ ETH_E_OVERSIZEFRAME

#define ETH_E_OVERSIZEFRAME   (ETH_DEM_NO_EVENT)

Oversize Frame.

◆ ETH_E_UNDERSIZEFRAME

#define ETH_E_UNDERSIZEFRAME   (ETH_DEM_NO_EVENT)

Undersize frame.

◆ ETH_E_CRC

#define ETH_E_CRC   (ETH_DEM_NO_EVENT)

CRC Error.

◆ ETH_E_RX_FRAMES_LOST

#define ETH_E_RX_FRAMES_LOST   (ETH_DEM_NO_EVENT)

Received Frames lost.

◆ ETH_E_ACCESS

#define ETH_E_ACCESS   (ETH_DEM_NO_EVENT)

Hardware failed.

◆ ETH_E_TX_INTERNAL

#define ETH_E_TX_INTERNAL   (ETH_DEM_NO_EVENT)

TX packet descriptor returned by UDMA is corrupted. Invalid data pointer in descriptor.

◆ ETH_DRV_CONFIG_0

#define ETH_DRV_CONFIG_0   ((const Eth_ConfigType *) &EthConfig_0_PC)

Function Documentation

◆ EthApp_wbInvCache()

void EthApp_wbInvCache ( uint8 *  buf,
uint16  len 
)

Function to write-back and invalidate cache.

◆ EthApp_wbCache()

void EthApp_wbCache ( uint8 *  buf,
uint16  len 
)

Function to write-back cache.

◆ EthApp_invCache()

void EthApp_invCache ( uint8 *  buf,
uint16  len 
)

Function to invalidate cache.

Variable Documentation

◆ EthConfig_0_PC

const struct Eth_ConfigType_s EthConfig_0_PC

Pointer to the generated configuration.

<Configuration of the driver