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 : 2024-08-23 09:39:18
72 SW Ver : 10.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_ENABLE_MII_API (STD_ON)
158
160#define ETH_UPDATE_PHYS_ADDR_FILTER_API (STD_ON)
161
163#define ETH_VIRTUALMAC_NOTIFYMSGRECEIVED_API (STD_OFF)
164
166#define ETH_VIRTUALMAC_SUBSCRIBEALLTRAFFIC_API (STD_OFF)
167
169#define ETH_VIRTUALMAC_UNSUBSCRIBEALLTRAFFIC_API (STD_OFF)
170
172#define ETH_VIRTUALMAC_SUBSCRIBEDSTMAC_API (STD_OFF)
173
175#define ETH_VIRTUALMAC_UNSUBSCRIBEDSTMAC_API (STD_OFF)
176
178#define ETH_VIRTUALMAC_ASSOCIATEIPV4MACADDR_API (STD_OFF)
179
181#define ETH_VIRTUALMAC_DISASSOCIATEIPV4MACADDR_API (STD_OFF)
182
184#define ETH_VIRTUALMAC_ADD_UNICAST_MACADDR_API (STD_OFF)
185
187#define ETH_VIRTUALMAC_ADD_MCAST_MACADDR_API (STD_OFF)
188
190#define ETH_VIRTUALMAC_DEL_MACADDR_API (STD_OFF)
191
193#define ETH_VIRTUALMAC_ADD_VLAN_API (STD_OFF)
194
196#define ETH_VIRTUALMAC_DEL_VLAN_API (STD_OFF)
197
198
200#define ETH_ETHIF_CBK_HEADER "EthIf_Cbk.h"
201
203#define ETH_ISR_TYPE (ETH_ISR_CAT2)
205#define ETH_OS_COUNTER_ID ((CounterType)OsCounter_0)
207#define ETH_OS_COUNTER_FREQ (1000000000U)
208
210#define ETH_INVALID_RING_ID (0xFFFFU)
212#define ETH_INVALID_EVENT_ID (0xFFFFU)
214#define ETH_INVALID_CHAN_ID (0xFFFFU)
216#define ETH_INVALID_FLOW_ID (0xFFFFU)
218#define ETH_INVALID_IRQ_ID (0xFFFFU)
220#define ETH_DEM_NO_EVENT (0xFFFFU)
221
223#define ETH_VIRTUALMAC_SUPPORT (STD_OFF)
225#define ETH_VIRTUALMAC_FWINFO_TIMEOUT (0U)
226
227
233#define EthConf_EthCtrlConfig_EthConfig_0 (0U)
234#define ETH_CTRL_ID_0 (0U)
235/* @} */
236
241#define ETH_PRE_COMPILE_VARIANT (STD_ON)
242#define ETH_LINK_TIME_VARIANT (STD_OFF)
243#define ETH_POST_BUILD_VARIANT (STD_OFF)
244/* @} */
245
249#define ETH_CTRL_ID_MAX (1U)
250
251
258#define NOP1 asm (" NOP ")
259#define NOP5 NOP1; NOP1; NOP1; NOP1; NOP1
260#define NOP10 NOP5; NOP5
261#define NOP20 NOP10; NOP10
262#define NOP30 NOP20; NOP10
263#define NOP40 NOP30; NOP10
264#define NOP50 NOP40; NOP10
265#define NOP100 NOP50; NOP50
266#define NOP200 NOP100; NOP100
267#define NOP300 NOP200; NOP100
268#define NOP400 NOP300; NOP100
269#define NOP500 NOP400; NOP100
270/* @} */
271
276#define ETH_DMA_IR_SUPPORT (STD_ON)
277#define ETH_DMA_CQ_RING_SUPPORT (STD_ON)
278#define ETH_DMA_TEARDOWN_SUPPORT (STD_ON)
279#define ETH_DMA_PROXY_SUPPORT (STD_ON)
280#define ETH_DMA_RX_CH_SPERATE (STD_OFF)
281/* @} */
282
287#define UDMA_DEVICE_ID_RING (235U)
288#define UDMA_DEVICE_ID_UDMA (236U)
289#define UDMA_DEVICE_ID_PSIL (232U)
290#define UDMA_DEVICE_ID_IA (233U)
291#define UDMA_DEVICE_ID_IR (237U)
292#define UDMA_DEVICE_ID_CORE (250U)
293#define UDMA_DEVICE_ID_PROXY (234U)
294/* @} */
295
300#define UDMA_TX_CHANNEL_PEER_OFFSET (0xf000U)
301#define UDMA_RX_CHANNEL_PEER_OFFSET (0x7000U)
302#define UDMA_SOURCE_THREAD_OFFSET (0x6000U)
303#define UDMA_DEST_THREAD_OFFSET (0xe000U)
304/* @} */
305
310#define ETH_DMA_TX_BASE_REG (0x2aa00000U)
311#define ETH_DMA_RX_BASE_REG (0x2a800000U)
312#define ETH_DMA_RINGRT_BASE (0x2b800000U)
313#define ETH_DMA_RINGCFG_BASE (0x28440000U)
314#define ETH_DMA_INTAGGR_INTR_BASE (0x2a700000U)
315/* @} */
316
321#define ETH_DMA_TXCRT_CHAN_CTL(CHAN) (0x00000000U + ((CHAN) * 0x1000U))
322#define ETH_DMA_TXCRT_CHAN_PEER8(CHAN) (0x00000220U + ((CHAN) * 0x1000U))
323#define ETH_DMA_RXCRT_CHAN_CTL(CHAN) (0x00000000U + ((CHAN) * 0x1000U))
324#define ETH_DMA_RXCRT_CHAN_PEER8(CHAN) (0x00000220U + ((CHAN) * 0x1000U))
325
326#define ETH_DMA_RINGRT_RING_FDB(RING) (0x00000010U + ((RING) * 0x1000U))
327#define ETH_DMA_RINGRT_RING_FOCC(RING) (0x00000018U + ((RING) * 0x1000U))
328#define ETH_DMA_RINGRT_RING_RDB(RING) (0x00000010U + ((RING) * 0x1000U))
329#define ETH_DMA_RINGRT_RING_ROCC(RING) (0x00000018U + ((RING) * 0x1000U))
330#define ETH_DMA_RINGRT_RING_HWOCC(RING) (0x00000020U + ((RING) * 0x1000U))
331#define ETH_DMA_RINGCFG_RING_SIZE(RING) (0x00000048U + ((RING) * 0x100U))
332
333#define ETH_DMA_INTAGGR_INTR_VINT_ENABLE_SET(VINT) (ETH_DMA_INTAGGR_INTR_BASE + 0x00000000U + ((VINT) * 0x1000U))
334#define ETH_DMA_INTAGGR_INTR_VINT_ENABLE_CLEAR(VINT) (ETH_DMA_INTAGGR_INTR_BASE + 0x00000008U + ((VINT) * 0x1000U))
335#define ETH_DMA_INTAGGR_INTR_VINT_STATUS_SET(VINT) (ETH_DMA_INTAGGR_INTR_BASE + 0x00000010U + ((VINT) * 0x1000U))
336#define ETH_DMA_INTAGGR_INTR_VINT_STATUS_CLEAR(VINT) (ETH_DMA_INTAGGR_INTR_BASE + 0x00000018U + ((VINT) * 0x1000U))
337#define ETH_DMA_INTAGGR_INTR_VINT_STATUSM(VINT) (ETH_DMA_INTAGGR_INTR_BASE + 0x00000020U + ((VINT) * 0x1000U))
338
339#define Eth_GetRingFDBReg(RingNum) (ETH_DMA_RINGRT_BASE + ETH_DMA_RINGRT_RING_FDB((RingNum)))
340#define Eth_GetRingFOCCReg(RingNum) (ETH_DMA_RINGRT_BASE + ETH_DMA_RINGRT_RING_FOCC((RingNum)))
341#define Eth_GetRingRDBReg(RingNum) (ETH_DMA_RINGRT_BASE + ETH_DMA_RINGRT_RING_RDB((RingNum)))
342#define Eth_GetRingROCCReg(RingNum) (ETH_DMA_RINGRT_BASE + ETH_DMA_RINGRT_RING_ROCC((RingNum)))
343#define Eth_GetRingHWOCCReg(RingNum) (ETH_DMA_RINGRT_BASE + ETH_DMA_RINGRT_RING_HWOCC((RingNum)))
344#define Eth_GetRingSizeReg(RingNum) (ETH_DMA_RINGCFG_BASE + ETH_DMA_RINGCFG_RING_SIZE((RingNum)))
345
346#define Eth_GetTxChannelCtlRegAddress(ChanId) (ETH_DMA_TX_BASE_REG + ETH_DMA_TXCRT_CHAN_CTL((ChanId)))
347#define Eth_GetTxChannelPeer8RegAddress(ChanId) (ETH_DMA_TX_BASE_REG + ETH_DMA_TXCRT_CHAN_PEER8((ChanId)))
348#define Eth_GetRxChannelCtlRegAddress(ChanId) (ETH_DMA_RX_BASE_REG + ETH_DMA_RXCRT_CHAN_CTL((ChanId)))
349#define Eth_GetRxChannelPeer8RegAddress(ChanId) (ETH_DMA_RX_BASE_REG + ETH_DMA_RXCRT_CHAN_PEER8((ChanId)))
350
351#define CSL_PROXY0_TARGET0_DATA_BASE (0x2a500000U)
352#define CSL_PROXY_TARGET0_PROXY_CTL(PROXY) (CSL_PROXY0_TARGET0_DATA_BASE + 0x00000000U + ((PROXY)*0x1000U))
353#define CSL_PROXY_TARGET0_PROXY_DATA_FIELD(PROXY) (CSL_PROXY0_TARGET0_DATA_BASE + 0x00000200U + ((PROXY)*0x1000U))
354/* @} */
355
359#define UDMA_WAIT_TEARDOWN_COUNTER (10000u)
360
361
365#define ETH_DEM_EVENT_SUPPORT (STD_OFF)
366
371#define ETH_RX_MTU_HOST_PORT_LENGTH (1522U)
372
373
374
379#define Eth_Cpsw_GetPhyMacRegAddr() ( 0x40f00200U )
380#define Eth_Cpsw_GetAleRegAddr() ( 0x4603e000U )
381#define Eth_Cpsw_GetCptsRegAddr() ( 0x4603d000U )
382#define Eth_Cpsw_GetMdioRegAddr() ( 0x46000f00U )
383#define Eth_Cpsw_GetCtrlRegAddr() ( 0x46020000U )
384#define Eth_Cpsw_GetCppiClockFreq() ( 333333333U )
385
386#define Eth_Cpsw_GetCptsRefClockFreq() ( 1U )
387#define Eth_Cpsw_GetMdioBusClockFreq() ( 2200000U )
388#define Eth_Cpsw_GetMdioOpMode() ( ETH_MDIO_OPMODE_MANUAL )
389#define Eth_Cpsw_GetMdioEnableInterrupt() ( TRUE )
390/* @} */
391
396#define Eth_GetDem_E_HARDWARE_ERROR(CtrlIndex) ( ETH_DEM_NO_EVENT )
397#define Eth_GetDem_E_LATECOLLISION(CtrlIndex) ( ETH_DEM_NO_EVENT )
398#define Eth_GetDem_E_MULTIPLECOLLISION(CtrlIndex) ( ETH_DEM_NO_EVENT )
399#define Eth_GetDem_E_SINGLECOLLISION(CtrlIndex) ( ETH_DEM_NO_EVENT )
400#define Eth_GetDem_E_ALIGNMENT(CtrlIndex) ( ETH_DEM_NO_EVENT )
401#define Eth_GetDem_E_OVERSIZEFRAME(CtrlIndex) ( ETH_DEM_NO_EVENT )
402#define Eth_GetDem_E_UNDERSIZEFRAME(CtrlIndex) ( ETH_DEM_NO_EVENT )
403#define Eth_GetDem_E_CRC(CtrlIndex) ( ETH_DEM_NO_EVENT )
404#define Eth_GetDem_E_RX_FRAMES_LOST(CtrlIndex) ( ETH_DEM_NO_EVENT )
405#define Eth_GetDem_E_ACCESS(CtrlIndex) ( ETH_DEM_NO_EVENT )
406#define Eth_GetDem_E_TX_INTERNAL(CtrlIndex) ( ETH_DEM_NO_EVENT )
407/* @} */
408
413#define Eth_IsVirtualMacModeEnable(CtrlIndex) ( FALSE )
414#define Eth_GetTxChannelThreadOffset(CtrlIndex) ( 0xf000U )
415#define Eth_VirtMacGetEthFwRpcComChannelId(CtrlIndex) ( 0xFFFFU )
416#define Eth_VirtMacGetEthPollRecvMsgInEthMain(CtrlIndex) ( FALSE )
417#define Eth_VirtMacGetRpcCmdCompleteFuncPtr(CtrlIndex) ( (Eth_RpcCmdComplete)NULL_PTR )
418#define Eth_VirtMacGetFwRegisterFuncPtr(CtrlIndex) ( (Eth_RpcFwRegistered)NULL_PTR )
419#define Eth_VirtMacGetRemoteVirtPort(CtrlIndex) ( ETHREMOTECFG_SWITCH_PORT_1 )
420
421#define Eth_VirtMacGetDmaTxChannelPairAll(CtrlIdx) ( (EthVirtMacDmaTxChannelPair)NULL_PTR )
422#define Eth_VirtMacGetDmaTxChannelUnpairAll(CtrlIdx) ( (EthVirtMacDmaTxChannelUnpair)NULL_PTR )
423#define Eth_VirtMacGetDmaFlowCfgAll(CtrlIdx) ( (EthVirtMacDmaFLowCfg)NULL_PTR )
424#define Eth_VirtMacGetDmaFlowResetAll(CtrlIdx) ( (EthVirtMacDmaFLowReset)NULL_PTR )
425
426#define Eth_GetTxEnableInterrupt(CtrlIndex) ( TRUE )
427#define Eth_GetRxEnableInterrupt(CtrlIndex) ( TRUE )
428#define Eth_GetEnetType(CtrlIndex) ( ETH_ENETTYPE_CPSW2G )
429#define Eth_GetMacPortNum(CtrlIndex) ( ETH_PORT_MAC_PORT_1 )
430#define Eth_GetMacAddressHigh(CtrlIndex) ( 0xaabbccddU )
431#define Eth_GetMacAddressLow(CtrlIndex) ( 0xeeffU )
432#define Eth_UseDefaultMacAddress(CtrlIndex) ( TRUE )
433#define Eth_GetMiiConnectionType(CtrlIndex) ( ETH_MAC_CONN_TYPE_RGMII_DETECT_INBAND )
434#define Eth_GetLoopBackMode(CtrlIndex) ( FALSE )
435#define Eth_GetHardwareLoopTimeout(CtrlIndex) ( 32000U )
436#define Eth_IsPacketMemCacheable(CtrlIndex) ( TRUE )
437#define Eth_IsRingMemCacheable(CtrlIndex) ( TRUE )
438#define Eth_IsDescMemCacheable(CtrlIndex) ( TRUE )
439
440#define Eth_GetRxMtuLength(CtrlIndex) ( 1522U )
441#define Eth_GetTxChanStartNum(CtrlIndex) ( 30U )
442#define Eth_GetRxChanStartNum(CtrlIndex) ( 30U )
443#define Eth_GetEgressFifoTotalNum(CtrlIndex) ( 1U )
444#define Eth_GetIngressFifoTotalNum(CtrlIndex) ( 1U )
445#define Eth_GetRingTotalNum(CtrlIndex) ( 6U )
446#define Eth_GetTxChanTotalNum(CtrlIndex) ( 1U )
447#define Eth_GetRxChanTotalNum(CtrlIndex) ( 1U )
448#define Eth_GetFlowTotalNumber(CtrlIndex) ( 1U )
449#define Eth_GetEventTotalNum(CtrlIndex) ( 2U )
450#define Eth_GetRingEventTotalNum(CtrlIndex) ( 2U )
451#define Eth_GetTxDmaThresholdNum(CtrlIndex) ( 1U )
452#define Eth_GetRxDmaThresholdNum(CtrlIndex) ( 1U )
453
454#define Eth_GetEgressFifoPacketNum(CtrlIndex, FifoIdx) ( 16U )
455#define Eth_GetEgressFifoPacketSize(CtrlIndex, FifoIdx) ( 1522U )
456
457#define Eth_GetIngressFifoPacketNum(CtrlIndex, FifoIdx) ( 16U )
458#define Eth_GetIngressFifoPacketSize(CtrlIndex, FifoIdx) ( 1522U )
459
460#define Eth_GetEgressFifoPriorityAsignment(CtrlIndex, Prio) ( 0U )
461#define Eth_GetIngressFifoPriorirtyAsignment(CtrlIndex, Prio) ( 0U )
462
463#define Eth_GetEgressFifoDescAddress(CtrlIndex, FifoIdx, DescIdx) (&Eth_Ctrl_0_Egress_Descriptor_0[(DescIdx)] )
464#define Eth_GetEgressFifoDescUserInfoAddress(CtrlIndex, FifoIdx, DescIdx) (&Eth_Ctrl_0_Egress_Descriptor_0[(DescIdx)].bufferInfo )
465#define Eth_GetEgressFifoBufferDataAddress(CtrlIndex, FifoIdx, DescIdx) (&Eth_Ctrl_0_Egress_BufferMem_0[(DescIdx) * 1536U] )
466#define Eth_GetEgressFifoQueueAddress(CtrlIndex, FifoIdx) ( Eth_Ctrl_0_Egress_Queue_0 )
467#define Eth_GetEgressFifoBufferState(CtrlIndex, FifoIdx, BufferIdx) ( Eth_Ctrl_0_Egress_BufferState_0[BufferIdx] )
468#define Eth_SetEgressFifoBufferState(CtrlIndex, FifoIdx, BufferIdx, Val) ( Eth_Ctrl_0_Egress_BufferState_0[BufferIdx] = Val )
469
470#define Eth_GetIngressFifoDescAddress(CtrlIndex, FifoIdx, DescIdx) (&Eth_Ctrl_0_Ingress_Descriptor_0[(DescIdx)] )
471#define Eth_GetIngressFifoDescUserInfoAddress(CtrlIndex, FifoIdx, DescIdx) (&Eth_Ctrl_0_Ingress_Descriptor_0[(DescIdx)].bufferInfo )
472#define Eth_GetIngressFifoBufferDataAddress(CtrlIndex, FifoIdx, DescIdx) (&Eth_Ctrl_0_Ingress_BufferMem_0[(DescIdx) * 1536U] )
473#define Eth_GetIngressFifoQueueAddress(CtrlIndex, FifoIdx) ( Eth_Ctrl_0_Ingress_Queue_0 )
474#define Eth_GetIngressFifoBufferState(CtrlIndex, FifoIdx, BufferIdx) ( Eth_Ctrl_0_Ingress_BufferState_0[(BufferIdx)] )
475#define Eth_SetIngressFifoBufferState(CtrlIndex, FifoIdx, BufferIdx, Val) ( Eth_Ctrl_0_Ingress_BufferState_0[(BufferIdx)] = Val )
476
477#define Eth_GetEgressFifoCqIdx(CtrlIndex, FifoIdx) ( 0U )
478#define Eth_GetEgressFifoFqIdx(CtrlIndex, FifoIdx) ( 2U )
479#define Eth_GetIngressFifoCqIdx(CtrlIndex, FifoIdx) ( 1U )
480#define Eth_GetIngressFifoFqIdx(CtrlIndex, FifoIdx) ( 3U )
481
482#define Eth_GetTxChanId(CtrlIndex, ChIdx) ( 30U )
483#define Eth_GetTxChanTdCqRingIdx(CtrlIndex, ChIdx) ( 4U )
484#define Eth_GetTxChanDepth(CtrlIndex, ChIdx) ( 128U )
485
486#define Eth_GetRxChanId(CtrlIndex, ChIdx) ( 30U )
487#define Eth_GetRxChanTdCqRingIdx(CtrlIndex, ChIdx) ( 5U )
488#define Eth_GetRxChanFlowTotalNum(CtrlIndex, ChIdx) ( 1U )
489#define Eth_GetRxChanFlowStartNum(CtrlIndex, ChIdx) ( 60U )
490
491#define Eth_GetFlowId(CtrlIndex, FlowIdx) ( 60U )
492#define Eth_GetFlowCqRingIdx(CtrlIndex, FlowIdx) ( 1U )
493#define Eth_GetFlowFqRingIdx(CtrlIndex, FlowIdx) ( 3U )
494
495#define Eth_GetDynRingElemAddress(CtrlIndex, RingIdx) ( &Eth_RingDyn_Ctrl_0[(RingIdx)] )
496
497#define Eth_GetRingHwId(CtrlIndex, RingIdx) ( Eth_Udma_RingCfg_0[(RingIdx)].hwId )
498#define Eth_GetRingTotalElemNum(CtrlIndex, RingIdx) ( Eth_Udma_RingCfg_0[(RingIdx)].size )
499#define Eth_GetRingPriority(CtrlIndex, RingIdx) ( Eth_Udma_RingCfg_0[(RingIdx)].priority )
500#define Eth_GetRingMemBaseAddress(CtrlIndex, RingIdx) ( Eth_Udma_RingCfg_0[(RingIdx)].memPtr )
501
502#define Eth_GetRingEventRingIdx(CtrlIndex, RingEvtIdx) ( Eth_RingEventCfg_Ctrl_0[(RingEvtIdx)].ringIdx )
503#define Eth_GetRingEventGlobalEventNum(CtrlIndex, RingEvtIdx) ( Eth_RingEventCfg_Ctrl_0[(RingEvtIdx)].globalEvent )
504#define Eth_GetRingEventVirtBitNum(CtrlIndex, RingEvtIdx) ( Eth_RingEventCfg_Ctrl_0[(RingEvtIdx)].virtBitNum )
505#define Eth_GetRingEventEventIdx(CtrlIndex, RingEvtIdx) ( Eth_RingEventCfg_Ctrl_0[(RingEvtIdx)].eventIdx )
506#define Eth_GetRingEventSrcOffsetNum(CtrlIndex, RingEvtIdx) ( Eth_RingEventCfg_Ctrl_0[(RingEvtIdx)].srcOffset )
507
508#define Eth_GetEventCoreIntrNum(CtrlIndex, EvtIdx) ( Eth_EventCfg_Ctrl_0[(EvtIdx)].coreIntrNum )
509#define Eth_GetEventVirtIntrNum(CtrlIndex, EvtIdx) ( Eth_EventCfg_Ctrl_0[(EvtIdx)].virtIntrNum )
510#define Eth_GetEventIrIntrNum(CtrlIndex, EvtIdx) ( Eth_EventCfg_Ctrl_0[(EvtIdx)].IrIntrNum )
511#define Eth_GetTxEventCoreIntrNum(CtrlIndex) ( 80U )
512#define Eth_GetRxEventCoreIntrNum(CtrlIndex) ( 81U )
513
514#define Eth_GetHwTimerTotalNum(CtrlIndex) ( 0U )
515#define Eth_GetHwTimerId(CtrlIndex, Index) ( 0xFFU )
516#define Eth_GetHwTimerCounter(CtrlIndex, Index) ( 0xFFU )
517#define Eth_GetHwTimerBaseAddr(CtrlIndex, Index) ( 0xFFFFFFFFU )
518
519#define Eth_GetHwTimerDynRunningState(CtrlIndex, Index) ( FALSE )
520#define Eth_SetHwTimerDynRunningState(CtrlIndex, Index, Val) ( (void)(CtrlIndex) )
521
522#define Eth_GetRxIrqPacingEnable(CtrlIndex) ( FALSE )
523#define Eth_GetTxIrqPacingEnable(CtrlIndex) ( FALSE )
524
525#define Eth_GetRxHwTimerIdx(CtrlIndex) ( 255U )
526#define Eth_GetTxHwTimerIdx(CtrlIndex) ( 255U )
527#define Eth_GetIrqPacingEnable(CtrlIndex) ( (Eth_GetTxIrqPacingEnable(CtrlIndex) == TRUE) || (Eth_GetRxIrqPacingEnable(CtrlIndex) == TRUE) )
528
529#define Eth_GetProxyTotalNum(CtrlIndex) ( 1U )
530#define Eth_GetProxyThreadNum(CtrlIndex, ProxyIdx) ( 9U )
531#define Eth_GetProxyTargetRingNum(CtrlIndex, ProxyIdx) ( 0U )
532#define Eth_GetRingProxyIdx(CtrlIndex, RingIdx) ( Eth_Udma_RingCfg_0[(RingIdx)].proxyIdx )
533#define Eth_GetRingMode(CtrlIndex, RingIdx) ( Eth_Udma_RingCfg_0[(RingIdx)].ringMode )
534
535#define Eth_GetDmaRingCfg(CtrlIdx) ( (Eth_DmaRingCfg)&AppUtils_EthRingCfg )
536
537/* @} */
538
539/* ========================================================================== */
540/* Structures and Enums */
541/* ========================================================================== */
542
550typedef void (*Eth_RpcCmdComplete)(uint8 CtrlIdx,
551 uint8 sid,
552 sint32 status);
553
558typedef void (*Eth_RpcFwRegistered)(uint8 CtrlIdx);
559
561typedef Std_ReturnType (*Eth_DmaRingCfg)(uint8 ctrlIdx, uint8 ringIdx);
562
564typedef void (*Eth_MdioDelayNsecFunc)(void);
565
567typedef Std_ReturnType (*EthVirtMacDmaTxChannelPair)(uint8 ctrlIdx);
568
570typedef Std_ReturnType (*EthVirtMacDmaTxChannelUnPair)(uint8 ctrlIdx);
571
573typedef Std_ReturnType (*EthVirtMacDmaFLowCfg)(uint8 ctrlIdx);
574
576typedef Std_ReturnType (*EthVirtMacDmaFLowReset)(uint8 ctrlIdx);
577
584typedef enum
585{
586 ETH_PORT_HOST_PORT = 0x00U,
588 ETH_MAC_PORT_FIRST = 0x01U,
590 ETH_PORT_MAC_PORT_1 = 0x01U,
592 ETH_PORT_MAC_PORT_2 = 0x02U,
594 ETH_PORT_MAC_PORT_3 = 0x03U,
596 ETH_PORT_MAC_PORT_4 = 0x04U,
598 ETH_PORT_MAC_PORT_5 = 0x05U,
600 ETH_PORT_MAC_PORT_6 = 0x06U,
602 ETH_PORT_MAC_PORT_7 = 0x07U,
604 ETH_PORT_MAC_PORT_8 = 0x08U,
609
632
638typedef enum
639{
640 ETH_ENETTYPE_CPSW2G = 0x00U,
642 ETH_ENETTYPE_CPSW9G = 0x01U,
644 ETH_ENETTYPE_CPSW5G = 0x02U,
646 ETH_ENETTYPE_CPSW3G = 0x03U,
651
657typedef enum
658{
664
669typedef struct Eth_CpswConfigType_s
670{
673 uint32 aleAddr;
675 uint32 cptsAddr;
677 uint32 mdioAddr;
679 uint32 ctrlAddr;
692
697typedef struct Eth_Udma_RingCfgType_s
698{
699 uint64 *memPtr;
701 uint32 hwId;
703 uint32 size;
705 uint32 priority;
707 uint32 proxyIdx;
709 uint32 ringMode;
712
717typedef struct Eth_Udma_ProxyCfgType_s
718{
719 uint32 proxyId;
724
729typedef struct Eth_Udma_EventCfgType_s
730{
735 uint32 IrIntrNum;
738
743typedef struct Eth_Udma_RingEventCfgType_s
744{
745 uint8 ringIdx;
747 uint8 eventIdx;
753 uint32 srcOffset;
756
761typedef struct Eth_FifoRingMapCfgType_s
762{
768
773typedef struct Eth_ChannelCfgType_s
774{
777 uint16 chId;
780
785typedef struct Eth_FlowCfgType_s
786{
791 uint16 flowId;
794
799typedef struct Eth_ChannelFlowCfgType_s
800{
801 uint8 flowNum;
806
811typedef struct Eth_FifoHandleType_s
812{
815 Eth_DescType *descPtr;
817 Eth_QueueType *queuePtr;
821 uint16 fifoNum;
823 uint16 elemSize;
825 uint16 pktSize;
827 uint32 totalSize;
830
902
928
933typedef struct Eth_HwTimerConfigType_s
934{
942
1012
1017typedef struct Eth_ConfigType_s
1018{
1022
1023/* ========================================================================== */
1024/* Generate Configuration */
1025/* ========================================================================== */
1026
1027#define ETH_START_SEC_CONST_UNSPECIFIED
1028#include "Eth_MemMap.h"
1029
1030extern CONST(Eth_Udma_RingCfgType, ETH_VAR_NO_INIT) Eth_Udma_RingCfg_0[6U];
1031extern CONST(Eth_Udma_EventCfgType, ETH_VAR_NO_INIT) Eth_EventCfg_Ctrl_0[2U];
1032extern CONST(Eth_Udma_RingEventCfgType, ETH_VAR_NO_INIT) Eth_RingEventCfg_Ctrl_0[2U];
1033
1034
1035#define ETH_STOP_SEC_CONST_UNSPECIFIED
1036#include "Eth_MemMap.h"
1037
1038#define ETH_START_SEC_VAR_NO_INIT_UNSPECIFIED_128
1039#include "Eth_MemMap.h"
1040
1041extern VAR(uint8, ETH_VAR_NO_INIT_128) Eth_Ctrl_0_Egress_BufferMem_0[24576U];
1042extern VAR(Eth_DescType, ETH_VAR_NO_INIT_128) Eth_Ctrl_0_Egress_Descriptor_0[16U];
1043
1044extern VAR(uint8, ETH_VAR_NO_INIT_128) Eth_Ctrl_0_Ingress_BufferMem_0[24576U];
1045extern VAR(Eth_DescType, ETH_VAR_NO_INIT_128) Eth_Ctrl_0_Ingress_Descriptor_0[16U];
1046
1047#define ETH_STOP_SEC_VAR_NO_INIT_UNSPECIFIED_128
1048#include "Eth_MemMap.h"
1049
1050#define ETH_START_SEC_VAR_NO_INIT_8
1051#include "Eth_MemMap.h"
1052
1053extern VAR(uint8, ETH_VAR_NO_INIT) Eth_Ctrl_0_Egress_BufferState_0[16U];
1054extern VAR(uint8, ETH_VAR_NO_INIT) Eth_Ctrl_0_Ingress_BufferState_0[16U];
1055
1056#define ETH_STOP_SEC_VAR_NO_INIT_8
1057#include "Eth_MemMap.h"
1058
1059#define ETH_START_SEC_VAR_NO_INIT_UNSPECIFIED
1060#include "Eth_MemMap.h"
1061
1062extern VAR(Eth_QueueType, ETH_VAR_NO_INIT) Eth_Ctrl_0_Egress_Queue_0[1U];
1063extern VAR(Eth_QueueType, ETH_VAR_NO_INIT) Eth_Ctrl_0_Ingress_Queue_0[1U];
1064
1065extern VAR(Eth_Udma_RingDynType, ETH_VAR_NO_INIT) Eth_RingDyn_Ctrl_0[6U];
1066#define ETH_STOP_SEC_VAR_NO_INIT_UNSPECIFIED
1067#include "Eth_MemMap.h"
1068
1069/* ========================================================================== */
1070/* Function Declarations */
1071/* ========================================================================== */
1072
1073/* ========================================================================== */
1074/* External Function Prototype */
1075/* ========================================================================== */
1076#define ETH_START_SEC_CODE
1077#include "Eth_MemMap.h"
1078
1079
1080
1082extern Std_ReturnType AppUtils_EthRingCfg(uint8 ctrlIdx, uint8 Id);
1083
1084#define ETH_STOP_SEC_CODE
1085#include "Eth_MemMap.h"
1086
1087
1088/* ========================================================================== */
1089/* Internal Function Declarations */
1090/* ========================================================================== */
1091
1092
1097#define Eth_GetMdioWriteLowBaseNsec() do { \
1098 NOP50;\
1099 NOP30;\
1100 } while(TRUE == FALSE)
1101#define Eth_GetMdioWriteHighBaseNsec() do { \
1102 NOP100;\
1103 } while(TRUE == FALSE)
1104#define Eth_GetMdioReadLowBaseNsec() do { \
1105 NOP50;\
1106 NOP30;\
1107 } while(TRUE == FALSE)
1108#define Eth_GetMdioReadHighBaseNsec() do { \
1109 NOP100;\
1110 NOP50;\
1111 NOP30;\
1112 } while(TRUE == FALSE)
1113/* @} */
1114
1119#define Eth_GetMdioWriteLowDelayNsec(CtrlIdx) do { \
1120 NOP100;\
1121 NOP50;\
1122 NOP20;\
1123 } while(TRUE == FALSE)
1124#define Eth_GetMdioWriteHighDelayNsec(CtrlIdx) do { \
1125 NOP100;\
1126 NOP50;\
1127 } while(TRUE == FALSE)
1128#define Eth_GetMdioReadLowDelayNsec(CtrlIdx) do { \
1129 NOP100;\
1130 NOP50;\
1131 NOP20;\
1132 } while(TRUE == FALSE)
1133#define Eth_GetMdioReadHighDelayNsec(CtrlIdx) do { \
1134 NOP50;\
1135 NOP20;\
1136 } while(TRUE == FALSE)
1137/* @} */
1138
1139#ifdef __cplusplus
1140}
1141#endif
1142
1143#endif /* #ifndef ETH_CFG_H_ */
1144
1145/* @} */
Eth_Udma_EventCfgType * eventCfgPtr
Definition Eth_Cfg.h:837
Eth_QueueType * queuePtr
Definition Eth_Cfg.h:817
boolean enableTxIrq
Definition Eth_Cfg.h:967
Eth_DescType * descPtr
Definition Eth_Cfg.h:815
Eth_ChannelCfgType * txChanCfgPtr
Definition Eth_Cfg.h:857
uint32 cppiClockFreqHz
Definition Eth_Cfg.h:681
boolean isRingMemCacheable
Definition Eth_Cfg.h:973
uint16 fifoNum
Definition Eth_Cfg.h:821
Eth_HwTimerConfigType * hwTimerCfgPtr
Definition Eth_Cfg.h:999
uint8 * egressFifoPrioAssignCfgPtr
Definition Eth_Cfg.h:853
uint16 flowId
Definition Eth_Cfg.h:791
uint32 hwLoopTimeout
Definition Eth_Cfg.h:965
uint16 rxCoreIrq
Definition Eth_Cfg.h:895
uint32 macAddrLow
Definition Eth_Cfg.h:957
boolean loopback
Definition Eth_Cfg.h:963
uint32 size
Definition Eth_Cfg.h:703
boolean useDefaultMac
Definition Eth_Cfg.h:959
uint8 totalHwTimerNum
Definition Eth_Cfg.h:985
uint8 * bufferState
Definition Eth_Cfg.h:819
uint32 phyMacAddr
Definition Eth_Cfg.h:671
boolean enableVirtualMac
Definition Eth_Cfg.h:977
Eth_MdioOperModeType mdioOpMode
Definition Eth_Cfg.h:687
Std_ReturnType(* Eth_DmaRingCfg)(uint8 ctrlIdx, uint8 ringIdx)
Mdio delay in nsec function pointer.
Definition Eth_Cfg.h:561
Eth_FifoRingMapCfgType * ingressFifoRingMapCfgPtr
Definition Eth_Cfg.h:851
uint8 rxThresholdNum
Definition Eth_Cfg.h:879
Eth_MdioDelayNsecFunc mdioWriteHighDelayNsec
Definition Eth_Cfg.h:1005
uint32 ethfwRpcComChId
Definition Eth_Cfg.h:909
uint16 pktSize
Definition Eth_Cfg.h:825
#define ETH_CTRL_ID_MAX
Eth max controller ID.
Definition Eth_Cfg.h:249
Eth_MdioDelayNsecFunc mdioReadLowDelayNsec
Definition Eth_Cfg.h:1007
uint8 totalRxChanNum
Definition Eth_Cfg.h:887
uint8 * fifoBufferPtr
Definition Eth_Cfg.h:813
uint16 startTxNum
Definition Eth_Cfg.h:867
uint32 ctrlIdx
Definition Eth_Cfg.h:949
uint16 startRxNum
Definition Eth_Cfg.h:869
uint8 totalRingEventNum
Definition Eth_Cfg.h:875
Eth_ChannelCfgType * rxChanCfgPtr
Definition Eth_Cfg.h:859
uint8 totalRingNum
Definition Eth_Cfg.h:873
uint8 hwTimerId
Definition Eth_Cfg.h:935
Eth_Udma_ProxyCfgType * proxyCfgPtr
Definition Eth_Cfg.h:865
boolean enableRxIrqPacing
Definition Eth_Cfg.h:981
uint16 demEventNum
Definition Eth_Cfg.h:979
uint8 fqRingIdx
Definition Eth_Cfg.h:789
Eth_Udma_RingDynType * ringDynPtr
Definition Eth_Cfg.h:841
Eth_Udma_RingCfgType * ringCfgPtr
Definition Eth_Cfg.h:839
uint32 totalSize
Definition Eth_Cfg.h:827
boolean isDescMemCacheable
Definition Eth_Cfg.h:975
void(* Eth_MdioDelayNsecFunc)(void)
Pair PSIL TX channel function pointer.
Definition Eth_Cfg.h:564
uint16 startFlowId
Definition Eth_Cfg.h:803
uint16 txCoreIrq
Definition Eth_Cfg.h:893
uint8 txHwTimerIdx
Definition Eth_Cfg.h:989
Eth_MdioOperModeType
MDIO operating mode.
Definition Eth_Cfg.h:658
uint16 * demEventCfg
Definition Eth_Cfg.h:993
Eth_ChannelFlowCfgType * rxChanFlowCfgPtr
Definition Eth_Cfg.h:861
Eth_PortType macPort
Definition Eth_Cfg.h:953
Eth_DmaRingCfg EthDmaRingCfgOps
Definition Eth_Cfg.h:899
uint8 rxHwTimerIdx
Definition Eth_Cfg.h:987
Std_ReturnType(* EthVirtMacDmaTxChannelUnPair)(uint8 ctrlIdx)
Flow config function pointer.
Definition Eth_Cfg.h:570
Eth_FifoRingMapCfgType * egressFifoRingMapCfgPtr
Definition Eth_Cfg.h:849
uint16 elemSize
Definition Eth_Cfg.h:823
uint32 ctrlAddr
Definition Eth_Cfg.h:679
uint8 totalTxChanNum
Definition Eth_Cfg.h:885
uint32 hwTimerCounter
Definition Eth_Cfg.h:937
Eth_MacConnectionType connType
Definition Eth_Cfg.h:961
uint8 virtBitNum
Definition Eth_Cfg.h:749
uint8 cqRingIdx
Definition Eth_Cfg.h:763
uint8 totalFlowNum
Definition Eth_Cfg.h:889
Eth_FlowCfgType * flowCfgPtr
Definition Eth_Cfg.h:863
Std_ReturnType(* EthVirtMacDmaTxChannelPair)(uint8 ctrlIdx)
Unpair PSIL TX channel function pointer.
Definition Eth_Cfg.h:567
const Eth_Udma_RingCfgType Eth_Udma_RingCfg_0[6U]
uint32 hwId
Definition Eth_Cfg.h:701
uint32 mdioBusFreqHz
Definition Eth_Cfg.h:685
uint8 fqRingIdx
Definition Eth_Cfg.h:765
uint8 totalIngressFifoNum
Definition Eth_Cfg.h:883
uint8 tdCqRingIdx
Definition Eth_Cfg.h:775
void(* Eth_RpcCmdComplete)(uint8 CtrlIdx, uint8 sid, sint32 status)
Application callback to indicate Rpc dispatch command completion.
Definition Eth_Cfg.h:550
boolean enableRxIrq
Definition Eth_Cfg.h:969
VAR(uint8, ETH_VAR_NO_INIT_128) Eth_Ctrl_0_Egress_BufferMem_0[24576U]
uint32 IrIntrNum
Definition Eth_Cfg.h:735
const Eth_Udma_RingEventCfgType Eth_RingEventCfg_Ctrl_0[2U]
uint32 aleAddr
Definition Eth_Cfg.h:673
uint16 rxMtuLength
Definition Eth_Cfg.h:897
Eth_MdioDelayNsecFunc mdioWriteLowDelayNsec
Definition Eth_Cfg.h:1003
Eth_CpswConfigType * cpswCfg
Definition Eth_Cfg.h:995
Std_ReturnType(* EthVirtMacDmaFLowReset)(uint8 ctrlIdx)
Definition Eth_Cfg.h:576
Std_ReturnType(* EthVirtMacDmaFLowCfg)(uint8 ctrlIdx)
Flow reset function pointer.
Definition Eth_Cfg.h:573
uint32 srcOffset
Definition Eth_Cfg.h:753
Eth_RpcFwRegistered fwRegisteredCb
Definition Eth_Cfg.h:917
boolean pollRecvMsgInEthMain
Definition Eth_Cfg.h:915
uint32 globalEvent
Definition Eth_Cfg.h:751
uint8 flowNum
Definition Eth_Cfg.h:801
uint32 cptsAddr
Definition Eth_Cfg.h:675
const Eth_Udma_EventCfgType Eth_EventCfg_Ctrl_0[2U]
EthVirtMacDmaFLowReset dmaFLowReset
Definition Eth_Cfg.h:925
boolean enableTxIrqPacing
Definition Eth_Cfg.h:983
uint32 ringMode
Definition Eth_Cfg.h:709
Eth_FifoHandleType * egressFifoCfgPtr
Definition Eth_Cfg.h:845
Eth_EnetType
Enet Cpsw Type identifier.
Definition Eth_Cfg.h:639
uint32 coreIntrNum
Definition Eth_Cfg.h:731
Std_ReturnType AppUtils_EthRingCfg(uint8 ctrlIdx, uint8 Id)
EthVirtMacDmaTxChannelPair txChannelPair
Definition Eth_Cfg.h:919
uint8 eventIdx
Definition Eth_Cfg.h:747
Eth_FifoHandleType * ingressFifoCfgPtr
Definition Eth_Cfg.h:847
Eth_Udma_RingEventCfgType * ringEvenCfgPtr
Definition Eth_Cfg.h:843
uint8 ringIdx
Definition Eth_Cfg.h:745
EthVirtMacDmaFLowCfg dmaFLowCfg
Definition Eth_Cfg.h:923
uint16 totalProxyNum
Definition Eth_Cfg.h:891
uint32 proxyId
Definition Eth_Cfg.h:719
uint32 hwTimerBaseAddr
Definition Eth_Cfg.h:939
uint32 virtIntrNum
Definition Eth_Cfg.h:733
void(* Eth_RpcFwRegistered)(uint8 CtrlIdx)
Application callback to indicate Ethernet firmware registered with the Eth RPC client.
Definition Eth_Cfg.h:558
boolean * hwTimerDynPtr
Definition Eth_Cfg.h:1001
uint8 totalEventNum
Definition Eth_Cfg.h:871
uint8 txThresholdNum
Definition Eth_Cfg.h:877
uint32 cptsRefClockFreq
Definition Eth_Cfg.h:689
EthRemoteCfg_VirtPort remoteVirtPort
Definition Eth_Cfg.h:911
Eth_VirtualMacConfigType * virtualMacCfg
Definition Eth_Cfg.h:991
uint64 * memPtr
Definition Eth_Cfg.h:699
Eth_MacConnectionType
Type/Speed/Duplex connection type.
Definition Eth_Cfg.h:617
Eth_MdioDelayNsecFunc mdioReadHighDelayNsec
Definition Eth_Cfg.h:1009
Eth_EnetType enetType
Definition Eth_Cfg.h:951
EthVirtMacDmaTxChannelUnPair txChannelUnPair
Definition Eth_Cfg.h:921
uint32 macAddrHigh
Definition Eth_Cfg.h:955
boolean isPacketMemCacheable
Definition Eth_Cfg.h:971
uint8 * ingressFifoPrioAssignCfgPtr
Definition Eth_Cfg.h:855
uint32 mdioAddr
Definition Eth_Cfg.h:677
uint32 proxyIdx
Definition Eth_Cfg.h:707
Eth_Udma_CfgType * dmaCfgPtr
Definition Eth_Cfg.h:997
uint8 cqRingIdx
Definition Eth_Cfg.h:787
Eth_RpcCmdComplete rpcCmdComplete
Definition Eth_Cfg.h:913
uint8 totalEgressFifoNum
Definition Eth_Cfg.h:881
uint32 targetNumRingId
Definition Eth_Cfg.h:721
uint32 priority
Definition Eth_Cfg.h:705
Eth_PortType
Port identifier.
Definition Eth_Cfg.h:585
uint16 chId
Definition Eth_Cfg.h:777
boolean enableMdioIrq
Definition Eth_Cfg.h:683
@ ETH_MDIO_OPMODE_NORMAL
Definition Eth_Cfg.h:659
@ ETH_MDIO_OPMODE_MANUAL
Definition Eth_Cfg.h:661
@ ETH_ENETTYPE_CPSW5G
Definition Eth_Cfg.h:644
@ ETH_ENETTYPE_CPSWLAST
Definition Eth_Cfg.h:648
@ ETH_ENETTYPE_CPSW2G
Definition Eth_Cfg.h:640
@ ETH_ENETTYPE_CPSW3G
Definition Eth_Cfg.h:646
@ ETH_ENETTYPE_CPSW9G
Definition Eth_Cfg.h:642
@ ETH_MAC_CONN_TYPE_RGMII_DETECT_INBAND
Definition Eth_Cfg.h:628
@ ETH_MAC_CONN_TYPE_RMII_100
Definition Eth_Cfg.h:620
@ ETH_MAC_CONN_TYPE_RGMII_FORCE_1000_FULL
Definition Eth_Cfg.h:626
@ ETH_MAC_CONN_TYPE_RGMII_FORCE_100_FULL
Definition Eth_Cfg.h:624
@ ETH_MAC_CONN_TYPE_RGMII_FORCE_100_HALF
Definition Eth_Cfg.h:622
@ ETH_MAC_CONN_TYPE_RMII_10
Definition Eth_Cfg.h:618
@ ETH_PORT_MAC_PORT_3
Definition Eth_Cfg.h:594
@ ETH_PORT_MAC_PORT_7
Definition Eth_Cfg.h:602
@ ETH_PORT_MAC_PORT_6
Definition Eth_Cfg.h:600
@ ETH_PORT_MAC_PORT_8
Definition Eth_Cfg.h:604
@ ETH_PORT_MAC_PORT_1
Definition Eth_Cfg.h:590
@ ETH_PORT_MAC_PORT_LAST
Definition Eth_Cfg.h:606
@ ETH_PORT_MAC_PORT_5
Definition Eth_Cfg.h:598
@ ETH_PORT_HOST_PORT
Definition Eth_Cfg.h:586
@ ETH_MAC_PORT_FIRST
Definition Eth_Cfg.h:588
@ ETH_PORT_MAC_PORT_2
Definition Eth_Cfg.h:592
@ ETH_PORT_MAC_PORT_4
Definition Eth_Cfg.h:596
Eth channel configuration type Configuration related to channel.
Definition Eth_Cfg.h:774
Eth channel flow configuration type Configuration related to channel flow.
Definition Eth_Cfg.h:800
Eth configuration type Configuration data of all controller.
Definition Eth_Cfg.h:1018
Eth controller configuration type Configuration related to Eth controller configuration.
Definition Eth_Cfg.h:948
Eth Cpsw Configurations type Configuration related to Cpsw data.
Definition Eth_Cfg.h:670
Eth Fifo configuration type Configuration related to Fifo.
Definition Eth_Cfg.h:812
Eth Fifo ring map configuration type Configuration related to fifo map to ring.
Definition Eth_Cfg.h:762
Eth flow configuration type Configuration related to flow.
Definition Eth_Cfg.h:786
Eth driver hardware timer configuration data Configuration related to hardware timer.
Definition Eth_Cfg.h:934
Eth Udma configuration type Configuration related to Udma.
Definition Eth_Cfg.h:836
Eth Udma event Configurations type Configuration related to Udma event.
Definition Eth_Cfg.h:730
Eth Udma Proxy Configurations type Configuration related to Udma proxy.
Definition Eth_Cfg.h:718
Eth Udma ring Configurations type Configuration related to Udma ring.
Definition Eth_Cfg.h:698
Eth ring event configuration type Configuration related to ring event.
Definition Eth_Cfg.h:744
Eth driver virtual mac configuration data Configuration related to virtual MAC configuration.
Definition Eth_Cfg.h:908