MCUSW
Loading...
Searching...
No Matches
Eth_Cfg.h
Go to the documentation of this file.
1/*
2*
3* Copyright (c) 2024 Texas Instruments Incorporated
4*
5* All rights reserved not granted herein.
6*
7* Limited License.
8*
9* Texas Instruments Incorporated grants a world-wide, royalty-free, non-exclusive
10* license under copyrights and patents it now or hereafter owns or controls to make,
11* have made, use, import, offer to sell and sell ("Utilize") this software subject to the
12* terms herein. With respect to the foregoing patent license, such license is granted
13* solely to the extent that any such patent is necessary to Utilize the software alone.
14* The patent license shall not apply to any combinations which include this software,
15* other than combinations with devices manufactured by or for TI ("TI Devices").
16* No hardware patent is licensed hereunder.
17*
18* Redistributions must preserve existing copyright notices and reproduce this license
19* (including the above copyright notice and the disclaimer and (if applicable) source
20* code license limitations below) in the documentation and/or other materials provided
21* with the distribution
22*
23* Redistribution and use in binary form, without modification, are permitted provided
24* that the following conditions are met:
25*
26* * No reverse engineering, decompilation, or disassembly of this software is
27* permitted with respect to any software provided in binary form.
28*
29* * any redistribution and use are licensed by TI for use only with TI Devices.
30*
31* * Nothing shall obligate TI to provide you with source code for the software
32* licensed and provided to you in object code.
33*
34* If software source code is provided to you, modification and redistribution of the
35* source code are permitted provided that the following conditions are met:
36*
37* * any redistribution and use of the source code, including any resulting derivative
38* works, are licensed by TI for use only with TI Devices.
39*
40* * any redistribution and use of any object code compiled from the source code
41* and any resulting derivative works, are licensed by TI for use only with TI Devices.
42*
43* Neither the name of Texas Instruments Incorporated nor the names of its suppliers
44*
45* may be used to endorse or promote products derived from this software without
46* specific prior written permission.
47*
48* DISCLAIMER.
49*
50* THIS SOFTWARE IS PROVIDED BY TI AND TI'S LICENSORS "AS IS" AND ANY EXPRESS
51* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
52* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
53* IN NO EVENT SHALL TI AND TI'S LICENSORS BE LIABLE FOR ANY DIRECT, INDIRECT,
54* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
55* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
56* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
57* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
58* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
59* OF THE POSSIBILITY OF SUCH DAMAGE.
60*
61*/
62
69/*******************************************************************************
70 Project : J721E
71 Date : 2025-04-02 08:30:15
72 SW Ver : 11.0.0
73 Module Rele Ver : AUTOSAR 4.3.1 0
74
75 This file is generated by EB Tresos
76 Do not modify this file,otherwise the software may behave in unexpected way.
77*******************************************************************************/
78
86#ifndef ETH_CFG_H_
87#define ETH_CFG_H_
88
89/* ========================================================================== */
90/* Include Files */
91/* ========================================================================== */
92#include "Os.h"
93#include "Eth_LL_Types.h"
94#include "Udma_Types.h"
95#include "Eth_Rpc.h"
96
97#ifdef __cplusplus
98extern "C" {
99#endif
100
101/* ========================================================================== */
102/* Macros & Typedefs */
103/* ========================================================================== */
105#define ETH_VERSION_INFO_API (STD_ON)
106
108#define ETH_GLOBALTIMESUPPORT_API (STD_ON)
109
111#define ETH_DEV_ERROR_DETECT (STD_ON)
112
114#define ETH_GET_COUNTER_VALUES_API (STD_ON)
115
117#define ETH_GET_RX_STATS_API (STD_ON)
118
120#define ETH_GET_TX_STATS_API (STD_ON)
121
123#define ETH_GET_TX_ERROR_COUNTERSVALUES_API (STD_ON)
124
126#define ETH_ZERO_COPY_API (STD_OFF)
127
129#define ETH_HEADER_ACCESS_API (STD_OFF)
130
132#define ETH_TRAFFIC_SHAPING_API (STD_OFF)
133
135#define ETH_GET_COUNTER_STATE_API (STD_OFF)
136
137
139#define ETH_CTRL_ENABLE_OFFLOAD_CHECKSUM_ICMP (STD_OFF)
140
142#define ETH_CTRL_ENABLE_OFFLOAD_CHECKSUM_IPV4 (STD_OFF)
143
145#define ETH_CTRL_ENABLE_OFFLOAD_CHECKSUM_TCP (STD_OFF)
146
148#define ETH_CTRL_ENABLE_OFFLOAD_CHECKSUM_UDP (STD_OFF)
149
151#define ETH_REGISTER_READBACK_API (STD_ON)
152
154#define ETH_TIMESTAMP_VIA_CPTS_EVENT_FIFO (STD_ON)
155
157#define ETH_PHY_FAULT_DETECTION_ENABLE (STD_ON)
158
160#define ETH_ENABLE_MII_API (STD_ON)
161
163#define ETH_UPDATE_PHYS_ADDR_FILTER_API (STD_ON)
164
166#define ETH_ENABLE_IRQ_PACING (STD_OFF)
167
169#define ETH_VIRTUALMAC_NOTIFYMSGRECEIVED_API (STD_OFF)
170
172#define ETH_VIRTUALMAC_SUBSCRIBEALLTRAFFIC_API (STD_OFF)
173
175#define ETH_VIRTUALMAC_UNSUBSCRIBEALLTRAFFIC_API (STD_OFF)
176
178#define ETH_VIRTUALMAC_SUBSCRIBEDSTMAC_API (STD_OFF)
179
181#define ETH_VIRTUALMAC_UNSUBSCRIBEDSTMAC_API (STD_OFF)
182
184#define ETH_VIRTUALMAC_ASSOCIATEIPV4MACADDR_API (STD_OFF)
185
187#define ETH_VIRTUALMAC_DISASSOCIATEIPV4MACADDR_API (STD_OFF)
188
190#define ETH_VIRTUALMAC_ADD_MCAST_MACADDR_API (STD_OFF)
191
193#define ETH_VIRTUALMAC_DEL_MACADDR_API (STD_OFF)
194
196#define ETH_VIRTUALMAC_ADD_VLAN_API (STD_OFF)
197
199#define ETH_VIRTUALMAC_DEL_VLAN_API (STD_OFF)
200
201
203#define ETH_ETHIF_CBK_HEADER "EthIf_Cbk.h"
204
206#define ETH_ISR_TYPE (ETH_ISR_CAT2)
208#define ETH_OS_COUNTER_ID ((CounterType)OsCounter_0)
210#define ETH_OS_COUNTER_FREQ (1000000000U)
211
213#define ETH_INVALID_RING_ID (0xFFFFU)
215#define ETH_INVALID_EVENT_ID (0xFFFFU)
217#define ETH_INVALID_CHAN_ID (0xFFFFU)
219#define ETH_INVALID_FLOW_ID (0xFFFFU)
221#define ETH_INVALID_IRQ_ID (0xFFFFU)
223#define ETH_DEM_NO_EVENT (0xFFFFU)
224
226#define ETH_VIRTUALMAC_SUPPORT (STD_OFF)
228#define ETH_VIRTUALMAC_FWINFO_TIMEOUT (0U)
229
230
236#define EthConf_EthCtrlConfig_EthConfig_0 (0U)
237#define ETH_CTRL_ID_0 (0U)
238/* @} */
239
244#define ETH_PRE_COMPILE_VARIANT (STD_ON)
245#define ETH_LINK_TIME_VARIANT (STD_OFF)
246#define ETH_POST_BUILD_VARIANT (STD_OFF)
247/* @} */
248
252#define ETH_CTRL_ID_MAX (1U)
253
254
261#define NOP1 asm (" NOP ")
262#define NOP5 NOP1; NOP1; NOP1; NOP1; NOP1
263#define NOP10 NOP5; NOP5
264#define NOP20 NOP10; NOP10
265#define NOP30 NOP20; NOP10
266#define NOP40 NOP30; NOP10
267#define NOP50 NOP40; NOP10
268#define NOP100 NOP50; NOP50
269#define NOP200 NOP100; NOP100
270#define NOP300 NOP200; NOP100
271#define NOP400 NOP300; NOP100
272#define NOP500 NOP400; NOP100
273/* @} */
274
279#define ETH_DMA_IR_SUPPORT (STD_ON)
280#define ETH_DMA_CQ_RING_SUPPORT (STD_ON)
281#define ETH_DMA_TEARDOWN_SUPPORT (STD_ON)
282#define ETH_DMA_PROXY_SUPPORT (STD_ON)
283#define ETH_DMA_RX_CH_SPERATE (STD_OFF)
284/* @} */
285
290#define UDMA_DEVICE_ID_RING (235U)
291#define UDMA_DEVICE_ID_UDMA (236U)
292#define UDMA_DEVICE_ID_PSIL (232U)
293#define UDMA_DEVICE_ID_IA (233U)
294#define UDMA_DEVICE_ID_IR (237U)
295#define UDMA_DEVICE_ID_CORE (250U)
296#define UDMA_DEVICE_ID_PROXY (234U)
297/* @} */
298
303#define UDMA_TX_CHANNEL_PEER_OFFSET (0xf000U)
304#define UDMA_RX_CHANNEL_PEER_OFFSET (0x7000U)
305#define UDMA_SOURCE_THREAD_OFFSET (0x6000U)
306#define UDMA_DEST_THREAD_OFFSET (0xe000U)
307/* @} */
308
313#define ETH_DMA_TX_BASE_REG (0x2aa00000U)
314#define ETH_DMA_RX_BASE_REG (0x2a800000U)
315#define ETH_DMA_RINGRT_BASE (0x2b800000U)
316#define ETH_DMA_RINGCFG_BASE (0x28440000U)
317#define ETH_DMA_INTAGGR_INTR_BASE (0x2a700000U)
318/* @} */
319
324#define ETH_DMA_TXCRT_CHAN_CTL(CHAN) (0x00000000U + ((CHAN) * 0x1000U))
325#define ETH_DMA_TXCRT_CHAN_PEER8(CHAN) (0x00000220U + ((CHAN) * 0x1000U))
326#define ETH_DMA_RXCRT_CHAN_CTL(CHAN) (0x00000000U + ((CHAN) * 0x1000U))
327#define ETH_DMA_RXCRT_CHAN_PEER8(CHAN) (0x00000220U + ((CHAN) * 0x1000U))
328
329#define ETH_DMA_RINGRT_RING_FDB(RING) (0x00000010U + ((RING) * 0x1000U))
330#define ETH_DMA_RINGRT_RING_FOCC(RING) (0x00000018U + ((RING) * 0x1000U))
331#define ETH_DMA_RINGRT_RING_RDB(RING) (0x00000010U + ((RING) * 0x1000U))
332#define ETH_DMA_RINGRT_RING_ROCC(RING) (0x00000018U + ((RING) * 0x1000U))
333#define ETH_DMA_RINGRT_RING_HWOCC(RING) (0x00000020U + ((RING) * 0x1000U))
334#define ETH_DMA_RINGCFG_RING_SIZE(RING) (0x00000048U + ((RING) * 0x100U))
335
336#define ETH_DMA_INTAGGR_INTR_VINT_ENABLE_SET(VINT) (ETH_DMA_INTAGGR_INTR_BASE + 0x00000000U + ((VINT) * 0x1000U))
337#define ETH_DMA_INTAGGR_INTR_VINT_ENABLE_CLEAR(VINT) (ETH_DMA_INTAGGR_INTR_BASE + 0x00000008U + ((VINT) * 0x1000U))
338#define ETH_DMA_INTAGGR_INTR_VINT_STATUS_SET(VINT) (ETH_DMA_INTAGGR_INTR_BASE + 0x00000010U + ((VINT) * 0x1000U))
339#define ETH_DMA_INTAGGR_INTR_VINT_STATUS_CLEAR(VINT) (ETH_DMA_INTAGGR_INTR_BASE + 0x00000018U + ((VINT) * 0x1000U))
340#define ETH_DMA_INTAGGR_INTR_VINT_STATUSM(VINT) (ETH_DMA_INTAGGR_INTR_BASE + 0x00000020U + ((VINT) * 0x1000U))
341
342#define Eth_GetRingFDBReg(RingNum) (ETH_DMA_RINGRT_BASE + ETH_DMA_RINGRT_RING_FDB((RingNum)))
343#define Eth_GetRingFOCCReg(RingNum) (ETH_DMA_RINGRT_BASE + ETH_DMA_RINGRT_RING_FOCC((RingNum)))
344#define Eth_GetRingRDBReg(RingNum) (ETH_DMA_RINGRT_BASE + ETH_DMA_RINGRT_RING_RDB((RingNum)))
345#define Eth_GetRingROCCReg(RingNum) (ETH_DMA_RINGRT_BASE + ETH_DMA_RINGRT_RING_ROCC((RingNum)))
346#define Eth_GetRingHWOCCReg(RingNum) (ETH_DMA_RINGRT_BASE + ETH_DMA_RINGRT_RING_HWOCC((RingNum)))
347#define Eth_GetRingSizeReg(RingNum) (ETH_DMA_RINGCFG_BASE + ETH_DMA_RINGCFG_RING_SIZE((RingNum)))
348
349#define Eth_GetTxChannelCtlRegAddress(ChanId) (ETH_DMA_TX_BASE_REG + ETH_DMA_TXCRT_CHAN_CTL((ChanId)))
350#define Eth_GetTxChannelPeer8RegAddress(ChanId) (ETH_DMA_TX_BASE_REG + ETH_DMA_TXCRT_CHAN_PEER8((ChanId)))
351#define Eth_GetRxChannelCtlRegAddress(ChanId) (ETH_DMA_RX_BASE_REG + ETH_DMA_RXCRT_CHAN_CTL((ChanId)))
352#define Eth_GetRxChannelPeer8RegAddress(ChanId) (ETH_DMA_RX_BASE_REG + ETH_DMA_RXCRT_CHAN_PEER8((ChanId)))
353
354#define ETH_CSL_PROXY0_TARGET0_DATA_BASE (0x2a500000U)
355#define ETH_CSL_PROXY_TARGET0_PROXY_CTL(PROXY) (ETH_CSL_PROXY0_TARGET0_DATA_BASE + 0x00000000U + ((PROXY)*0x1000U))
356#define ETH_CSL_PROXY_TARGET0_PROXY_DATA_FIELD(PROXY) (ETH_CSL_PROXY0_TARGET0_DATA_BASE + 0x00000200U + ((PROXY)*0x1000U))
357/* @} */
358
362#define UDMA_WAIT_TEARDOWN_COUNTER (10000u)
363
364
368#define ETH_DEM_EVENT_SUPPORT (STD_OFF)
369
374#define ETH_RX_MTU_HOST_PORT_LENGTH (1522U)
375
376
377
382#define Eth_Cpsw_GetPhyMacRegAddr() ( 0x40f00200U )
383#define Eth_Cpsw_GetAleRegAddr() ( 0x4603e000U )
384#define Eth_Cpsw_GetCptsRegAddr() ( 0x4603d000U )
385#define Eth_Cpsw_GetMdioRegAddr() ( 0x46000f00U )
386#define Eth_Cpsw_GetCtrlRegAddr() ( 0x46020000U )
387#define Eth_Cpsw_GetCppiClockFreq() ( 333333333U )
388
389#define Eth_Cpsw_GetCptsRefClockFreq() ( 1U )
390#define Eth_Cpsw_GetMdioBusClockFreq() ( 2200000U )
391#define Eth_Cpsw_GetMdioOpMode() ( ETH_MDIO_OPMODE_MANUAL )
392#define Eth_Cpsw_GetMdioEnableInterrupt() ( TRUE )
393/* @} */
394
399#define Eth_GetDem_E_HARDWARE_ERROR(CtrlIndex) ( ETH_DEM_NO_EVENT )
400#define Eth_GetDem_E_LATECOLLISION(CtrlIndex) ( ETH_DEM_NO_EVENT )
401#define Eth_GetDem_E_MULTIPLECOLLISION(CtrlIndex) ( ETH_DEM_NO_EVENT )
402#define Eth_GetDem_E_SINGLECOLLISION(CtrlIndex) ( ETH_DEM_NO_EVENT )
403#define Eth_GetDem_E_ALIGNMENT(CtrlIndex) ( ETH_DEM_NO_EVENT )
404#define Eth_GetDem_E_OVERSIZEFRAME(CtrlIndex) ( ETH_DEM_NO_EVENT )
405#define Eth_GetDem_E_UNDERSIZEFRAME(CtrlIndex) ( ETH_DEM_NO_EVENT )
406#define Eth_GetDem_E_CRC(CtrlIndex) ( ETH_DEM_NO_EVENT )
407#define Eth_GetDem_E_RX_FRAMES_LOST(CtrlIndex) ( ETH_DEM_NO_EVENT )
408#define Eth_GetDem_E_ACCESS(CtrlIndex) ( ETH_DEM_NO_EVENT )
409#define Eth_GetDem_E_TX_INTERNAL(CtrlIndex) ( ETH_DEM_NO_EVENT )
410/* @} */
411
416#define Eth_IsVirtualMacModeEnable(CtrlIndex) ( FALSE )
417#define Eth_GetTxChannelThreadOffset(CtrlIndex) ( 0xf000U )
418#define Eth_VirtMacGetEthFwRpcComChannelId(CtrlIndex) ( 0xFFFFU )
419#define Eth_VirtMacGetEthPollRecvMsgInEthMain(CtrlIndex) ( FALSE )
420#define Eth_VirtMacGetRpcCmdCompleteFuncPtr(CtrlIndex) ( (Eth_RpcCmdComplete)NULL_PTR )
421#define Eth_VirtMacGetFwRegisterFuncPtr(CtrlIndex) ( (Eth_RpcFwRegistered)NULL_PTR )
422#define Eth_VirtMacGetRemoteVirtPort(CtrlIndex) ( ETHREMOTECFG_SWITCH_PORT_1 )
423
424#define Eth_VirtMacGetDmaTxChannelPairAll(CtrlIdx) ( (EthVirtMacDmaTxChannelPair)NULL_PTR )
425#define Eth_VirtMacGetDmaTxChannelUnpairAll(CtrlIdx) ( (EthVirtMacDmaTxChannelUnpair)NULL_PTR )
426#define Eth_VirtMacGetDmaFlowCfgAll(CtrlIdx) ( (EthVirtMacDmaFLowCfg)NULL_PTR )
427#define Eth_VirtMacGetDmaFlowResetAll(CtrlIdx) ( (EthVirtMacDmaFLowReset)NULL_PTR )
428
429#define Eth_GetTxEnableInterrupt(CtrlIndex) ( TRUE )
430#define Eth_GetRxEnableInterrupt(CtrlIndex) ( TRUE )
431#define Eth_GetEnetType(CtrlIndex) ( ETH_ENETTYPE_CPSW2G )
432#define Eth_GetMacPortNum(CtrlIndex) ( ETH_PORT_MAC_PORT_1 )
433#define Eth_GetMacAddressHigh(CtrlIndex) ( 0xaabbccddU )
434#define Eth_GetMacAddressLow(CtrlIndex) ( 0xeeffU )
435#define Eth_UseDefaultMacAddress(CtrlIndex) ( TRUE )
436#define Eth_GetMiiConnectionType(CtrlIndex) ( ETH_MAC_CONN_TYPE_RGMII_DETECT_INBAND )
437#define Eth_GetLoopBackMode(CtrlIndex) ( FALSE )
438#define Eth_GetHardwareLoopTimeout(CtrlIndex) ( 32000U )
439#define Eth_IsPacketMemCacheable(CtrlIndex) ( TRUE )
440#define Eth_IsRingMemCacheable(CtrlIndex) ( TRUE )
441#define Eth_IsDescMemCacheable(CtrlIndex) ( TRUE )
442
443#define Eth_GetRxMtuLength(CtrlIndex) ( 1522U )
444#define Eth_GetTxChanStartNum(CtrlIndex) ( 30U )
445#define Eth_GetRxChanStartNum(CtrlIndex) ( 30U )
446#define Eth_GetEgressFifoTotalNum(CtrlIndex) ( 1U )
447#define Eth_GetIngressFifoTotalNum(CtrlIndex) ( 1U )
448#define Eth_GetRingTotalNum(CtrlIndex) ( 6U )
449#define Eth_GetTxChanTotalNum(CtrlIndex) ( 1U )
450#define Eth_GetRxChanTotalNum(CtrlIndex) ( 1U )
451#define Eth_GetFlowTotalNumber(CtrlIndex) ( 1U )
452#define Eth_GetEventTotalNum(CtrlIndex) ( 2U )
453#define Eth_GetRingEventTotalNum(CtrlIndex) ( 2U )
454#define Eth_GetTxDmaThresholdNum(CtrlIndex) ( 1U )
455#define Eth_GetRxDmaThresholdNum(CtrlIndex) ( 1U )
456
457#define Eth_GetEgressFifoPacketNum(CtrlIndex, FifoIdx) ( 16U )
458#define Eth_GetEgressFifoPacketSize(CtrlIndex, FifoIdx) ( 1522U )
459
460#define Eth_GetIngressFifoPacketNum(CtrlIndex, FifoIdx) ( 16U )
461#define Eth_GetIngressFifoPacketSize(CtrlIndex, FifoIdx) ( 1522U )
462
463#define Eth_GetEgressFifoPriorityAsignment(CtrlIndex, Prio) ( 0U )
464#define Eth_GetIngressFifoPriorirtyAsignment(CtrlIndex, Prio) ( 0U )
465
466#define Eth_GetEgressFifoDescAddress(CtrlIndex, FifoIdx, DescIdx) (&Eth_Ctrl_0_Egress_Descriptor_0[(DescIdx)] )
467#define Eth_GetEgressFifoDescUserInfoAddress(CtrlIndex, FifoIdx, DescIdx) (&Eth_Ctrl_0_Egress_Descriptor_0[(DescIdx)].bufferInfo )
468#define Eth_GetEgressFifoBufferDataAddress(CtrlIndex, FifoIdx, DescIdx) (&Eth_Ctrl_0_Egress_BufferMem_0[(DescIdx) * 1536U] )
469#define Eth_GetEgressFifoQueueAddress(CtrlIndex, FifoIdx) ( Eth_Ctrl_0_Egress_Queue_0 )
470#define Eth_GetEgressFifoBufferState(CtrlIndex, FifoIdx, BufferIdx) ( Eth_Ctrl_0_Egress_BufferState_0[BufferIdx] )
471#define Eth_SetEgressFifoBufferState(CtrlIndex, FifoIdx, BufferIdx, Val) ( Eth_Ctrl_0_Egress_BufferState_0[BufferIdx] = Val )
472
473#define Eth_GetIngressFifoDescAddress(CtrlIndex, FifoIdx, DescIdx) (&Eth_Ctrl_0_Ingress_Descriptor_0[(DescIdx)] )
474#define Eth_GetIngressFifoDescUserInfoAddress(CtrlIndex, FifoIdx, DescIdx) (&Eth_Ctrl_0_Ingress_Descriptor_0[(DescIdx)].bufferInfo )
475#define Eth_GetIngressFifoBufferDataAddress(CtrlIndex, FifoIdx, DescIdx) (&Eth_Ctrl_0_Ingress_BufferMem_0[(DescIdx) * 1536U] )
476#define Eth_GetIngressFifoQueueAddress(CtrlIndex, FifoIdx) ( Eth_Ctrl_0_Ingress_Queue_0 )
477#define Eth_GetIngressFifoBufferState(CtrlIndex, FifoIdx, BufferIdx) ( Eth_Ctrl_0_Ingress_BufferState_0[(BufferIdx)] )
478#define Eth_SetIngressFifoBufferState(CtrlIndex, FifoIdx, BufferIdx, Val) ( Eth_Ctrl_0_Ingress_BufferState_0[(BufferIdx)] = Val )
479
480#define Eth_GetEgressFifoCqIdx(CtrlIndex, FifoIdx) ( 0U )
481#define Eth_GetEgressFifoFqIdx(CtrlIndex, FifoIdx) ( 2U )
482#define Eth_GetIngressFifoCqIdx(CtrlIndex, FifoIdx) ( 1U )
483#define Eth_GetIngressFifoFqIdx(CtrlIndex, FifoIdx) ( 3U )
484
485#define Eth_GetTxChanId(CtrlIndex, ChIdx) ( 30U )
486#define Eth_GetTxChanTdCqRingIdx(CtrlIndex, ChIdx) ( 4U )
487#define Eth_GetTxChanDepth(CtrlIndex, ChIdx) ( 128U )
488
489#define Eth_GetRxChanId(CtrlIndex, ChIdx) ( 30U )
490#define Eth_GetRxChanTdCqRingIdx(CtrlIndex, ChIdx) ( 5U )
491#define Eth_GetRxChanFlowTotalNum(CtrlIndex, ChIdx) ( 1U )
492#define Eth_GetRxChanFlowStartNum(CtrlIndex, ChIdx) ( 60U )
493
494#define Eth_GetFlowId(CtrlIndex, FlowIdx) ( 60U )
495#define Eth_GetFlowCqRingIdx(CtrlIndex, FlowIdx) ( 1U )
496#define Eth_GetFlowFqRingIdx(CtrlIndex, FlowIdx) ( 3U )
497
498#define Eth_GetDynRingElemAddress(CtrlIndex, RingIdx) ( &Eth_RingDyn_Ctrl_0[(RingIdx)] )
499
500#define Eth_GetRingHwId(CtrlIndex, RingIdx) ( Eth_Udma_RingCfg_0[(RingIdx)].hwId )
501#define Eth_GetRingTotalElemNum(CtrlIndex, RingIdx) ( Eth_Udma_RingCfg_0[(RingIdx)].size )
502#define Eth_GetRingPriority(CtrlIndex, RingIdx) ( Eth_Udma_RingCfg_0[(RingIdx)].priority )
503#define Eth_GetRingMemBaseAddress(CtrlIndex, RingIdx) ( Eth_Udma_RingCfg_0[(RingIdx)].memPtr )
504
505#define Eth_GetRingEventRingIdx(CtrlIndex, RingEvtIdx) ( Eth_RingEventCfg_Ctrl_0[(RingEvtIdx)].ringIdx )
506#define Eth_GetRingEventGlobalEventNum(CtrlIndex, RingEvtIdx) ( Eth_RingEventCfg_Ctrl_0[(RingEvtIdx)].globalEvent )
507#define Eth_GetRingEventVirtBitNum(CtrlIndex, RingEvtIdx) ( Eth_RingEventCfg_Ctrl_0[(RingEvtIdx)].virtBitNum )
508#define Eth_GetRingEventEventIdx(CtrlIndex, RingEvtIdx) ( Eth_RingEventCfg_Ctrl_0[(RingEvtIdx)].eventIdx )
509#define Eth_GetRingEventSrcOffsetNum(CtrlIndex, RingEvtIdx) ( Eth_RingEventCfg_Ctrl_0[(RingEvtIdx)].srcOffset )
510
511#define Eth_GetEventCoreIntrNum(CtrlIndex, EvtIdx) ( Eth_EventCfg_Ctrl_0[(EvtIdx)].coreIntrNum )
512#define Eth_GetEventVirtIntrNum(CtrlIndex, EvtIdx) ( Eth_EventCfg_Ctrl_0[(EvtIdx)].virtIntrNum )
513#define Eth_GetEventIrIntrNum(CtrlIndex, EvtIdx) ( Eth_EventCfg_Ctrl_0[(EvtIdx)].IrIntrNum )
514#define Eth_GetTxEventCoreIntrNum(CtrlIndex) ( 80U )
515#define Eth_GetRxEventCoreIntrNum(CtrlIndex) ( 81U )
516
517#define Eth_GetHwTimerTotalNum(CtrlIndex) ( 0U )
518#define Eth_GetHwTimerId(CtrlIndex, Index) ( 0xFFU )
519#define Eth_GetHwTimerCounter(CtrlIndex, Index) ( 0xFFU )
520#define Eth_GetHwTimerBaseAddr(CtrlIndex, Index) ( 0xFFFFFFFFU )
521
522#define Eth_GetHwTimerDynRunningState(CtrlIndex, Index) ( FALSE )
523#define Eth_SetHwTimerDynRunningState(CtrlIndex, Index, Val) ( (void)(CtrlIndex) )
524
525#define Eth_GetRxIrqPacingEnable(CtrlIndex) ( FALSE )
526#define Eth_GetTxIrqPacingEnable(CtrlIndex) ( FALSE )
527
528#define Eth_GetRxHwTimerIdx(CtrlIndex) ( 255U )
529#define Eth_GetTxHwTimerIdx(CtrlIndex) ( 255U )
530#define Eth_GetIrqPacingEnable(CtrlIndex) ( (Eth_GetTxIrqPacingEnable(CtrlIndex) == TRUE) || (Eth_GetRxIrqPacingEnable(CtrlIndex) == TRUE) )
531
532#define Eth_GetProxyTotalNum(CtrlIndex) ( 1U )
533#define Eth_GetProxyThreadNum(CtrlIndex, ProxyIdx) ( 9U )
534#define Eth_GetProxyTargetRingNum(CtrlIndex, ProxyIdx) ( 0U )
535#define Eth_GetRingProxyIdx(CtrlIndex, RingIdx) ( Eth_Udma_RingCfg_0[(RingIdx)].proxyIdx )
536#define Eth_GetRingMode(CtrlIndex, RingIdx) ( Eth_Udma_RingCfg_0[(RingIdx)].ringMode )
537
538#define Eth_GetDmaRingCfg(CtrlIdx) ( (Eth_DmaRingCfg)&AppUtils_EthRingCfg )
539
540/* @} */
541
542/* ========================================================================== */
543/* Structures and Enums */
544/* ========================================================================== */
545
553typedef void (*Eth_RpcCmdComplete)(uint8 CtrlIdx,
554 uint8 sid,
555 sint32 status);
556
561typedef void (*Eth_RpcFwRegistered)(uint8 CtrlIdx);
562
564typedef Std_ReturnType (*Eth_DmaRingCfg)(uint8 ctrlIdx, uint8 ringIdx);
565
567typedef void (*Eth_MdioDelayNsecFunc)(void);
568
570typedef Std_ReturnType (*EthVirtMacDmaTxChannelPair)(uint8 ctrlIdx);
571
573typedef Std_ReturnType (*EthVirtMacDmaTxChannelUnPair)(uint8 ctrlIdx);
574
576typedef Std_ReturnType (*EthVirtMacDmaFLowCfg)(uint8 ctrlIdx);
577
579typedef Std_ReturnType (*EthVirtMacDmaFLowReset)(uint8 ctrlIdx);
580
587typedef enum
588{
589 ETH_PORT_HOST_PORT = 0x00U,
591 ETH_MAC_PORT_FIRST = 0x01U,
593 ETH_PORT_MAC_PORT_1 = 0x01U,
595 ETH_PORT_MAC_PORT_2 = 0x02U,
597 ETH_PORT_MAC_PORT_3 = 0x03U,
599 ETH_PORT_MAC_PORT_4 = 0x04U,
601 ETH_PORT_MAC_PORT_5 = 0x05U,
603 ETH_PORT_MAC_PORT_6 = 0x06U,
605 ETH_PORT_MAC_PORT_7 = 0x07U,
607 ETH_PORT_MAC_PORT_8 = 0x08U,
612
635
641typedef enum
642{
643 ETH_ENETTYPE_CPSW2G = 0x00U,
645 ETH_ENETTYPE_CPSW9G = 0x01U,
647 ETH_ENETTYPE_CPSW5G = 0x02U,
649 ETH_ENETTYPE_CPSW3G = 0x03U,
654
660typedef enum
661{
667
672typedef struct Eth_CpswConfigType_s
673{
676 uint32 aleAddr;
678 uint32 cptsAddr;
680 uint32 mdioAddr;
682 uint32 ctrlAddr;
695
700typedef struct Eth_Udma_RingCfgType_s
701{
702 uint64 *memPtr;
704 uint32 hwId;
706 uint32 size;
708 uint32 priority;
710 uint32 proxyIdx;
712 uint32 ringMode;
715
720typedef struct Eth_Udma_ProxyCfgType_s
721{
722 uint32 proxyId;
727
732typedef struct Eth_Udma_EventCfgType_s
733{
738 uint32 IrIntrNum;
741
746typedef struct Eth_Udma_RingEventCfgType_s
747{
748 uint8 ringIdx;
750 uint8 eventIdx;
756 uint32 srcOffset;
759
764typedef struct Eth_FifoRingMapCfgType_s
765{
771
776typedef struct Eth_ChannelCfgType_s
777{
780 uint16 chId;
783
788typedef struct Eth_FlowCfgType_s
789{
794 uint16 flowId;
797
802typedef struct Eth_ChannelFlowCfgType_s
803{
804 uint8 flowNum;
809
814typedef struct Eth_FifoHandleType_s
815{
818 Eth_DescType *descPtr;
820 Eth_QueueType *queuePtr;
824 uint16 fifoNum;
826 uint16 elemSize;
828 uint16 pktSize;
830 uint32 totalSize;
833
905
931
936typedef struct Eth_HwTimerConfigType_s
937{
945
1015
1020typedef struct Eth_ConfigType_s
1021{
1025
1026/* ========================================================================== */
1027/* Generate Configuration */
1028/* ========================================================================== */
1029
1030#define ETH_START_SEC_CONST_UNSPECIFIED
1031#include "Eth_MemMap.h"
1032
1033extern CONST(Eth_Udma_RingCfgType, ETH_VAR_NO_INIT) Eth_Udma_RingCfg_0[6U];
1034extern CONST(Eth_Udma_EventCfgType, ETH_VAR_NO_INIT) Eth_EventCfg_Ctrl_0[2U];
1035extern CONST(Eth_Udma_RingEventCfgType, ETH_VAR_NO_INIT) Eth_RingEventCfg_Ctrl_0[2U];
1036
1037
1038#define ETH_STOP_SEC_CONST_UNSPECIFIED
1039#include "Eth_MemMap.h"
1040
1041#define ETH_START_SEC_VAR_NO_INIT_UNSPECIFIED_128
1042#include "Eth_MemMap.h"
1043
1044extern VAR(uint8, ETH_VAR_NO_INIT_128) Eth_Ctrl_0_Egress_BufferMem_0[24576U];
1045extern VAR(Eth_DescType, ETH_VAR_NO_INIT_128) Eth_Ctrl_0_Egress_Descriptor_0[16U];
1046
1047extern VAR(uint8, ETH_VAR_NO_INIT_128) Eth_Ctrl_0_Ingress_BufferMem_0[24576U];
1048extern VAR(Eth_DescType, ETH_VAR_NO_INIT_128) Eth_Ctrl_0_Ingress_Descriptor_0[16U];
1049
1050#define ETH_STOP_SEC_VAR_NO_INIT_UNSPECIFIED_128
1051#include "Eth_MemMap.h"
1052
1053#define ETH_START_SEC_VAR_NO_INIT_8
1054#include "Eth_MemMap.h"
1055
1056extern VAR(uint8, ETH_VAR_NO_INIT) Eth_Ctrl_0_Egress_BufferState_0[16U];
1057extern VAR(uint8, ETH_VAR_NO_INIT) Eth_Ctrl_0_Ingress_BufferState_0[16U];
1058
1059#define ETH_STOP_SEC_VAR_NO_INIT_8
1060#include "Eth_MemMap.h"
1061
1062#define ETH_START_SEC_VAR_NO_INIT_UNSPECIFIED
1063#include "Eth_MemMap.h"
1064
1065extern VAR(Eth_QueueType, ETH_VAR_NO_INIT) Eth_Ctrl_0_Egress_Queue_0[1U];
1066extern VAR(Eth_QueueType, ETH_VAR_NO_INIT) Eth_Ctrl_0_Ingress_Queue_0[1U];
1067
1068extern VAR(Eth_Udma_RingDynType, ETH_VAR_NO_INIT) Eth_RingDyn_Ctrl_0[6U];
1069#define ETH_STOP_SEC_VAR_NO_INIT_UNSPECIFIED
1070#include "Eth_MemMap.h"
1071
1072/* ========================================================================== */
1073/* Function Declarations */
1074/* ========================================================================== */
1075
1076/* ========================================================================== */
1077/* External Function Prototype */
1078/* ========================================================================== */
1079#define ETH_START_SEC_CODE
1080#include "Eth_MemMap.h"
1081
1082
1083
1085extern Std_ReturnType AppUtils_EthRingCfg(uint8 ctrlIdx, uint8 Id);
1086
1087#define ETH_STOP_SEC_CODE
1088#include "Eth_MemMap.h"
1089
1090
1091/* ========================================================================== */
1092/* Internal Function Declarations */
1093/* ========================================================================== */
1094
1095
1100#define Eth_GetMdioWriteLowBaseNsec() do { \
1101 NOP50;\
1102 NOP30;\
1103 } while(TRUE == FALSE)
1104#define Eth_GetMdioWriteHighBaseNsec() do { \
1105 NOP100;\
1106 } while(TRUE == FALSE)
1107#define Eth_GetMdioReadLowBaseNsec() do { \
1108 NOP50;\
1109 NOP30;\
1110 } while(TRUE == FALSE)
1111#define Eth_GetMdioReadHighBaseNsec() do { \
1112 NOP100;\
1113 NOP50;\
1114 NOP30;\
1115 } while(TRUE == FALSE)
1116/* @} */
1117
1122#define Eth_GetMdioWriteLowDelayNsec(CtrlIdx) do { \
1123 NOP100;\
1124 NOP50;\
1125 NOP20;\
1126 } while(TRUE == FALSE)
1127#define Eth_GetMdioWriteHighDelayNsec(CtrlIdx) do { \
1128 NOP100;\
1129 NOP50;\
1130 } while(TRUE == FALSE)
1131#define Eth_GetMdioReadLowDelayNsec(CtrlIdx) do { \
1132 NOP100;\
1133 NOP50;\
1134 NOP20;\
1135 } while(TRUE == FALSE)
1136#define Eth_GetMdioReadHighDelayNsec(CtrlIdx) do { \
1137 NOP50;\
1138 NOP20;\
1139 } while(TRUE == FALSE)
1140/* @} */
1141
1142#ifdef __cplusplus
1143}
1144#endif
1145
1146#endif /* #ifndef ETH_CFG_H_ */
1147
1148/* @} */
Eth_Udma_EventCfgType * eventCfgPtr
Definition Eth_Cfg.h:840
Eth_QueueType * queuePtr
Definition Eth_Cfg.h:820
boolean enableTxIrq
Definition Eth_Cfg.h:970
Eth_DescType * descPtr
Definition Eth_Cfg.h:818
Eth_ChannelCfgType * txChanCfgPtr
Definition Eth_Cfg.h:860
uint32 cppiClockFreqHz
Definition Eth_Cfg.h:684
boolean isRingMemCacheable
Definition Eth_Cfg.h:976
uint16 fifoNum
Definition Eth_Cfg.h:824
Eth_HwTimerConfigType * hwTimerCfgPtr
Definition Eth_Cfg.h:1002
uint8 * egressFifoPrioAssignCfgPtr
Definition Eth_Cfg.h:856
uint16 flowId
Definition Eth_Cfg.h:794
uint32 hwLoopTimeout
Definition Eth_Cfg.h:968
uint16 rxCoreIrq
Definition Eth_Cfg.h:898
uint32 macAddrLow
Definition Eth_Cfg.h:960
boolean loopback
Definition Eth_Cfg.h:966
uint32 size
Definition Eth_Cfg.h:706
boolean useDefaultMac
Definition Eth_Cfg.h:962
uint8 totalHwTimerNum
Definition Eth_Cfg.h:988
uint8 * bufferState
Definition Eth_Cfg.h:822
uint32 phyMacAddr
Definition Eth_Cfg.h:674
boolean enableVirtualMac
Definition Eth_Cfg.h:980
Eth_MdioOperModeType mdioOpMode
Definition Eth_Cfg.h:690
Std_ReturnType(* Eth_DmaRingCfg)(uint8 ctrlIdx, uint8 ringIdx)
Mdio delay in nsec function pointer.
Definition Eth_Cfg.h:564
Eth_FifoRingMapCfgType * ingressFifoRingMapCfgPtr
Definition Eth_Cfg.h:854
uint8 rxThresholdNum
Definition Eth_Cfg.h:882
Eth_MdioDelayNsecFunc mdioWriteHighDelayNsec
Definition Eth_Cfg.h:1008
uint32 ethfwRpcComChId
Definition Eth_Cfg.h:912
uint16 pktSize
Definition Eth_Cfg.h:828
#define ETH_CTRL_ID_MAX
Eth max controller ID.
Definition Eth_Cfg.h:252
Eth_MdioDelayNsecFunc mdioReadLowDelayNsec
Definition Eth_Cfg.h:1010
uint8 totalRxChanNum
Definition Eth_Cfg.h:890
uint8 * fifoBufferPtr
Definition Eth_Cfg.h:816
uint16 startTxNum
Definition Eth_Cfg.h:870
uint32 ctrlIdx
Definition Eth_Cfg.h:952
uint16 startRxNum
Definition Eth_Cfg.h:872
uint8 totalRingEventNum
Definition Eth_Cfg.h:878
Eth_ChannelCfgType * rxChanCfgPtr
Definition Eth_Cfg.h:862
uint8 totalRingNum
Definition Eth_Cfg.h:876
uint8 hwTimerId
Definition Eth_Cfg.h:938
Eth_Udma_ProxyCfgType * proxyCfgPtr
Definition Eth_Cfg.h:868
boolean enableRxIrqPacing
Definition Eth_Cfg.h:984
uint16 demEventNum
Definition Eth_Cfg.h:982
uint8 fqRingIdx
Definition Eth_Cfg.h:792
Eth_Udma_RingDynType * ringDynPtr
Definition Eth_Cfg.h:844
Eth_Udma_RingCfgType * ringCfgPtr
Definition Eth_Cfg.h:842
uint32 totalSize
Definition Eth_Cfg.h:830
boolean isDescMemCacheable
Definition Eth_Cfg.h:978
void(* Eth_MdioDelayNsecFunc)(void)
Pair PSIL TX channel function pointer.
Definition Eth_Cfg.h:567
uint16 startFlowId
Definition Eth_Cfg.h:806
uint16 txCoreIrq
Definition Eth_Cfg.h:896
uint8 txHwTimerIdx
Definition Eth_Cfg.h:992
Eth_MdioOperModeType
MDIO operating mode.
Definition Eth_Cfg.h:661
uint16 * demEventCfg
Definition Eth_Cfg.h:996
Eth_ChannelFlowCfgType * rxChanFlowCfgPtr
Definition Eth_Cfg.h:864
Eth_PortType macPort
Definition Eth_Cfg.h:956
Eth_DmaRingCfg EthDmaRingCfgOps
Definition Eth_Cfg.h:902
uint8 rxHwTimerIdx
Definition Eth_Cfg.h:990
Std_ReturnType(* EthVirtMacDmaTxChannelUnPair)(uint8 ctrlIdx)
Flow config function pointer.
Definition Eth_Cfg.h:573
Eth_FifoRingMapCfgType * egressFifoRingMapCfgPtr
Definition Eth_Cfg.h:852
uint16 elemSize
Definition Eth_Cfg.h:826
uint32 ctrlAddr
Definition Eth_Cfg.h:682
uint8 totalTxChanNum
Definition Eth_Cfg.h:888
uint32 hwTimerCounter
Definition Eth_Cfg.h:940
Eth_MacConnectionType connType
Definition Eth_Cfg.h:964
uint8 virtBitNum
Definition Eth_Cfg.h:752
uint8 cqRingIdx
Definition Eth_Cfg.h:766
uint8 totalFlowNum
Definition Eth_Cfg.h:892
Eth_FlowCfgType * flowCfgPtr
Definition Eth_Cfg.h:866
Std_ReturnType(* EthVirtMacDmaTxChannelPair)(uint8 ctrlIdx)
Unpair PSIL TX channel function pointer.
Definition Eth_Cfg.h:570
const Eth_Udma_RingCfgType Eth_Udma_RingCfg_0[6U]
uint32 hwId
Definition Eth_Cfg.h:704
uint32 mdioBusFreqHz
Definition Eth_Cfg.h:688
uint8 fqRingIdx
Definition Eth_Cfg.h:768
uint8 totalIngressFifoNum
Definition Eth_Cfg.h:886
uint8 tdCqRingIdx
Definition Eth_Cfg.h:778
void(* Eth_RpcCmdComplete)(uint8 CtrlIdx, uint8 sid, sint32 status)
Application callback to indicate Rpc dispatch command completion.
Definition Eth_Cfg.h:553
boolean enableRxIrq
Definition Eth_Cfg.h:972
VAR(uint8, ETH_VAR_NO_INIT_128) Eth_Ctrl_0_Egress_BufferMem_0[24576U]
uint32 IrIntrNum
Definition Eth_Cfg.h:738
const Eth_Udma_RingEventCfgType Eth_RingEventCfg_Ctrl_0[2U]
uint32 aleAddr
Definition Eth_Cfg.h:676
uint16 rxMtuLength
Definition Eth_Cfg.h:900
Eth_MdioDelayNsecFunc mdioWriteLowDelayNsec
Definition Eth_Cfg.h:1006
Eth_CpswConfigType * cpswCfg
Definition Eth_Cfg.h:998
Std_ReturnType(* EthVirtMacDmaFLowReset)(uint8 ctrlIdx)
Definition Eth_Cfg.h:579
Std_ReturnType(* EthVirtMacDmaFLowCfg)(uint8 ctrlIdx)
Flow reset function pointer.
Definition Eth_Cfg.h:576
uint32 srcOffset
Definition Eth_Cfg.h:756
Eth_RpcFwRegistered fwRegisteredCb
Definition Eth_Cfg.h:920
boolean pollRecvMsgInEthMain
Definition Eth_Cfg.h:918
uint32 globalEvent
Definition Eth_Cfg.h:754
uint8 flowNum
Definition Eth_Cfg.h:804
uint32 cptsAddr
Definition Eth_Cfg.h:678
const Eth_Udma_EventCfgType Eth_EventCfg_Ctrl_0[2U]
EthVirtMacDmaFLowReset dmaFLowReset
Definition Eth_Cfg.h:928
boolean enableTxIrqPacing
Definition Eth_Cfg.h:986
uint32 ringMode
Definition Eth_Cfg.h:712
Eth_FifoHandleType * egressFifoCfgPtr
Definition Eth_Cfg.h:848
Eth_EnetType
Enet Cpsw Type identifier.
Definition Eth_Cfg.h:642
uint32 coreIntrNum
Definition Eth_Cfg.h:734
Std_ReturnType AppUtils_EthRingCfg(uint8 ctrlIdx, uint8 Id)
EthVirtMacDmaTxChannelPair txChannelPair
Definition Eth_Cfg.h:922
uint8 eventIdx
Definition Eth_Cfg.h:750
Eth_FifoHandleType * ingressFifoCfgPtr
Definition Eth_Cfg.h:850
Eth_Udma_RingEventCfgType * ringEvenCfgPtr
Definition Eth_Cfg.h:846
uint8 ringIdx
Definition Eth_Cfg.h:748
EthVirtMacDmaFLowCfg dmaFLowCfg
Definition Eth_Cfg.h:926
uint16 totalProxyNum
Definition Eth_Cfg.h:894
uint32 proxyId
Definition Eth_Cfg.h:722
uint32 hwTimerBaseAddr
Definition Eth_Cfg.h:942
uint32 virtIntrNum
Definition Eth_Cfg.h:736
void(* Eth_RpcFwRegistered)(uint8 CtrlIdx)
Application callback to indicate Ethernet firmware registered with the Eth RPC client.
Definition Eth_Cfg.h:561
boolean * hwTimerDynPtr
Definition Eth_Cfg.h:1004
uint8 totalEventNum
Definition Eth_Cfg.h:874
uint8 txThresholdNum
Definition Eth_Cfg.h:880
uint32 cptsRefClockFreq
Definition Eth_Cfg.h:692
EthRemoteCfg_VirtPort remoteVirtPort
Definition Eth_Cfg.h:914
Eth_VirtualMacConfigType * virtualMacCfg
Definition Eth_Cfg.h:994
uint64 * memPtr
Definition Eth_Cfg.h:702
Eth_MacConnectionType
Type/Speed/Duplex connection type.
Definition Eth_Cfg.h:620
Eth_MdioDelayNsecFunc mdioReadHighDelayNsec
Definition Eth_Cfg.h:1012
Eth_EnetType enetType
Definition Eth_Cfg.h:954
EthVirtMacDmaTxChannelUnPair txChannelUnPair
Definition Eth_Cfg.h:924
uint32 macAddrHigh
Definition Eth_Cfg.h:958
boolean isPacketMemCacheable
Definition Eth_Cfg.h:974
uint8 * ingressFifoPrioAssignCfgPtr
Definition Eth_Cfg.h:858
uint32 mdioAddr
Definition Eth_Cfg.h:680
uint32 proxyIdx
Definition Eth_Cfg.h:710
Eth_Udma_CfgType * dmaCfgPtr
Definition Eth_Cfg.h:1000
uint8 cqRingIdx
Definition Eth_Cfg.h:790
Eth_RpcCmdComplete rpcCmdComplete
Definition Eth_Cfg.h:916
uint8 totalEgressFifoNum
Definition Eth_Cfg.h:884
uint32 targetNumRingId
Definition Eth_Cfg.h:724
uint32 priority
Definition Eth_Cfg.h:708
Eth_PortType
Port identifier.
Definition Eth_Cfg.h:588
uint16 chId
Definition Eth_Cfg.h:780
boolean enableMdioIrq
Definition Eth_Cfg.h:686
@ ETH_MDIO_OPMODE_NORMAL
Definition Eth_Cfg.h:662
@ ETH_MDIO_OPMODE_MANUAL
Definition Eth_Cfg.h:664
@ ETH_ENETTYPE_CPSW5G
Definition Eth_Cfg.h:647
@ ETH_ENETTYPE_CPSWLAST
Definition Eth_Cfg.h:651
@ ETH_ENETTYPE_CPSW2G
Definition Eth_Cfg.h:643
@ ETH_ENETTYPE_CPSW3G
Definition Eth_Cfg.h:649
@ ETH_ENETTYPE_CPSW9G
Definition Eth_Cfg.h:645
@ ETH_MAC_CONN_TYPE_RGMII_DETECT_INBAND
Definition Eth_Cfg.h:631
@ ETH_MAC_CONN_TYPE_RMII_100
Definition Eth_Cfg.h:623
@ ETH_MAC_CONN_TYPE_RGMII_FORCE_1000_FULL
Definition Eth_Cfg.h:629
@ ETH_MAC_CONN_TYPE_RGMII_FORCE_100_FULL
Definition Eth_Cfg.h:627
@ ETH_MAC_CONN_TYPE_RGMII_FORCE_100_HALF
Definition Eth_Cfg.h:625
@ ETH_MAC_CONN_TYPE_RMII_10
Definition Eth_Cfg.h:621
@ ETH_PORT_MAC_PORT_3
Definition Eth_Cfg.h:597
@ ETH_PORT_MAC_PORT_7
Definition Eth_Cfg.h:605
@ ETH_PORT_MAC_PORT_6
Definition Eth_Cfg.h:603
@ ETH_PORT_MAC_PORT_8
Definition Eth_Cfg.h:607
@ ETH_PORT_MAC_PORT_1
Definition Eth_Cfg.h:593
@ ETH_PORT_MAC_PORT_LAST
Definition Eth_Cfg.h:609
@ ETH_PORT_MAC_PORT_5
Definition Eth_Cfg.h:601
@ ETH_PORT_HOST_PORT
Definition Eth_Cfg.h:589
@ ETH_MAC_PORT_FIRST
Definition Eth_Cfg.h:591
@ ETH_PORT_MAC_PORT_2
Definition Eth_Cfg.h:595
@ ETH_PORT_MAC_PORT_4
Definition Eth_Cfg.h:599
Eth channel configuration type Configuration related to channel.
Definition Eth_Cfg.h:777
Eth channel flow configuration type Configuration related to channel flow.
Definition Eth_Cfg.h:803
Eth configuration type Configuration data of all controller.
Definition Eth_Cfg.h:1021
Eth controller configuration type Configuration related to Eth controller configuration.
Definition Eth_Cfg.h:951
Eth Cpsw Configurations type Configuration related to Cpsw data.
Definition Eth_Cfg.h:673
Eth Fifo configuration type Configuration related to Fifo.
Definition Eth_Cfg.h:815
Eth Fifo ring map configuration type Configuration related to fifo map to ring.
Definition Eth_Cfg.h:765
Eth flow configuration type Configuration related to flow.
Definition Eth_Cfg.h:789
Eth driver hardware timer configuration data Configuration related to hardware timer.
Definition Eth_Cfg.h:937
Eth Udma configuration type Configuration related to Udma.
Definition Eth_Cfg.h:839
Eth Udma event Configurations type Configuration related to Udma event.
Definition Eth_Cfg.h:733
Eth Udma Proxy Configurations type Configuration related to Udma proxy.
Definition Eth_Cfg.h:721
Eth Udma ring Configurations type Configuration related to Udma ring.
Definition Eth_Cfg.h:701
Eth ring event configuration type Configuration related to ring event.
Definition Eth_Cfg.h:747
Eth driver virtual mac configuration data Configuration related to virtual MAC configuration.
Definition Eth_Cfg.h:911