MCUSW
|
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) |
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... | |
#define ETH_SID_INIT ((uint8) 0x01U) |
Eth_Init() API Service ID.
#define ETH_SID_SET_CONTROLLER_MODE ((uint8) 0x03U) |
Eth_SetControllerMode() API Service ID.
#define ETH_SID_GET_CONTROLLER_MODE ((uint8) 0x04U) |
Eth_GetControllerMode() API Service ID.
#define ETH_SID_WRITE_MII ((uint8) 0x05U) |
Eth_WriteMii() API Service ID.
#define ETH_SID_READ_MII ((uint8) 0x06U) |
Eth_ReadMii() API Service ID.
#define ETH_SID_GET_PHYS_ADDR ((uint8) 0x08U) |
Eth_GetPhysAddr() API Service ID.
#define ETH_SID_PROVIDE_TX_BUFFER ((uint8) 0x09U) |
Eth_ProvideTxBuffer() API Service ID.
#define ETH_SID_MAIN_FUNCTION ((uint8) 0x0AU) |
Eth_MainFunction() API Service ID.
#define ETH_SID_TRANSMIT ((uint8) 0x0BU) |
Eth_Transmit() API Service ID.
#define ETH_SID_RECEIVE ((uint8) 0x0CU) |
Eth_Receive() API Service ID.
#define ETH_SID_TX_CONFIRMATION ((uint8) 0x0EU) |
Eth_TxConfirmation() API Service ID.
#define ETH_SID_GET_VERSION_INFO ((uint8) 0x0FU) |
Eth_GetVersionInfo() API Service ID.
#define ETH_SID_RX_IRQ_HDLR ((uint8) 0x10U) |
Eth_RxIrqHdlr_<CtrlIdx>() API Service ID.
#define ETH_SID_TX_IRQ_HDLR ((uint8) 0x11U) |
Eth_TxIrqHdlr_<CtrlIdx>() API Service ID.
#define ETH_SID_UPDATE_PHYS_ADDR_FILTER ((uint8) 0x12U) |
Eth_UpdatePhysAddrFilter() API Service ID.
#define ETH_SID_SET_PHYS_ADDR ((uint8) 0x13U) |
Eth_SetPhysAddr() API Service ID.
#define ETH_SID_GET_COUNTER_VALUES ((uint8) 0x14U) |
Eth_GetCounterValues() API Service ID.
#define ETH_SID_GET_RX_STATS ((uint8) 0x15U) |
Eth_GetRxStats() API Service ID.
#define ETH_SID_GET_TX_STATS ((uint8) 0x1CU) |
Eth_GetTxStats() API Service ID.
#define ETH_SID_GET_TXERROR_COUNTERVALUES ((uint8) 0x1DU) |
Eth_GetTxErrorCounterValues() API Service ID.
#define ETH_SID_GET_CURRENT_TIME ((uint8) 0x16U) |
Eth_GetCurrentTime() API Service ID.
#define ETH_SID_ENABLE_EGRESS_TIMESTAMP ((uint8) 0x17U) |
Eth_EnableEgressTimeStamp() API Service ID.
#define ETH_SID_GET_EGRESS_TIMESTAMP ((uint8) 0x18U) |
Eth_GetEgressTimeStamp() API Service ID.
#define ETH_SID_GET_INGRESS_TIMESTAMP ((uint8) 0x19U) |
Eth_GetIngressTimeStamp() API Service ID.
#define ETH_SID_SET_CORRECTION_TIME ((uint8) 0x1AU) |
Eth_SetCorrectionTime() API Service ID.
#define ETH_SID_SET_GLOBAL_TIME ((uint8) 0x1BU) |
Eth_SetGlobalTime() API Service ID.
#define ETH_SID_DISPATCH_VIRTMAC_INIT ((uint8) 0x1CU) |
Eth_DispatchVirtmacInit() API Service ID.
#define ETH_SID_DISPATCH_VIRTMAC_DEINIT ((uint8) 0x1DU) |
Eth_DispatchVirtmacDeinit() API Service ID.
#define ETH_SID_NOTIFY_VIRTMAC_MSGRECV ((uint8) 0x1EU) |
Eth_NotifyVirtmacMsgRecv() API Service ID.
#define ETH_SID_DISPATCH_VIRTMAC_SUBSCRIBE_ALLTRAFFIC ((uint8) 0x1FU) |
Eth_DispatchVirtmacSubscribeAllTraffic() API Service ID.
#define ETH_SID_DISPATCH_VIRTMAC_UNSUBSCRIBE_ALLTRAFFIC ((uint8) 0x20U) |
Eth_DispatchVirtmacUnsubscribeAllTraffic() API Service ID.
#define ETH_SID_DISPATCH_VIRTMAC_SUBSCRIBE_DSTMAC ((uint8) 0x21U) |
Eth_DispatchVirtmacSubscribeDstMac() API Service ID.
#define ETH_SID_DISPATCH_VIRTMAC_UNSUBSCRIBE_DSTMAC ((uint8) 0x22U) |
Eth_DispatchVirtmacUnsubscribeDstMac() API Service ID.
#define ETH_SID_DISPATCH_VIRTMAC_IPV4_MACADDR_ASSOCIATE ((uint8) 0x23U) |
Eth_DispatchVirtmacIPv4MacAddrAssociate() API Service ID.
#define ETH_SID_DISPATCH_VIRTMAC_IPV4_MACADDR_DISASSOCIATE ((uint8) 0x24U) |
Eth_DispatchVirtmacIPv4MacAddrDisassociate() API Service ID.
#define ETH_SID_DISPATCH_VIRTMAC_ADD_UNICAST_MACADDR ((uint8) 0x25U) |
Eth_DispatchVirtmacAddUnicastMacAddr() API Service ID.
#define ETH_SID_DISPATCH_VIRTMAC_ADD_MCAST_MACADDR ((uint8) 0x26U) |
Eth_DispatchVirtmacAddMcastMacAddr() API Service ID.
#define ETH_SID_DISPATCH_VIRTMAC_DEL_MACADDR ((uint8) 0x27U) |
Eth_DispatchVirtmacDelMacAddr() API Service ID.
#define ETH_SID_DISPATCH_VIRTMAC_ADD_VLAN ((uint8) 0x28U) |
Eth_DispatchVirtmacAddVlan() API Service ID.
#define ETH_SID_DISPATCH_VIRTMAC_DEL_VLAN ((uint8) 0x29U) |
Eth_DispatchVirtmacDelVlan() API Service ID.
#define ETH_SID_SEND_CUSTOM_NOTIFY ((uint8) 0x2AU) |
Eth_SendCustomNotify() API Service ID.
#define ETH_SID_TRANSMIT_NO_COPY ((uint8) 0x2BU) |
Eth_TransmitNoCpy() API Service ID.
#define ETH_SID_RETRIEVE_RX_READY_QUEUE ((uint8) 0x2CU) |
Eth_RetrieveRxReadyQ() API Service ID.
#define ETH_SID_SUBMIT_RX_FREE_QUEUE ((uint8) 0x2DU) |
Eth_SubmitRxFreeQ() API Service ID.
#define ETH_SID_SUBMIT_TX_READY_QUEUE ((uint8) 0x2EU) |
Eth_SubmitTxReadyQ() API Service ID.
#define ETH_SID_RETRIEVE_TX_DONE_QUEUE ((uint8) 0x2FU) |
Eth_RetrieveTxDoneQ() API Service ID.
#define ETH_SID_VIRTMAC_RPC_INIT ((uint8) 0x2BU) |
Eth_VirtMacRpcInit() API Service ID.
#define ETH_PRE_COMPILE_VARIANT (STD_ON) |
ETH Build Variant STD_ON for VariantPreCompile / STD_OFF for VariantPostBuild.
#define ETH_VERSION_INFO_API (STD_ON) |
Enable/disable SPI get version info API.
#define ETH_GLOBALTIMESUPPORT_API (STD_OFF) |
Enable/disable Eth time sync related API.
#define ETH_DEV_ERROR_DETECT (STD_ON) |
Enable/Disable Development Error Detection.
#define ETH_GET_COUNTER_VALUES_API (STD_ON) |
Enable/disable Eth get counter values API.
#define ETH_GET_RX_STATS_API (STD_ON) |
Enable/disable Eth get RX stats count API.
#define ETH_GET_TX_STATS_API (STD_ON) |
Enable/disable Eth get TX stats count API.
#define ETH_GET_TX_ERROR_COUNTERSVALUES_API (STD_ON) |
Enable/disable Eth get TX error stats count API.
#define ETH_ZERO_COPY_TX (STD_OFF) |
Enable/disable Eth zero-copy transmit API.
#define ETH_USE_Q_APIS (STD_OFF) |
Enable/disable Eth queue-based APIs.
#define ETH_ENABLE_MII_API (STD_ON) |
Enable/disable Eth MII related API.
#define ETH_UPDATE_PHYS_ADDR_FILTER_API (STD_ON) |
Enable/disable optional API Eth_UpdatePhysAddrFilter.
#define ETH_VIRTUALMAC_NOTIFYMSGRECEIVED_API (STD_OFF) |
Enable/disable optional API Eth_NotifyVirtmacMsgReceived.
#define ETH_VIRTUALMAC_SUBSCRIBEALLTRAFFIC_API (STD_OFF) |
Enable/disable optional API Eth_DispatchVirtmacSubscribeAllTraffic.
#define ETH_VIRTUALMAC_UNSUBSCRIBEALLTRAFFIC_API (STD_OFF) |
Enable/disable optional API Eth_DispatchVirtmacUnsubscribeAllTraffic.
#define ETH_VIRTUALMAC_SUBSCRIBEDSTMAC_API (STD_OFF) |
Enable/disable optional API Eth_DispatchVirtmacSubscribeDstMac.
#define ETH_VIRTUALMAC_UNSUBSCRIBEDSTMAC_API (STD_OFF) |
Enable/disable optional API Eth_DispatchVirtmacUnsubscribeDstMac.
#define ETH_VIRTUALMAC_ASSOCIATEIPV4MACADDR_API (STD_OFF) |
Enable/disable optional API Eth_DispatchVirtmacAssociateIPv4Macaddr.
#define ETH_VIRTUALMAC_DISASSOCIATEIPV4MACADDR_API (STD_OFF) |
Enable/disable optional API Eth_DispatchVirtmacDisassociateIPv4Macaddr.
#define ETH_VIRTUALMAC_ADD_UNICAST_MACADDR_API (STD_OFF) |
Enable/disable optional API Eth_DispatchVirtmacAddUnicastAddr.
#define ETH_VIRTUALMAC_ADD_MCAST_MACADDR_API (STD_OFF) |
Enable/disable optional API Eth_DispatchVirtmacAddMcastAddr.
#define ETH_VIRTUALMAC_DEL_MACADDR_API (STD_OFF) |
Enable/disable optional API Eth_DispatchVirtmacDelAddr.
#define ETH_VIRTUALMAC_SEND_CUSTOM_NOTIFY_API (STD_OFF) |
Enable/disable optional API Eth_SendCustomNotify.
#define ETH_VIRTUALMAC_ADD_VLAN_API (STD_OFF) |
Enable/disable optional API Eth_DispatchVirtmacAddVlan.
#define ETH_VIRTUALMAC_DEL_VLAN_API (STD_OFF) |
Enable/disable optional API Eth_DispatchVirtmacDelVlan.
#define ETH_ENABLE_TX_INTERRUPT (STD_ON) |
Enable/disable transmit interrupt.
#define ETH_ENABLE_RX_INTERRUPT (STD_ON) |
Enable/disable receive interrupt.
#define ETH_NUM_TX_BUFFERS (128U) |
Number of TX buffers.
#define ETH_NUM_RX_BUFFERS (128U) |
Number of RX buffers.
#define ETH_TX_BUF_LEN_BYTE (1522U) |
Limits the maximum transmit buffer length (frame length) in bytes.
#define ETH_RX_BUF_LEN_BYTE (1522U) |
Limits the maximum receive buffer length (frame length) in bytes.
#define ETH_DESC_IN_CACHED_MEMORY (STD_ON) |
Enable/Disable DMA descriptors in cached memory.
#define ETH_RING_IN_CACHED_MEMORY (STD_ON) |
Enable/Disable DMA rings in cached memory.
#define ETH_ISR_TYPE (ETH_ISR_CAT2) |
ISR type.
#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.
#define ETH_TIMEOUT_DURATION (3200U) |
Timeout value for a wait (busy wait)
#define ETH_CTRL_PHY_ADDRESS { 0xaaU,0xbbU,0xccU,0xddU,0xeeU,0xffU,} |
MAC address of the controller in network byte order.
#define ETH_VIRTUALMAC_SUPPORT (STD_OFF) |
Enable/disable Virtual MAC support for CPSW9G.
#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.
#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.
#define ETH_E_LATECOLLISION (ETH_DEM_NO_EVENT) |
Late collision.
#define ETH_E_MULTIPLECOLLISION (ETH_DEM_NO_EVENT) |
Multiple collision.
#define ETH_E_SINGLECOLLISION (ETH_DEM_NO_EVENT) |
Single collision.
#define ETH_E_ALIGNMENT (ETH_DEM_NO_EVENT) |
Alignment error.
#define ETH_E_OVERSIZEFRAME (ETH_DEM_NO_EVENT) |
Oversize Frame.
#define ETH_E_UNDERSIZEFRAME (ETH_DEM_NO_EVENT) |
Undersize frame.
#define ETH_E_CRC (ETH_DEM_NO_EVENT) |
CRC Error.
#define ETH_E_RX_FRAMES_LOST (ETH_DEM_NO_EVENT) |
Received Frames lost.
#define ETH_E_ACCESS (ETH_DEM_NO_EVENT) |
Hardware failed.
#define ETH_E_TX_INTERNAL (ETH_DEM_NO_EVENT) |
TX packet descriptor returned by UDMA is corrupted. Invalid data pointer in descriptor.
#define ETH_DRV_CONFIG_0 ((const Eth_ConfigType *) &EthConfig_0_PC) |
void EthApp_wbInvCache | ( | uint8 * | buf, |
uint16 | len | ||
) |
Function to write-back and invalidate cache.
void EthApp_wbCache | ( | uint8 * | buf, |
uint16 | len | ||
) |
Function to write-back cache.
void EthApp_invCache | ( | uint8 * | buf, |
uint16 | len | ||
) |
Function to invalidate cache.
const struct Eth_ConfigType_s EthConfig_0_PC |
Pointer to the generated configuration.
<Configuration of the driver