94 #include "Eth_LL_Types.h" 95 #include "Udma_Types.h" 105 #define ETH_VERSION_INFO_API (STD_ON) 108 #define ETH_GLOBALTIMESUPPORT_API (STD_ON) 111 #define ETH_DEV_ERROR_DETECT (STD_ON) 114 #define ETH_GET_COUNTER_VALUES_API (STD_ON) 117 #define ETH_GET_RX_STATS_API (STD_ON) 120 #define ETH_GET_TX_STATS_API (STD_ON) 123 #define ETH_GET_TX_ERROR_COUNTERSVALUES_API (STD_ON) 126 #define ETH_ZERO_COPY_API (STD_OFF) 129 #define ETH_HEADER_ACCESS_API (STD_OFF) 132 #define ETH_TRAFFIC_SHAPING_API (STD_OFF) 135 #define ETH_GET_COUNTER_STATE_API (STD_OFF) 139 #define ETH_CTRL_ENABLE_OFFLOAD_CHECKSUM_ICMP (STD_OFF) 142 #define ETH_CTRL_ENABLE_OFFLOAD_CHECKSUM_IPV4 (STD_OFF) 145 #define ETH_CTRL_ENABLE_OFFLOAD_CHECKSUM_TCP (STD_OFF) 148 #define ETH_CTRL_ENABLE_OFFLOAD_CHECKSUM_UDP (STD_OFF) 152 #define ETH_ENABLE_MII_API (STD_ON) 155 #define ETH_UPDATE_PHYS_ADDR_FILTER_API (STD_ON) 158 #define ETH_VIRTUALMAC_NOTIFYMSGRECEIVED_API (STD_OFF) 161 #define ETH_VIRTUALMAC_SUBSCRIBEALLTRAFFIC_API (STD_OFF) 164 #define ETH_VIRTUALMAC_UNSUBSCRIBEALLTRAFFIC_API (STD_OFF) 167 #define ETH_VIRTUALMAC_SUBSCRIBEDSTMAC_API (STD_OFF) 170 #define ETH_VIRTUALMAC_UNSUBSCRIBEDSTMAC_API (STD_OFF) 173 #define ETH_VIRTUALMAC_ASSOCIATEIPV4MACADDR_API (STD_OFF) 176 #define ETH_VIRTUALMAC_DISASSOCIATEIPV4MACADDR_API (STD_OFF) 179 #define ETH_VIRTUALMAC_ADD_UNICAST_MACADDR_API (STD_OFF) 182 #define ETH_VIRTUALMAC_ADD_MCAST_MACADDR_API (STD_OFF) 185 #define ETH_VIRTUALMAC_DEL_MACADDR_API (STD_OFF) 188 #define ETH_VIRTUALMAC_SEND_CUSTOM_NOTIFY_API (STD_OFF) 191 #define ETH_VIRTUALMAC_ADD_VLAN_API (STD_OFF) 194 #define ETH_VIRTUALMAC_DEL_VLAN_API (STD_OFF) 197 #define ETH_ETHIF_CBK_HEADER "EthIf_Cbk.h" 200 #define ETH_ISR_TYPE (ETH_ISR_CAT2) 202 #define ETH_OS_COUNTER_ID ((CounterType)OsCounter_0) 204 #define ETH_OS_COUNTER_FREQ (1000000000U) 207 #define ETH_INVALID_RING_ID (0xFFFFU) 209 #define ETH_INVALID_EVENT_ID (0xFFFFU) 211 #define ETH_INVALID_CHAN_ID (0xFFFFU) 213 #define ETH_INVALID_FLOW_ID (0xFFFFU) 215 #define ETH_INVALID_IRQ_ID (0xFFFFU) 217 #define ETH_DEM_NO_EVENT (0xFFFFU) 220 #define ETH_VIRTUALMAC_SUPPORT (STD_OFF) 222 #define ETH_VIRTUALMAC_FWINFO_TIMEOUT (0U) 228 #define EthConf_EthCtrlConfig_EthConfig_0 (0U) 235 #define ETH_PRE_COMPILE_VARIANT (STD_ON) 236 #define ETH_LINK_TIME_VARIANT (STD_OFF) 237 #define ETH_POST_BUILD_VARIANT (STD_OFF) 243 #define ETH_CTRL_ID_MAX (1u) 249 #define ETH_DMA_IR_SUPPORT (STD_ON) 250 #define ETH_DMA_CQ_RING_SUPPORT (STD_ON) 251 #define ETH_DMA_TEARDOWN_SUPPORT (STD_ON) 252 #define ETH_DMA_PROXY_SUPPORT (STD_ON) 259 #define UDMA_DEVICE_ID_RING (235U) 260 #define UDMA_DEVICE_ID_UDMA (236U) 261 #define UDMA_DEVICE_ID_PSIL (232U) 262 #define UDMA_DEVICE_ID_IA (233U) 263 #define UDMA_DEVICE_ID_IR (237U) 264 #define UDMA_DEVICE_ID_CORE (250U) 265 #define UDMA_DEVICE_ID_PROXY (234U) 272 #define UDMA_TX_CHANNEL_PEER_OFFSET (0xf000U) 273 #define UDMA_RX_CHANNEL_PEER_OFFSET (0x7000U) 274 #define UDMA_SOURCE_THREAD_OFFSET (0x6000U) 275 #define UDMA_DEST_THREAD_OFFSET (0xe000U) 282 #define ETH_DMA_TX_BASE_REG (0x2aa00000U) 283 #define ETH_DMA_RX_BASE_REG (0x2a800000U) 284 #define ETH_DMA_RINGRT_BASE (0x2b800000U) 285 #define ETH_DMA_RINGCFG_BASE (0x28440000U) 286 #define ETH_DMA_INTAGGR_INTR_BASE (0x2a700000U) 293 #define ETH_DMA_TXCRT_CHAN_CTL(CHAN) (0x00000000U + ((CHAN) * 0x1000U)) 294 #define ETH_DMA_TXCRT_CHAN_PEER8(CHAN) (0x00000220U + ((CHAN) * 0x1000U)) 295 #define ETH_DMA_RXCRT_CHAN_CTL(CHAN) (0x00000000U + ((CHAN) * 0x1000U)) 296 #define ETH_DMA_RXCRT_CHAN_PEER8(CHAN) (0x00000220U + ((CHAN) * 0x1000U)) 298 #define ETH_DMA_RINGRT_RING_FDB(RING) (0x00000010U + ((RING) * 0x1000U)) 299 #define ETH_DMA_RINGRT_RING_FOCC(RING) (0x00000018U + ((RING) * 0x1000U)) 300 #define ETH_DMA_RINGRT_RING_RDB(RING) (0x00000010U + ((RING) * 0x1000U)) 301 #define ETH_DMA_RINGRT_RING_ROCC(RING) (0x00000018U + ((RING) * 0x1000U)) 302 #define ETH_DMA_RINGRT_RING_HWOCC(RING) (0x00000020U + ((RING) * 0x1000U)) 303 #define ETH_DMA_RINGCFG_RING_SIZE(RING) (0x00000048U + ((RING) * 0x100U)) 305 #define ETH_DMA_INTAGGR_INTR_VINT_ENABLE_SET(VINT) (ETH_DMA_INTAGGR_INTR_BASE + 0x00000000U + ((VINT) * 0x1000U)) 306 #define ETH_DMA_INTAGGR_INTR_VINT_ENABLE_CLEAR(VINT) (ETH_DMA_INTAGGR_INTR_BASE + 0x00000008U + ((VINT) * 0x1000U)) 307 #define ETH_DMA_INTAGGR_INTR_VINT_STATUS_SET(VINT) (ETH_DMA_INTAGGR_INTR_BASE + 0x00000010U + ((VINT) * 0x1000U)) 308 #define ETH_DMA_INTAGGR_INTR_VINT_STATUS_CLEAR(VINT) (ETH_DMA_INTAGGR_INTR_BASE + 0x00000018U + ((VINT) * 0x1000U)) 309 #define ETH_DMA_INTAGGR_INTR_VINT_STATUSM(VINT) (ETH_DMA_INTAGGR_INTR_BASE + 0x00000020U + ((VINT) * 0x1000U)) 311 #define Eth_GetRingFDBReg(RingNum) (ETH_DMA_RINGRT_BASE + ETH_DMA_RINGRT_RING_FDB((RingNum))) 312 #define Eth_GetRingFOCCReg(RingNum) (ETH_DMA_RINGRT_BASE + ETH_DMA_RINGRT_RING_FOCC((RingNum))) 313 #define Eth_GetRingRDBReg(RingNum) (ETH_DMA_RINGRT_BASE + ETH_DMA_RINGRT_RING_RDB((RingNum))) 314 #define Eth_GetRingROCCReg(RingNum) (ETH_DMA_RINGRT_BASE + ETH_DMA_RINGRT_RING_ROCC((RingNum))) 315 #define Eth_GetRingHWOCCReg(RingNum) (ETH_DMA_RINGRT_BASE + ETH_DMA_RINGRT_RING_HWOCC((RingNum))) 316 #define Eth_GetRingSizeReg(RingNum) (ETH_DMA_RINGCFG_BASE + ETH_DMA_RINGCFG_RING_SIZE((RingNum))) 318 #define Eth_GetTxChannelCtlRegAddress(ChanId) (ETH_DMA_TX_BASE_REG + ETH_DMA_TXCRT_CHAN_CTL((ChanId))) 319 #define Eth_GetTxChannelPeer8RegAddress(ChanId) (ETH_DMA_TX_BASE_REG + ETH_DMA_TXCRT_CHAN_PEER8((ChanId))) 320 #define Eth_GetRxChannelCtlRegAddress(ChanId) (ETH_DMA_RX_BASE_REG + ETH_DMA_RXCRT_CHAN_CTL((ChanId))) 321 #define Eth_GetRxChannelPeer8RegAddress(ChanId) (ETH_DMA_RX_BASE_REG + ETH_DMA_RXCRT_CHAN_PEER8((ChanId))) 323 #define CSL_PROXY0_TARGET0_DATA_BASE (0x2a500000U) 324 #define CSL_PROXY_TARGET0_PROXY_CTL(PROXY) (CSL_PROXY0_TARGET0_DATA_BASE + 0x00000000U + ((PROXY)*0x1000U)) 325 #define CSL_PROXY_TARGET0_PROXY_DATA_FIELD(PROXY) (CSL_PROXY0_TARGET0_DATA_BASE + 0x00000200U + ((PROXY)*0x1000U)) 331 #define UDMA_WAIT_TEARDOWN_COUNTER (10000u) 338 #define Eth_GetDem_E_HARDWARE_ERROR(CtrlIndex) ( ETH_DEM_NO_EVENT ) 339 #define Eth_GetDem_E_LATECOLLISION(CtrlIndex) ( ETH_DEM_NO_EVENT ) 340 #define Eth_GetDem_E_MULTIPLECOLLISION(CtrlIndex) ( ETH_DEM_NO_EVENT ) 341 #define Eth_GetDem_E_SINGLECOLLISION(CtrlIndex) ( ETH_DEM_NO_EVENT ) 342 #define Eth_GetDem_E_ALIGNMENT(CtrlIndex) ( ETH_DEM_NO_EVENT ) 343 #define Eth_GetDem_E_OVERSIZEFRAME(CtrlIndex) ( ETH_DEM_NO_EVENT ) 344 #define Eth_GetDem_E_UNDERSIZEFRAME(CtrlIndex) ( ETH_DEM_NO_EVENT ) 345 #define Eth_GetDem_E_CRC(CtrlIndex) ( ETH_DEM_NO_EVENT ) 346 #define Eth_GetDem_E_RX_FRAMES_LOST(CtrlIndex) ( ETH_DEM_NO_EVENT ) 347 #define Eth_GetDem_E_ACCESS(CtrlIndex) ( ETH_DEM_NO_EVENT ) 348 #define Eth_GetDem_E_TX_INTERNAL(CtrlIndex) ( ETH_DEM_NO_EVENT ) 355 #define Eth_IsVirtualMacModeEnable(CtrlIndex) ( FALSE ) 356 #define Eth_GetTxChannelThreadOffset(CtrlIndex) ( 0xf000U ) 357 #define Eth_VirtMacGetEthFwRpcComChannelId(CtrlIndex) ( 0xFFFFU ) 358 #define Eth_VirtMacGetEthPollRecvMsgInEthMain(CtrlIndex) ( FALSE ) 359 #define Eth_VirtMacGetRpcCmdCompleteFuncPtr(CtrlIndex) ( (Eth_RpcCmdComplete)NULL_PTR ) 360 #define Eth_VirtMacGetFwRegisterFuncPtr(CtrlIndex) ( (Eth_RpcFwRegistered)NULL_PTR ) 362 #define Eth_GetTxEnableInterrupt(CtrlIndex) ( TRUE ) 363 #define Eth_GetRxEnableInterrupt(CtrlIndex) ( TRUE ) 364 #define Eth_GetMdioEnableInterrupt(CtrlIndex) ( TRUE ) 365 #define Eth_GetEnetType(CtrlIndex) ( ETH_ENETTYPE_CPSW2G ) 366 #define Eth_GetMacPortNum(CtrlIndex) ( ETH_PORT_MAC_PORT_1 ) 367 #define Eth_GetMacAddressHigh(CtrlIndex) ( 0xaabbccddU ) 368 #define Eth_GetMacAddressLow(CtrlIndex) ( 0xeeffU ) 369 #define Eth_UseDefaultMacAddress(CtrlIndex) ( TRUE ) 370 #define Eth_GetMiiConnectionType(CtrlIndex) ( ETH_MAC_CONN_TYPE_RGMII_FORCE_1000_FULL ) 371 #define Eth_GetLoopBackMode(CtrlIndex) ( FALSE ) 372 #define Eth_GetHardwareLoopTimeout(CtrlIndex) ( 32000U ) 373 #define Eth_IsPacketMemCacheable(CtrlIndex) ( TRUE ) 374 #define Eth_IsRingMemCacheable(CtrlIndex) ( TRUE ) 375 #define Eth_IsDescMemCacheable(CtrlIndex) ( TRUE ) 377 #define Eth_Cpsw_GetPhyMacRegAddr() ( 0x40f00200U ) 378 #define Eth_Cpsw_GetAleRegAddr() ( 0x4603e000U ) 379 #define Eth_Cpsw_GetCptsRegAddr() ( 0x4603d000U ) 380 #define Eth_Cpsw_GetMdioRegAddr() ( 0x46000f00U ) 381 #define Eth_Cpsw_GetCtrlRegAddr() ( 0x46020000U ) 382 #define Eth_Cpsw_GetCppiClockFreq() ( 333333333U ) 383 #define Eth_Cpsw_GetCptsRefClockFreq(CtrlIndex) ( 1U ) 385 #define Eth_Cpsw_GetMdioBusClockFreq(CtrlIndex) ( 2200000U ) 386 #define Eth_Cpsw_GetMdioOpMode(CtrlIndex) ( ETH_MDIO_OPMODE_MANUAL ) 388 #define Eth_GetRxMtuLength(CtrlIndex) ( 1522U ) 389 #define Eth_GetTxChanStartNum(CtrlIndex) ( 30U ) 390 #define Eth_GetRxChanStartNum(CtrlIndex) ( 30U ) 391 #define Eth_GetEgressFifoTotalNum(CtrlIndex) ( 1U ) 392 #define Eth_GetIngressFifoTotalNum(CtrlIndex) ( 1U ) 393 #define Eth_GetRingTotalNum(CtrlIndex) ( 6U ) 394 #define Eth_GetTxChanTotalNum(CtrlIndex) ( 1U ) 395 #define Eth_GetRxChanTotalNum(CtrlIndex) ( 1U ) 396 #define Eth_GetFlowTotalNumber(CtrlIndex) ( 1U ) 397 #define Eth_GetEventTotalNum(CtrlIndex) ( 2U ) 398 #define Eth_GetRingEventTotalNum(CtrlIndex) ( 2U ) 399 #define Eth_GetTxDmaThresholdNum(CtrlIndex) ( 1U ) 400 #define Eth_GetRxDmaThresholdNum(CtrlIndex) ( 1U ) 402 #define Eth_GetEgressFifoPacketNum(CtrlIndex, FifoIdx) ( 16U ) 403 #define Eth_GetEgressFifoPacketSize(CtrlIndex, FifoIdx) ( 1522U ) 405 #define Eth_GetIngressFifoPacketNum(CtrlIndex, FifoIdx) ( 16U ) 406 #define Eth_GetIngressFifoPacketSize(CtrlIndex, FifoIdx) ( 1522U ) 408 #define Eth_GetEgressFifoPriorityAsignment(CtrlIndex, Prio) ( 0U ) 409 #define Eth_GetIngressFifoPriorirtyAsignment(CtrlIndex, Prio) ( 0U ) 411 #define Eth_GetEgressFifoDescAddress(CtrlIndex, FifoIdx, DescIdx) (&Eth_Ctrl_0_Egress_Descriptor_0[(DescIdx)] ) 412 #define Eth_GetEgressFifoDescUserInfoAddress(CtrlIndex, FifoIdx, DescIdx) (&Eth_Ctrl_0_Egress_Descriptor_0[(DescIdx)].bufferInfo ) 413 #define Eth_GetEgressFifoBufferDataAddress(CtrlIndex, FifoIdx, DescIdx) (&Eth_Ctrl_0_Egress_BufferMem_0[(DescIdx) * 1536U] ) 414 #define Eth_GetEgressFifoQueueAddress(CtrlIndex, FifoIdx) ( Eth_Ctrl_0_Egress_Queue_0 ) 415 #define Eth_GetEgressFifoBufferState(CtrlIndex, FifoIdx, BufferIdx) ( Eth_Ctrl_0_Egress_BufferState_0[BufferIdx] ) 416 #define Eth_SetEgressFifoBufferState(CtrlIndex, FifoIdx, BufferIdx, Val) ( Eth_Ctrl_0_Egress_BufferState_0[BufferIdx] = Val ) 418 #define Eth_GetIngressFifoDescAddress(CtrlIndex, FifoIdx, DescIdx) (&Eth_Ctrl_0_Ingress_Descriptor_0[(DescIdx)] ) 419 #define Eth_GetIngressFifoDescUserInfoAddress(CtrlIndex, FifoIdx, DescIdx) (&Eth_Ctrl_0_Ingress_Descriptor_0[(DescIdx)].bufferInfo ) 420 #define Eth_GetIngressFifoBufferDataAddress(CtrlIndex, FifoIdx, DescIdx) (&Eth_Ctrl_0_Ingress_BufferMem_0[(DescIdx) * 1536U] ) 421 #define Eth_GetIngressFifoQueueAddress(CtrlIndex, FifoIdx) ( Eth_Ctrl_0_Ingress_Queue_0 ) 422 #define Eth_GetIngressFifoBufferState(CtrlIndex, FifoIdx, BufferIdx) ( Eth_Ctrl_0_Ingress_BufferState_0[(BufferIdx)] ) 423 #define Eth_SetIngressFifoBufferState(CtrlIndex, FifoIdx, BufferIdx, Val) ( Eth_Ctrl_0_Ingress_BufferState_0[(BufferIdx)] = Val ) 425 #define Eth_GetEgressFifoCqIdx(CtrlIndex, FifoIdx) ( 0U ) 426 #define Eth_GetEgressFifoFqIdx(CtrlIndex, FifoIdx) ( 2U ) 427 #define Eth_GetIngressFifoCqIdx(CtrlIndex, FifoIdx) ( 1U ) 428 #define Eth_GetIngressFifoFqIdx(CtrlIndex, FifoIdx) ( 3U ) 430 #define Eth_GetTxChanId(CtrlIndex, ChIdx) ( 30U ) 431 #define Eth_GetTxChanTdCqRingIdx(CtrlIndex, ChIdx) ( 4U ) 432 #define Eth_GetTxChanDepth(CtrlIndex, ChIdx) ( 128U ) 434 #define Eth_GetRxChanId(CtrlIndex, ChIdx) ( 30U ) 435 #define Eth_GetRxChanTdCqRingIdx(CtrlIndex, ChIdx) ( 5U ) 436 #define Eth_GetRxChanFlowTotalNum(CtrlIndex, ChIdx) ( 1U ) 437 #define Eth_GetRxChanFlowStartNum(CtrlIndex, ChIdx) ( 60U ) 439 #define Eth_GetFlowId(CtrlIndex, FlowIdx) ( 60U ) 440 #define Eth_GetFlowCqRingIdx(CtrlIndex, FlowIdx) ( 1U ) 441 #define Eth_GetFlowFqRingIdx(CtrlIndex, FlowIdx) ( 3U ) 443 #define Eth_GetDynRingElemAddress(CtrlIndex, RingIdx) ( &Eth_RingDyn_Ctrl_0[(RingIdx)] ) 445 #define Eth_GetRingHwId(CtrlIndex, RingIdx) ( Eth_Udma_RingCfg_0[(RingIdx)].hwId ) 446 #define Eth_GetRingTotalElemNum(CtrlIndex, RingIdx) ( Eth_Udma_RingCfg_0[(RingIdx)].size ) 447 #define Eth_GetRingPriority(CtrlIndex, RingIdx) ( Eth_Udma_RingCfg_0[(RingIdx)].priority ) 448 #define Eth_GetRingMemBaseAddress(CtrlIndex, RingIdx) ( Eth_Udma_RingCfg_0[(RingIdx)].memPtr ) 450 #define Eth_GetRingEventRingIdx(CtrlIndex, RingEvtIdx) ( Eth_RingEventCfg_Ctrl_0[(RingEvtIdx)].ringIdx ) 451 #define Eth_GetRingEventGlobalEventNum(CtrlIndex, RingEvtIdx) ( Eth_RingEventCfg_Ctrl_0[(RingEvtIdx)].globalEvent ) 452 #define Eth_GetRingEventVirtBitNum(CtrlIndex, RingEvtIdx) ( Eth_RingEventCfg_Ctrl_0[(RingEvtIdx)].virtBitNum ) 453 #define Eth_GetRingEventEventIdx(CtrlIndex, RingEvtIdx) ( Eth_RingEventCfg_Ctrl_0[(RingEvtIdx)].eventIdx ) 454 #define Eth_GetRingEventSrcOffsetNum(CtrlIndex, RingEvtIdx) ( Eth_RingEventCfg_Ctrl_0[(RingEvtIdx)].srcOffset ) 456 #define Eth_GetEventCoreIntrNum(CtrlIndex, EvtIdx) ( Eth_EventCfg_Ctrl_0[(EvtIdx)].coreIntrNum ) 457 #define Eth_GetEventVirtIntrNum(CtrlIndex, EvtIdx) ( Eth_EventCfg_Ctrl_0[(EvtIdx)].virtIntrNum ) 458 #define Eth_GetEventIrIntrNum(CtrlIndex, EvtIdx) ( Eth_EventCfg_Ctrl_0[(EvtIdx)].IrIntrNum ) 459 #define Eth_GetTxEventCoreIntrNum(CtrlIndex) ( 80U ) 460 #define Eth_GetRxEventCoreIntrNum(CtrlIndex) ( 81U ) 462 #define Eth_GetHwTimerTotalNum(CtrlIndex) ( 0U ) 463 #define Eth_GetHwTimerId(CtrlIndex, Index) ( 0xFFU ) 464 #define Eth_GetHwTimerCounter(CtrlIndex, Index) ( 0xFFU ) 465 #define Eth_GetHwTimerIntervalMs(CtrlIndex, Index) ( 0xFFFFFFFFU ) 466 #define Eth_GetHwTimerBaseAddr(CtrlIndex, Index) ( 0xFFFFFFFFU ) 468 #define Eth_GetHwTimerDynRunningState(CtrlIndex, Index) ( FALSE ) 469 #define Eth_SetHwTimerDynRunningState(CtrlIndex, Index, Val) ( (void)(CtrlIndex) ) 471 #define Eth_GetRxIrqPacingEnable(CtrlIndex) ( FALSE ) 472 #define Eth_GetTxIrqPacingEnable(CtrlIndex) ( FALSE ) 474 #define Eth_GetRxHwTimerIdx(CtrlIndex) ( 255U ) 475 #define Eth_GetTxHwTimerIdx(CtrlIndex) ( 255U ) 476 #define Eth_GetIrqPacingEnable(CtrlIndex) ( (Eth_GetTxIrqPacingEnable(CtrlIndex) == TRUE) || (Eth_GetRxIrqPacingEnable(CtrlIndex) == TRUE) ) 478 #define Eth_GetProxyTotalNum(CtrlIndex) ( 1U ) 479 #define Eth_GetProxyThreadNum(CtrlIndex, ProxyIdx) ( 9U ) 480 #define Eth_GetProxyTargetRingNum(CtrlIndex, ProxyIdx) ( 0U ) 481 #define Eth_GetRingProxyIdx(CtrlIndex, RingIdx) ( Eth_Udma_RingCfg_0[(RingIdx)].proxyIdx ) 482 #define Eth_GetRingMode(CtrlIndex, RingIdx) ( Eth_Udma_RingCfg_0[(RingIdx)].ringMode ) 484 #define Eth_GetDmaRingCfg(CtrlIdx) ( &AppUtils_EthRingCfg ) 603 typedef struct Eth_CpswConfigType_s
623 typedef struct Eth_Udma_RingCfgType_s
643 typedef struct Eth_Udma_ProxyCfgType_s
655 typedef struct Eth_Udma_EventCfgType_s
669 typedef struct Eth_Udma_RingEventCfgType_s
687 typedef struct Eth_FifoRingMapCfgType_s
699 typedef struct Eth_ChannelCfgType_s
711 typedef struct Eth_FlowCfgType_s
725 typedef struct Eth_ChannelFlowCfgType_s
737 typedef struct Eth_FifoHandleType_s
759 typedef struct Eth_Udma_CfgType_s
831 typedef struct Eth_VirtualMacConfigType_s
847 typedef struct Eth_HwTimerConfigType_s
861 typedef struct Eth_ControlerConfigType_s
931 typedef struct Eth_ConfigType_s
941 #define ETH_START_SEC_CONST_UNSPECIFIED 942 #include "Eth_MemMap.h" 949 #define ETH_STOP_SEC_CONST_UNSPECIFIED 950 #include "Eth_MemMap.h" 952 #define ETH_START_SEC_VAR_NO_INIT_UNSPECIFIED_128 953 #include "Eth_MemMap.h" 955 extern VAR(uint8, ETH_VAR_NO_INIT_128) Eth_Ctrl_0_Egress_BufferMem_0[24576U];
956 extern VAR(Eth_DescType, ETH_VAR_NO_INIT_128) Eth_Ctrl_0_Egress_Descriptor_0[16U];
958 extern VAR(uint8, ETH_VAR_NO_INIT_128) Eth_Ctrl_0_Ingress_BufferMem_0[24576U];
959 extern VAR(Eth_DescType, ETH_VAR_NO_INIT_128) Eth_Ctrl_0_Ingress_Descriptor_0[16U];
961 #define ETH_STOP_SEC_VAR_NO_INIT_UNSPECIFIED_128 962 #include "Eth_MemMap.h" 964 #define ETH_START_SEC_VAR_NO_INIT_8 965 #include "Eth_MemMap.h" 967 extern VAR(uint8, ETH_VAR_NO_INIT) Eth_Ctrl_0_Egress_BufferState_0[16U];
968 extern VAR(uint8, ETH_VAR_NO_INIT) Eth_Ctrl_0_Ingress_BufferState_0[16U];
970 #define ETH_STOP_SEC_VAR_NO_INIT_8 971 #include "Eth_MemMap.h" 973 #define ETH_START_SEC_VAR_NO_INIT_UNSPECIFIED 974 #include "Eth_MemMap.h" 976 extern VAR(Eth_QueueType, ETH_VAR_NO_INIT) Eth_Ctrl_0_Egress_Queue_0[1U];
977 extern VAR(Eth_QueueType, ETH_VAR_NO_INIT) Eth_Ctrl_0_Ingress_Queue_0[1U];
979 extern VAR(Eth_Udma_RingDynType, ETH_VAR_NO_INIT) Eth_RingDyn_Ctrl_0[6U];
980 #define ETH_STOP_SEC_VAR_NO_INIT_UNSPECIFIED 981 #include "Eth_MemMap.h" 990 #define ETH_START_SEC_CODE 991 #include "Eth_MemMap.h" 997 #define ETH_STOP_SEC_CODE 998 #include "Eth_MemMap.h" uint32 IrIntrNum
Definition: Eth_Cfg.h:661
Definition: Eth_Cfg.h:540
Eth_PortType macPort
Definition: Eth_Cfg.h:867
uint32 size
Definition: Eth_Cfg.h:629
boolean loopback
Definition: Eth_Cfg.h:877
Eth controller configuration type Configuration related to Eth controller configuration.
Definition: Eth_Cfg.h:861
uint64 * memPtr
Definition: Eth_Cfg.h:625
Definition: Eth_Cfg.h:574
Eth_FifoHandleType * ingressFifoCfgPtr
Definition: Eth_Cfg.h:771
uint8 totalTxChanNum
Definition: Eth_Cfg.h:809
uint8 virtBitNum
Definition: Eth_Cfg.h:675
Definition: Eth_Cfg.h:560
Eth_ChannelCfgType * rxChanCfgPtr
Definition: Eth_Cfg.h:783
Eth_Udma_CfgType * dmaCfgPtr
Definition: Eth_Cfg.h:919
boolean enableRxIrq
Definition: Eth_Cfg.h:889
Eth_FifoRingMapCfgType * ingressFifoRingMapCfgPtr
Definition: Eth_Cfg.h:775
boolean * hwTimerDynPtr
Definition: Eth_Cfg.h:923
Eth_Udma_EventCfgType * eventCfgPtr
Definition: Eth_Cfg.h:761
Eth_Udma_ProxyCfgType * proxyCfgPtr
Definition: Eth_Cfg.h:789
uint32 ringMode
Definition: Eth_Cfg.h:635
Definition: Eth_Cfg.h:534
Eth_CpswConfigType * cpswCfg
Definition: Eth_Cfg.h:917
boolean pollRecvMsgInEthMain
Definition: Eth_Cfg.h:837
Definition: Eth_Cfg.h:524
void(* Eth_RpcCmdComplete)(uint8 CtrlIdx, uint8 sid, sint32 status)
Application callback to indicate Rpc dispatch command completion.
Definition: Eth_Cfg.h:499
uint32 coreIntrNum
Definition: Eth_Cfg.h:657
uint32 ctrlIdx
Definition: Eth_Cfg.h:863
Eth_VirtualMacConfigType * virtualMacCfg
Definition: Eth_Cfg.h:913
Definition: Eth_Cfg.h:528
uint32 hwId
Definition: Eth_Cfg.h:627
const Eth_Udma_RingEventCfgType Eth_RingEventCfg_Ctrl_0[2U]
uint8 * ingressFifoPrioAssignCfgPtr
Definition: Eth_Cfg.h:779
Eth flow configuration type Configuration related to flow.
Definition: Eth_Cfg.h:711
Eth_EnetType enetType
Definition: Eth_Cfg.h:865
Eth configuration type Configuration data of all controller.
Definition: Eth_Cfg.h:931
Eth_PortType
Port identifier.
Definition: Eth_Cfg.h:518
uint8 cqRingIdx
Definition: Eth_Cfg.h:689
Definition: Eth_Cfg.h:576
uint32 hwTimerCounter
Definition: Eth_Cfg.h:851
uint16 txCoreIrq
Definition: Eth_Cfg.h:817
uint8 * bufferState
Definition: Eth_Cfg.h:745
boolean useDefaultMac
Definition: Eth_Cfg.h:873
Eth driver hardware timer configuration data Configuration related to hardware timer.
Definition: Eth_Cfg.h:847
Eth_DescType * descPtr
Definition: Eth_Cfg.h:741
Definition: Eth_Cfg.h:526
uint8 txHwTimerIdx
Definition: Eth_Cfg.h:911
uint32 cptsRefClockFreq
Definition: Eth_Cfg.h:885
Eth driver virtual mac configuration data Configuration related to virtual MAC configuration.
Definition: Eth_Cfg.h:831
uint16 demEventNum
Definition: Eth_Cfg.h:901
Definition: Eth_Cfg.h:580
Eth_FifoRingMapCfgType * egressFifoRingMapCfgPtr
Definition: Eth_Cfg.h:773
Definition: Eth_Cfg.h:556
uint32 ctrlAddr
Definition: Eth_Cfg.h:613
uint16 rxCoreIrq
Definition: Eth_Cfg.h:819
const Eth_Udma_EventCfgType Eth_EventCfg_Ctrl_0[2U]
uint16 * demEventCfg
Definition: Eth_Cfg.h:915
uint16 totalProxyNum
Definition: Eth_Cfg.h:815
#define ETH_CTRL_ID_MAX
Eth max controller ID.
Definition: Eth_Cfg.h:243
uint16 startTxNum
Definition: Eth_Cfg.h:791
uint8 totalRingEventNum
Definition: Eth_Cfg.h:799
Eth_Udma_RingCfgType * ringCfgPtr
Definition: Eth_Cfg.h:763
Eth_QueueType * queuePtr
Definition: Eth_Cfg.h:743
Eth_RpcFwRegistered fwRegisteredCb
Definition: Eth_Cfg.h:839
Eth_MacConnectionType
Type/Speed/Duplex connection type.
Definition: Eth_Cfg.h:550
boolean enableMdioIrq
Definition: Eth_Cfg.h:891
uint32 cptsAddr
Definition: Eth_Cfg.h:609
Std_ReturnType(* Eth_DmaRingCfg)(uint8 ctrlIdx, uint8 ringIdx)
Definition: Eth_Cfg.h:510
uint8 cqRingIdx
Definition: Eth_Cfg.h:713
uint8 totalHwTimerNum
Definition: Eth_Cfg.h:907
uint16 rxMtuLength
Definition: Eth_Cfg.h:821
boolean isDescMemCacheable
Definition: Eth_Cfg.h:897
Eth_ChannelFlowCfgType * rxChanFlowCfgPtr
Definition: Eth_Cfg.h:785
Eth Udma event Configurations type Configuration related to Udma event.
Definition: Eth_Cfg.h:655
boolean isRingMemCacheable
Definition: Eth_Cfg.h:895
Eth_Udma_RingDynType * ringDynPtr
Definition: Eth_Cfg.h:765
Definition: Eth_Cfg.h:532
uint16 startRxNum
Definition: Eth_Cfg.h:793
uint8 * fifoBufferPtr
Definition: Eth_Cfg.h:739
Eth_HwTimerConfigType * hwTimerCfgPtr
Definition: Eth_Cfg.h:921
uint32 srcOffset
Definition: Eth_Cfg.h:679
uint32 proxyId
Definition: Eth_Cfg.h:645
Eth_MdioOperModeType
MDIO operating mode.
Definition: Eth_Cfg.h:591
uint16 elemSize
Definition: Eth_Cfg.h:749
boolean isPacketMemCacheable
Definition: Eth_Cfg.h:893
Eth_ChannelCfgType * txChanCfgPtr
Definition: Eth_Cfg.h:781
uint32 targetNumRingId
Definition: Eth_Cfg.h:647
boolean enableRxIrqPacing
Definition: Eth_Cfg.h:903
uint32 ethfwRpcComChId
Definition: Eth_Cfg.h:833
Eth Fifo ring map configuration type Configuration related to fifo map to ring.
Definition: Eth_Cfg.h:687
uint16 flowId
Definition: Eth_Cfg.h:717
Definition: Eth_Cfg.h:520
Definition: Eth_Cfg.h:595
uint8 totalFlowNum
Definition: Eth_Cfg.h:813
const Eth_Udma_RingCfgType Eth_Udma_RingCfg_0[6U]
VAR(uint8, ETH_VAR_NO_INIT_128) Eth_Ctrl_0_Egress_BufferMem_0[24576U]
Definition: Eth_Cfg.h:558
Std_ReturnType AppUtils_EthRingCfg(uint8 ctrlIdx, uint8 Id)
Eth channel flow configuration type Configuration related to channel flow.
Definition: Eth_Cfg.h:725
boolean enableVirtualMac
Definition: Eth_Cfg.h:899
uint32 globalEvent
Definition: Eth_Cfg.h:677
uint8 rxHwTimerIdx
Definition: Eth_Cfg.h:909
Definition: Eth_Cfg.h:552
uint8 rxThresholdNum
Definition: Eth_Cfg.h:803
uint32 macAddrLow
Definition: Eth_Cfg.h:871
Eth Fifo configuration type Configuration related to Fifo.
Definition: Eth_Cfg.h:737
uint8 ringIdx
Definition: Eth_Cfg.h:671
Eth_MacConnectionType connType
Definition: Eth_Cfg.h:875
Eth_EnetType
Enet Cpsw Type identifier.
Definition: Eth_Cfg.h:572
Eth Cpsw Configurations type Configuration related to Cpsw data.
Definition: Eth_Cfg.h:603
uint32 cppiClockFreqHz
Definition: Eth_Cfg.h:615
uint8 totalRxChanNum
Definition: Eth_Cfg.h:811
Eth ring event configuration type Configuration related to ring event.
Definition: Eth_Cfg.h:669
uint8 totalEgressFifoNum
Definition: Eth_Cfg.h:805
Eth_MdioOperModeType mdioOpMode
Definition: Eth_Cfg.h:883
boolean enableTxIrq
Definition: Eth_Cfg.h:887
Definition: Eth_Cfg.h:578
uint32 virtIntrNum
Definition: Eth_Cfg.h:659
Eth_DmaRingCfg EthDmaRingCfgOps
Definition: Eth_Cfg.h:823
Definition: Eth_Cfg.h:562
uint8 fqRingIdx
Definition: Eth_Cfg.h:691
uint8 fifoNum
Definition: Eth_Cfg.h:747
Eth channel configuration type Configuration related to channel.
Definition: Eth_Cfg.h:699
uint8 hwTimerId
Definition: Eth_Cfg.h:849
uint32 mdioBusFreqHz
Definition: Eth_Cfg.h:881
uint32 macAddrHigh
Definition: Eth_Cfg.h:869
Definition: Eth_Cfg.h:582
Eth_FlowCfgType * flowCfgPtr
Definition: Eth_Cfg.h:787
Definition: Eth_Cfg.h:593
uint8 eventIdx
Definition: Eth_Cfg.h:673
uint8 totalIngressFifoNum
Definition: Eth_Cfg.h:807
Eth_FifoHandleType * egressFifoCfgPtr
Definition: Eth_Cfg.h:769
uint32 totalSize
Definition: Eth_Cfg.h:751
Eth_Udma_RingEventCfgType * ringEvenCfgPtr
Definition: Eth_Cfg.h:767
uint32 mdioAddr
Definition: Eth_Cfg.h:611
uint8 txThresholdNum
Definition: Eth_Cfg.h:801
uint32 phyMacAddr
Definition: Eth_Cfg.h:605
Definition: Eth_Cfg.h:530
uint8 totalRingNum
Definition: Eth_Cfg.h:797
Eth_RpcCmdComplete rpcCmdComplete
Definition: Eth_Cfg.h:835
uint8 totalEventNum
Definition: Eth_Cfg.h:795
uint8 * egressFifoPrioAssignCfgPtr
Definition: Eth_Cfg.h:777
uint8 flowNum
Definition: Eth_Cfg.h:727
boolean enableTxIrqPacing
Definition: Eth_Cfg.h:905
uint16 chId
Definition: Eth_Cfg.h:703
Definition: Eth_Cfg.h:554
uint8 tdCqRingIdx
Definition: Eth_Cfg.h:701
Definition: Eth_Cfg.h:522
uint8 fqRingIdx
Definition: Eth_Cfg.h:715
uint32 proxyIdx
Definition: Eth_Cfg.h:633
uint32 aleAddr
Definition: Eth_Cfg.h:607
Eth Udma Proxy Configurations type Configuration related to Udma proxy.
Definition: Eth_Cfg.h:643
uint16 startFlowId
Definition: Eth_Cfg.h:729
Definition: Eth_Cfg.h:538
Eth Udma ring Configurations type Configuration related to Udma ring.
Definition: Eth_Cfg.h:623
Eth Udma configuration type Configuration related to Udma.
Definition: Eth_Cfg.h:759
uint32 hwLoopTimeout
Definition: Eth_Cfg.h:879
uint32 priority
Definition: Eth_Cfg.h:631
void(* Eth_RpcFwRegistered)(uint8 CtrlIdx)
Application callback to indicate Ethernet firmware registered with the Eth RPC client.
Definition: Eth_Cfg.h:507
Definition: Eth_Cfg.h:536
uint32 hwTimerIntervalMs
Definition: Eth_Cfg.h:853