AM62L FreeRTOS SDK  11.00.00
enet_udma.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) Texas Instruments Incorporated 2020
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  *
8  * Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  *
11  * Redistributions in binary form must reproduce the above copyright
12  * notice, this list of conditions and the following disclaimer in the
13  * documentation and/or other materials provided with the
14  * distribution.
15  *
16  * Neither the name of Texas Instruments Incorporated nor the names of
17  * its contributors may be used to endorse or promote products derived
18  * from this software without specific prior written permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  */
32 
47 #ifndef ENET_UDMA_H_
48 #define ENET_UDMA_H_
49 
50 /* ========================================================================== */
51 /* Include Files */
52 /* ========================================================================== */
53 
54 #include <stdint.h>
58 
59 #include <drivers/udma.h>
60 
61 #ifdef __cplusplus
62 extern "C" {
63 #endif
64 
65 /* ========================================================================== */
66 /* Macros */
67 /* ========================================================================== */
68 
78 #define ENET_UDMA_HPD_SIZE (128U)
79 
81 #define ENET_UDMA_EXTENDED_PKT_INFO_BLOCK_SIZE (16U)
82 
84 #define ENET_UDMA_PROTOCOL_SPECIFIC_INFO_BLOCK_SIZE (16U)
85 
87 #define ENET_UDMA_PKT_DESC_RESERVED_SIZE ( ENET_UDMA_HPD_SIZE - \
88  sizeof(CSL_UdmapCppi5HMPD) - \
89  (ENET_UDMA_EXTENDED_PKT_INFO_BLOCK_SIZE + \
90  ENET_UDMA_PROTOCOL_SPECIFIC_INFO_BLOCK_SIZE))
91 
93 #define ENET_UDMA_RING_MEM_SIZE (sizeof(uint64_t))
94 
110 #define ENET_UDMA_RXMTU_ALIGN (1U << 5U)
111 
113 #define ENET_UDMA_CPSW_MAX_SG_LIST (4U)
114 
116 #define ENET_UDMA_CPSW_HOSTPKTDESC_INDEX (0U)
117 
119 #define ENET_UDMA_CPSW_HOSTBUFDESC_INDEX (1U)
120 
122 #define ENET_UDMA_CPSW_MAX_HOSTBUFDESC_COUNT (ENET_UDMA_CPSW_MAX_SG_LIST - ENET_UDMA_CPSW_HOSTBUFDESC_INDEX)
123 
125 #define ENET_UDMA_HPD_SRC_TAG_LOW_MASK (0xFF)
126 
127 #if ((__ARM_ARCH == 7) && (__ARM_ARCH_PROFILE == 'R'))
128 
129 #define ENETDMA_CACHELINE_ALIGNMENT (32U)
130 #elif (__aarch64__)
131 #define ENETDMA_CACHELINE_ALIGNMENT (64U)
132 #elif ((__ARM_ARCH == 8) && (__ARM_ARCH_PROFILE == 'M'))
133 #define ENETDMA_CACHELINE_ALIGNMENT (64U)
134 #else
135 #error "Enet library compilation not supported on non cortex R cores. Update correct cache line size"
136 #endif
137 
139 #define ENET_UDMA_DESC_ALIGNMENT (64U)
140 
144 typedef struct EnetUdma_Cfg_s EnetDma_Cfg;
145 
151 typedef struct EnetUdma_DmaDescQ_s *EnetUdma_DmaDescQHandle;
152 
163 typedef uint8_t *(*EnetUdma_AllocRingMemFxn)(void *appPriv,
164  uint32_t numRingEle,
165  uint32_t alignSize);
166 
168 typedef void (*EnetUdma_FreeRingMemFxn)(void *appPriv,
169  void *pRingMem,
170  uint32_t numRingEle);
171 
173 typedef struct EnetUdma_DmaDesc_s *(*EnetUdma_AllocDmaDescFxn)(void *appPriv,
174  uint32_t alignSize);
175 
177 typedef void (*EnetUdma_FreeDmaDescFxn)(void *appPriv,
178  struct EnetUdma_DmaDesc_s *dmaDescPtr);
179 
186 typedef void (*EnetDma_PktNotifyCb)(void *cbArg);
187 
190 /* ========================================================================== */
191 /* Structures and Enums */
192 /* ========================================================================== */
193 
209 typedef struct EnetUdma_PktTsInfo_s
210 {
213 
215  uint32_t txPktSeqId;
216 
218  uint8_t txPktMsgType;
219 
221  uint8_t txPktDomain;
222 
224  uint64_t rxPktTs;
226 
242 typedef struct EnetUdma_SGListEntry_s
243 {
251  uint8_t *bufPtr;
252 
256  uint8_t *origBufPtr;
257 
260 
262  uint32_t segmentAllocLen;
263 
266 
278 typedef struct EnetUdma_SGList_s
279 {
287 
289 typedef struct EnetUdma_PktInfo_s
290 {
295 
297  void *appPriv;
298 
304  uint32_t pktState;
305 
315  uint32_t chkSumInfo;
316 
327 
338 
343 
355  uint32_t txPktTc;
356 
358  uint32_t txTsId;
359 
361  uint32_t perDmaFlags;
362 
369 
371 
377 typedef struct EnetUdma_CpswHpdDesc_s
378 {
380  CSL_UdmapCppi5HMPD hostDesc __attribute__ ((aligned(ENET_UDMA_DESC_ALIGNMENT)));
381 
390  uint8_t extendedPktInfo[ENET_UDMA_EXTENDED_PKT_INFO_BLOCK_SIZE];
391 
401 
405 
412 typedef struct EnetUdma_DmaDesc_s
413 {
418 
420  {
421  CSL_UdmapCppi5HMPD desc __attribute__ ((aligned(ENET_UDMA_DESC_ALIGNMENT)));
423 
425  struct EnetUdma_DmaDesc_s *pNextDesc;
426 
432 
451 typedef struct EnetUdma_RingMonCfg_s
452 {
453  #if (ENET_SCICLIENT_AVAILABLE == 1)
454 
455  #endif
456  uint8_t mode;
457 
467  uint32_t data0;
468 
478  uint32_t data1;
480 
481 
487 typedef struct EnetUdma_UdmaRingPrms_s
488 {
491  uint8_t orderId;
492 
494  #if (ENET_SCICLIENT_AVAILABLE ==1)
495  /* Refer \ref tisci_msg_rm_ring_cfg_req::mode */
496  #endif
497  uint8_t mode;
498 
504 
508 
515 typedef struct EnetUdma_UdmaChPrms_s
516 {
517 #if (UDMA_SOC_CFG_UDMAP_PRESENT == 1)
518 
519  EnetUdma_UdmaRingPrms fqRingPrms;
520 #endif
521 
525 
531 typedef struct EnetUdma_UdmaFlowPrms_s
532 {
534  uint8_t einfoPresent;
535 
538  uint8_t psInfoPresent;
539 
542  uint16_t sopOffset;
543 
545  uint16_t defaultRxCQ;
546 
547 #if (ENET_UDMA_FDQ_PRESENT == 1)
548 
551  uint8_t srcTagHi;
552 
556  uint8_t srcTagLo;
557 
561  uint8_t srcTagHiSel;
562 
566  uint8_t srcTagLoSel;
567 
571  uint8_t destTagHi;
572 
576  uint8_t destTagLo;
577 
581  uint8_t destTagHiSel;
582 
586  uint8_t destTagLoSel;
587 #endif
588 
590  uint8_t sizeThreshEn;
591 
593 
599 typedef struct EnetUdma_UdmaChTxPrms_s
600 {
602  uint8_t filterEinfo;
603 
605  uint8_t filterPsWords;
606 
608  #if (ENET_SCICLIENT_AVAILABLE ==1)
609  /* Refer #tisci_msg_rm_udmap_tx_ch_cfg_req::tx_atype */
610  #endif
611  uint8_t addrType;
612 
613  #if (ENET_SCICLIENT_AVAILABLE ==1)
614 
615  #endif
616  uint8_t chanType;
617 
619  uint8_t busPriority;
620 
622  uint8_t busQos;
623 
625  uint8_t busOrderId;
626 
629  #if (ENET_SCICLIENT_AVAILABLE ==1)
630  /* Refer #tisci_msg_rm_udmap_tx_ch_cfg_req::tx_sched_priority */
631  #endif
632  uint8_t dmaPriority;
633 
635  uint8_t txCredit;
636 
642  uint16_t fifoDepth;
644 
648 typedef struct EnetUdma_AutoReclaimPrms_s
649 {
663 
668 
674 
682 typedef struct EnetUdma_OpenRxFlowPrms_s
683 {
686 
688  uint32_t chIdx;
689 
691  uint32_t startIdx;
692 
694  uint32_t flowIdx;
695 
698 
702 
706 
709 
712  uint32_t numRxPkts;
713 
716 
719  uint32_t rxFlowMtu;
720 
728 
731 
734 
737 
740  void *cbArg;
741 
746  bool useProxy;
747 
751 
757 
763 typedef struct EnetUdma_OpenTxChPrms_s
764 {
767 
771  uint32_t chNum;
772 
775 
778 
782 
786 
789  uint32_t numTxPkts;
790 
793 
801 
804 
807 
810 
813  void *cbArg;
814 
819  bool useProxy;
820 
824 
832 typedef struct EnetUdma_RxChInitPrms_s
833 {
834  #if (ENET_SCICLIENT_AVAILABLE == 1)
835 
838  #endif
839  uint8_t dmaPriority;
841 
848 typedef struct EnetUdma_Cfg_s
849 {
852 
855 } EnetUdma_Cfg;
856 
862 typedef struct EnetUdma_DmaCfg_s
863 {
867 
870 /* ========================================================================== */
871 /* Global Variables Declarations */
872 /* ========================================================================== */
873 
874 /* None */
875 
876 /* ========================================================================== */
877 /* Function Declarations */
878 /* ========================================================================== */
879 
882  uint32_t instId,
883  const EnetDma_initCfg *pDmaInitCfg);
885 
906  uint32_t margin);
907 
929  uint32_t margin);
930 
942 
954 
966 
978 
979 /* ========================================================================== */
980 /* Deprecated Function Declarations */
981 /* ========================================================================== */
982 
983 /* None */
984 
985 /* ========================================================================== */
986 /* Static Function Definitions */
987 /* ========================================================================== */
988 
989 /* None */
990 
991 #ifdef __cplusplus
992 }
993 #endif
994 
995 #endif /* ENET_UDMA_H_ */
996 
EnetUdma_RingMonCfg::data1
uint32_t data1
Definition: enet_udma.h:478
EnetUdma_DmaDesc::pNextDesc
struct EnetUdma_DmaDesc_s * pNextDesc
Definition: enet_udma.h:425
EnetUdma_OpenRxFlowPrms::notifyCb
EnetDma_PktNotifyCb notifyCb
Definition: enet_udma.h:705
EnetUdma_RxChInitPrms::dmaPriority
uint8_t dmaPriority
Definition: enet_udma.h:839
EnetUdma_UdmaChTxPrms::fifoDepth
uint16_t fifoDepth
Definition: enet_udma.h:642
EnetDma_initCfg::hUdmaDrv
Udma_DrvHandle hUdmaDrv
Definition: enet_udma.h:865
EnetUdma_OpenRxFlowPrms::numRxPkts
uint32_t numRxPkts
Definition: enet_udma.h:712
ENET_UDMA_EXTENDED_PKT_INFO_BLOCK_SIZE
#define ENET_UDMA_EXTENDED_PKT_INFO_BLOCK_SIZE
Extended Packet Info Block size.
Definition: enet_udma.h:81
EnetUdma_OpenTxChPrms::dmaDescFreeFxn
EnetUdma_FreeDmaDescFxn dmaDescFreeFxn
Definition: enet_udma.h:809
EnetDma_Cfg
struct EnetUdma_Cfg_s EnetDma_Cfg
Opaque handle that holds config Info for Enet DMA channel.
Definition: enet_udma.h:144
EnetUdma_OpenTxChPrms
Param struct for the TX channel open function.
Definition: enet_udma.h:764
EnetUdma_UdmaFlowPrms
UDMA RX channel flow parameters.
Definition: enet_udma.h:532
EnetUdma_FreeDmaDescFxn
void(* EnetUdma_FreeDmaDescFxn)(void *appPriv, struct EnetUdma_DmaDesc_s *dmaDescPtr)
Function pointer type for DMA descriptor free function.
Definition: enet_udma.h:177
EnetUdma_SGListEntry::disableCacheOps
bool disableCacheOps
Definition: enet_udma.h:264
EnetUdma_SGListEntry::segmentFilledLen
uint32_t segmentFilledLen
Definition: enet_udma.h:259
EnetUdma_PktInfo::tsInfo
EnetUdma_PktTsInfo tsInfo
Definition: enet_udma.h:326
EnetUdma_UdmaRingPrms::mode
uint8_t mode
Definition: enet_udma.h:497
EnetUdma_OpenRxFlowPrms::flowPrms
EnetUdma_UdmaFlowPrms flowPrms
Definition: enet_udma.h:708
EnetUdma_checkTxChSanity
int32_t EnetUdma_checkTxChSanity(EnetDma_TxChHandle hTxCh, uint32_t margin)
Check if any packet loss in TX Channel FQ and CQ rings.
EnetUdma_getRxFlowDescPoolHandle
EnetUdma_DmaDescQHandle EnetUdma_getRxFlowDescPoolHandle(EnetDma_RxChHandle hRxFlow)
Get handle to DMA descriptor free pool for RX flow.
EnetUdma_PktTsInfo::rxPktTs
uint64_t rxPktTs
Definition: enet_udma.h:224
EnetDma_SGListEntry
EnetUdma_SGListEntry EnetDma_SGListEntry
Definition: enet_udma.h:288
EnetUdma_PktInfo::pktState
uint32_t pktState
Definition: enet_udma.h:304
EnetUdma_OpenTxChPrms::disableCacheOpsFlag
bool disableCacheOpsFlag
Definition: enet_udma.h:792
EnetUdma_UdmaChTxPrms::dmaPriority
uint8_t dmaPriority
Definition: enet_udma.h:632
EnetUdma_OpenRxFlowPrms::useProxy
bool useProxy
Definition: enet_udma.h:746
EnetUdma_OpenRxFlowPrms::ringMemFreeFxn
EnetUdma_FreeRingMemFxn ringMemFreeFxn
Definition: enet_udma.h:730
EnetUdma_PktTsInfo::txPktDomain
uint8_t txPktDomain
Definition: enet_udma.h:221
EnetUdma_OpenTxChPrms::udmaChPrms
EnetUdma_UdmaChPrms udmaChPrms
Definition: enet_udma.h:774
EnetUdma_PktInfo::txPktTc
uint32_t txPktTc
Definition: enet_udma.h:355
ENET_UDMA_DESC_ALIGNMENT
#define ENET_UDMA_DESC_ALIGNMENT
UDMA descriptor address alignment requirement.
Definition: enet_udma.h:139
enet_types.h
This file contains the basic types using across the Enet driver.
EnetUdma_PktInfo::appPriv
void * appPriv
Definition: enet_udma.h:297
EnetUdma_UdmaChTxPrms::busOrderId
uint8_t busOrderId
Definition: enet_udma.h:625
EnetUdma_UdmaChTxPrms::addrType
uint8_t addrType
Definition: enet_udma.h:611
EnetUdma_AllocRingMemFxn
uint8_t *(* EnetUdma_AllocRingMemFxn)(void *appPriv, uint32_t numRingEle, uint32_t alignSize)
Function pointer type for packet allocation function.
Definition: enet_udma.h:163
Enet_MacPort
Enet_MacPort
MAC port.
Definition: enet_types.h:412
EnetUdma_OpenRxFlowPrms::disableCacheOpsFlag
bool disableCacheOpsFlag
Definition: enet_udma.h:715
EnetUdma_OpenTxChPrms::autoReclaimPrms
EnetUdma_AutoReclaimPrms autoReclaimPrms
Definition: enet_udma.h:822
EnetUdma_RingMonCfg
UDMA ring monitor config parameters.
Definition: enet_udma.h:452
EnetUdma_OpenRxFlowPrms::dmaDescFreeFxn
EnetUdma_FreeDmaDescFxn dmaDescFreeFxn
Definition: enet_udma.h:736
EnetUdma_UdmaRingPrms::ringMonCfg
EnetUdma_RingMonCfg ringMonCfg
Definition: enet_udma.h:506
EnetUdma_Cfg::rxChInitPrms
EnetUdma_RxChInitPrms rxChInitPrms
Definition: enet_udma.h:854
EnetUdma_OpenTxChPrms::useProxy
bool useProxy
Definition: enet_udma.h:819
EnetUdma_OpenTxChPrms::notifyCb
EnetDma_PktNotifyCb notifyCb
Definition: enet_udma.h:785
EnetUdma_OpenRxFlowPrms::flowIdx
uint32_t flowIdx
Definition: enet_udma.h:694
EnetUdma_FreeRingMemFxn
void(* EnetUdma_FreeRingMemFxn)(void *appPriv, void *pRingMem, uint32_t numRingEle)
Function pointer type for packet free function.
Definition: enet_udma.h:168
EnetDma_TxChHandle
struct EnetUdma_TxChObj_s * EnetDma_TxChHandle
Opaque handle that holds software state for Enet TX DMA channel.
Definition: enet_udma_types.h:99
EnetUdma_DmaDesc::hpdDesc
EnetUdma_CpswHpdDesc hpdDesc
Definition: enet_udma.h:417
enet_queue.h
This file contains the type definitions and helper macros for the Enet software queue.
ENET_UDMA_PKT_DESC_RESERVED_SIZE
#define ENET_UDMA_PKT_DESC_RESERVED_SIZE
Extended Packet Info Block size.
Definition: enet_udma.h:87
EnetUdma_OpenRxFlowPrms::chIdx
uint32_t chIdx
Definition: enet_udma.h:688
EnetUdma_PktInfo::txTsId
uint32_t txTsId
Definition: enet_udma.h:358
EnetUdma_UdmaFlowPrms::sizeThreshEn
uint8_t sizeThreshEn
Definition: enet_udma.h:590
EnetUdma_OpenTxChPrms::cbArg
void * cbArg
Definition: enet_udma.h:813
ENET_UDMA_CPSW_MAX_SG_LIST
#define ENET_UDMA_CPSW_MAX_SG_LIST
Definition: enet_udma.h:113
EnetUdma_UdmaRingPrms::orderId
uint8_t orderId
Definition: enet_udma.h:491
EnetDma_PktNotifyCb
void(* EnetDma_PktNotifyCb)(void *cbArg)
Function pointer type for packet notify call back.
Definition: enet_udma.h:186
EnetUdma_UdmaChTxPrms::txCredit
uint8_t txCredit
Definition: enet_udma.h:635
Udma_RingHandle
void * Udma_RingHandle
UDMA ring handle.
Definition: udma_types.h:71
EnetUdma_AutoReclaimPrms::enableFlag
bool enableFlag
Definition: enet_udma.h:662
EnetUdma_UdmaFlowPrms::defaultRxCQ
uint16_t defaultRxCQ
Definition: enet_udma.h:545
EnetQ_Node
A generic node structure for a single link list.
Definition: enet_queue.h:74
EnetUdma_CpswHpdDesc::__attribute__
CSL_UdmapCppi5HMPD hostDesc __attribute__((aligned(ENET_UDMA_DESC_ALIGNMENT)))
EnetUdma_UdmaFlowPrms::psInfoPresent
uint8_t psInfoPresent
Definition: enet_udma.h:538
EnetUdma_AutoReclaimPrms::hDmaDescPool
EnetUdma_DmaDescQHandle hDmaDescPool
Definition: enet_udma.h:667
ENET_UDMA_CPSW_MAX_HOSTBUFDESC_COUNT
#define ENET_UDMA_CPSW_MAX_HOSTBUFDESC_COUNT
Definition: enet_udma.h:122
EnetUdma_PktTsInfo::enableHostTxTs
bool enableHostTxTs
Definition: enet_udma.h:212
EnetUdma_RxChInitPrms
Param struct for the RX channel open.
Definition: enet_udma.h:833
EnetUdma_PktInfo::node
EnetQ_Node node
Definition: enet_udma.h:294
EnetUdma_AutoReclaimPrms
Enet UDMA channel/flow auto-reclaim config struct.
Definition: enet_udma.h:649
EnetUdma_OpenTxChPrms::dmaDescAllocFxn
EnetUdma_AllocDmaDescFxn dmaDescAllocFxn
Definition: enet_udma.h:806
EnetUdma_getRxFlowFqHandle
Udma_RingHandle EnetUdma_getRxFlowFqHandle(EnetDma_RxChHandle hRxFlow)
Get RX flow FQ handle.
EnetUdma_OpenTxChPrms::hUdmaDrv
Udma_DrvHandle hUdmaDrv
Definition: enet_udma.h:766
EnetDma_Pkt
struct EnetUdma_PktInfo_s EnetDma_Pkt
Opaque handle that represents a DMA packet.
Definition: enet_udma_types.h:104
EnetUdma_checkRxFlowSanity
int32_t EnetUdma_checkRxFlowSanity(EnetDma_RxChHandle hRxFlow, uint32_t margin)
Check if any packet loss in RX flow FQ and CQ rings.
EnetDma_OpenRxChPrms
EnetUdma_OpenRxFlowPrms EnetDma_OpenRxChPrms
Param struct for the RX channel open function. We include this typedef as top level DMA APIs use Enet...
Definition: enet_udma.h:756
EnetUdma_OpenTxChPrms::udmaTxChPrms
EnetUdma_UdmaChTxPrms udmaTxChPrms
Definition: enet_udma.h:777
EnetUdma_UdmaChPrms::cqRingPrms
EnetUdma_UdmaRingPrms cqRingPrms
Definition: enet_udma.h:523
EnetUdma_RingMonCfg::data0
uint32_t data0
Definition: enet_udma.h:467
EnetUdma_SGListEntry::bufPtr
uint8_t * bufPtr
Definition: enet_udma.h:251
EnetUdma_DmaDesc::EnetUdma_HBDDesc_s::__attribute__
CSL_UdmapCppi5HMPD desc __attribute__((aligned(ENET_UDMA_DESC_ALIGNMENT)))
EnetUdma_OpenRxFlowPrms::startIdx
uint32_t startIdx
Definition: enet_udma.h:691
EnetUdma_SGList::numScatterSegments
uint32_t numScatterSegments
Definition: enet_udma.h:283
EnetUdma_PktInfo::txPortNum
Enet_MacPort txPortNum
Definition: enet_udma.h:337
EnetUdma_DmaDesc::EnetUdma_HBDDesc_s
Definition: enet_udma.h:420
EnetUdma_UdmaChTxPrms::filterEinfo
uint8_t filterEinfo
Definition: enet_udma.h:602
EnetUdma_initDataPath
EnetDma_Handle EnetUdma_initDataPath(Enet_Type enetType, uint32_t instId, const EnetDma_initCfg *pDmaInitCfg)
EnetUdma_CpswHpdDesc
Enet UDMA descriptor format.
Definition: enet_udma.h:378
EnetUdma_UdmaRingPrms::useRingMon
bool useRingMon
Definition: enet_udma.h:503
enet_udma_types.h
This file contains the base DMA definitions.
EnetUdma_initDataPathParams
void EnetUdma_initDataPathParams(EnetDma_initCfg *pDmaConfig)
EnetUdma_OpenRxFlowPrms::useGlobalEvt
bool useGlobalEvt
Definition: enet_udma.h:701
EnetUdma_OpenRxFlowPrms::dmaDescAllocFxn
EnetUdma_AllocDmaDescFxn dmaDescAllocFxn
Definition: enet_udma.h:733
EnetUdma_OpenRxFlowPrms::rxFlowMtu
uint32_t rxFlowMtu
Definition: enet_udma.h:719
EnetUdma_DmaDesc::dmaPkt
EnetDma_Pkt * dmaPkt
Definition: enet_udma.h:430
Enet_Type
Enet_Type
Ethernet peripheral type.
Definition: enet_types.h:202
EnetUdma_OpenTxChPrms::useGlobalEvt
bool useGlobalEvt
Definition: enet_udma.h:781
EnetUdma_Cfg
Config structure for Enet UDMA.
Definition: enet_udma.h:849
EnetUdma_SGListEntry::segmentAllocLen
uint32_t segmentAllocLen
Definition: enet_udma.h:262
EnetUdma_PktTsInfo::txPktMsgType
uint8_t txPktMsgType
Definition: enet_udma.h:218
EnetUdma_RingMonCfg::mode
uint8_t mode
Definition: enet_udma.h:456
udma.h
UDMA Driver API/interface file.
EnetUdma_OpenRxFlowPrms::ringMemAllocFxn
EnetUdma_AllocRingMemFxn ringMemAllocFxn
Definition: enet_udma.h:727
EnetUdma_AutoReclaimPrms::hReclaimRing
Udma_RingHandle hReclaimRing
Definition: enet_udma.h:672
EnetUdma_getTxChDescPoolHandle
EnetUdma_DmaDescQHandle EnetUdma_getTxChDescPoolHandle(EnetDma_TxChHandle hTxCh)
Get handle to DMA descriptor free pool for TX channel.
EnetUdma_UdmaChTxPrms::chanType
uint8_t chanType
Definition: enet_udma.h:616
EnetUdma_OpenRxFlowPrms
Param struct for the get default flowId open parameters.
Definition: enet_udma.h:683
Udma_DrvHandle
void * Udma_DrvHandle
UDMA driver handle.
Definition: udma_types.h:65
EnetUdma_DmaDescQHandle
struct EnetUdma_DmaDescQ_s * EnetUdma_DmaDescQHandle
Opaque handle to Enet UDMA descriptor queue.
Definition: enet_udma.h:151
EnetUdma_OpenRxFlowPrms::hUdmaDrv
Udma_DrvHandle hUdmaDrv
Definition: enet_udma.h:685
EnetUdma_getTxChFqHandle
Udma_RingHandle EnetUdma_getTxChFqHandle(EnetDma_TxChHandle hTxCh)
Get TX channel FQ handle.
EnetUdma_UdmaFlowPrms::sopOffset
uint16_t sopOffset
Definition: enet_udma.h:542
EnetUdma_OpenTxChPrms::numTxPkts
uint32_t numTxPkts
Definition: enet_udma.h:789
EnetUdma_PktInfo::sgList
EnetUdma_SGList sgList
Definition: enet_udma.h:368
EnetUdma_SGListEntry
Packet data structure.
Definition: enet_udma.h:243
EnetUdma_SGList
Transmit packet scatter list info.
Definition: enet_udma.h:279
EnetUdma_UdmaChTxPrms::filterPsWords
uint8_t filterPsWords
Definition: enet_udma.h:605
EnetUdma_PktTsInfo
CPPI buffer timestamp info.
Definition: enet_udma.h:210
EnetUdma_OpenTxChPrms::ringMemAllocFxn
EnetUdma_AllocRingMemFxn ringMemAllocFxn
Definition: enet_udma.h:800
EnetUdma_DmaDesc
CPPI DMA descriptor.
Definition: enet_udma.h:413
EnetUdma_OpenRxFlowPrms::autoReclaimPrms
EnetUdma_AutoReclaimPrms autoReclaimPrms
Definition: enet_udma.h:749
EnetDma_initCfg
Config structure for Enet UDMA Data Path initialization.
Definition: enet_udma.h:863
EnetUdma_PktTsInfo::txPktSeqId
uint32_t txPktSeqId
Definition: enet_udma.h:215
EnetUdma_UdmaChTxPrms::busPriority
uint8_t busPriority
Definition: enet_udma.h:619
EnetUdma_PktInfo::chkSumInfo
uint32_t chkSumInfo
Definition: enet_udma.h:315
EnetUdma_PktInfo::perDmaFlags
uint32_t perDmaFlags
Definition: enet_udma.h:361
EnetUdma_PktInfo::rxPortNum
Enet_MacPort rxPortNum
Definition: enet_udma.h:342
EnetUdma_AllocDmaDescFxn
struct EnetUdma_DmaDesc_s *(* EnetUdma_AllocDmaDescFxn)(void *appPriv, uint32_t alignSize)
Function pointer type for DMA descriptor allocation function.
Definition: enet_udma.h:173
EnetUdma_UdmaChTxPrms
Enet UDMA TX channel parameters.
Definition: enet_udma.h:600
EnetUdma_SGListEntry::origBufPtr
uint8_t * origBufPtr
Definition: enet_udma.h:256
EnetUdma_deInitDataPath
int32_t EnetUdma_deInitDataPath(EnetDma_Handle hEnetUdma)
EnetUdma_PktInfo
Definition: enet_udma.h:290
EnetDma_RxChHandle
struct EnetUdma_RxFlowObj_s * EnetDma_RxChHandle
Opaque handle that holds software state for Enet RX DMA flow.
Definition: enet_udma_types.h:94
EnetDma_Handle
struct EnetUdma_DrvObj_s * EnetDma_Handle
Opaque handle for Enet UDMA driver object.
Definition: enet_udma_types.h:85
EnetUdma_Cfg::hUdmaDrv
Udma_DrvHandle hUdmaDrv
Definition: enet_udma.h:851
EnetUdma_UdmaChPrms
Enet UDMA RX flow/TX channel ring configuration parameters.
Definition: enet_udma.h:516
EnetUdma_UdmaFlowPrms::einfoPresent
uint8_t einfoPresent
Definition: enet_udma.h:534
EnetUdma_OpenTxChPrms::chNum
uint32_t chNum
Definition: enet_udma.h:771
EnetUdma_OpenRxFlowPrms::cbArg
void * cbArg
Definition: enet_udma.h:740
ENET_UDMA_PROTOCOL_SPECIFIC_INFO_BLOCK_SIZE
#define ENET_UDMA_PROTOCOL_SPECIFIC_INFO_BLOCK_SIZE
Extended Packet Info Block size.
Definition: enet_udma.h:84
EnetUdma_OpenTxChPrms::ringMemFreeFxn
EnetUdma_FreeRingMemFxn ringMemFreeFxn
Definition: enet_udma.h:803
EnetUdma_UdmaRingPrms
Enet UDMA channel ring parameters.
Definition: enet_udma.h:488
EnetUdma_OpenRxFlowPrms::udmaChPrms
EnetUdma_UdmaChPrms udmaChPrms
Definition: enet_udma.h:697
EnetUdma_UdmaChTxPrms::busQos
uint8_t busQos
Definition: enet_udma.h:622