AM64x MCU+ SDK  08.06.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 #else
131 #error "Enet library compilation not supported on non cortex R cores. Update correct cache line size"
132 #endif
133 
135 #define ENET_UDMA_DESC_ALIGNMENT (64U)
136 
140 typedef struct EnetUdma_Cfg_s EnetDma_Cfg;
141 
147 typedef struct EnetUdma_DmaDescQ_s *EnetUdma_DmaDescQHandle;
148 
159 typedef uint8_t *(*EnetUdma_AllocRingMemFxn)(void *appPriv,
160  uint32_t numRingEle,
161  uint32_t alignSize);
162 
164 typedef void (*EnetUdma_FreeRingMemFxn)(void *appPriv,
165  void *pRingMem,
166  uint32_t numRingEle);
167 
169 typedef struct EnetUdma_DmaDesc_s *(*EnetUdma_AllocDmaDescFxn)(void *appPriv,
170  uint32_t alignSize);
171 
173 typedef void (*EnetUdma_FreeDmaDescFxn)(void *appPriv,
174  struct EnetUdma_DmaDesc_s *dmaDescPtr);
175 
182 typedef void (*EnetDma_PktNotifyCb)(void *cbArg);
183 
186 /* ========================================================================== */
187 /* Structures and Enums */
188 /* ========================================================================== */
189 
205 typedef struct EnetUdma_PktTsInfo_s
206 {
209 
211  uint32_t txPktSeqId;
212 
214  uint8_t txPktMsgType;
215 
217  uint8_t txPktDomain;
218 
220  uint64_t rxPktTs;
222 
238 typedef struct EnetUdma_SGListEntry_s
239 {
241  uint8_t *bufPtr;
242 
245 
247  uint32_t segmentAllocLen;
248 
251 
263 typedef struct EnetUdma_SGList_s
264 {
272 
274 typedef struct EnetUdma_PktInfo_s
275 {
280 
282  void *appPriv;
283 
289  uint32_t pktState;
290 
300  uint32_t chkSumInfo;
301 
312 
323 
328 
331  uint32_t txPktTc;
332 
334  uint32_t txTsId;
335 
342 
344 
350 typedef struct EnetUdma_CpswHpdDesc_s
351 {
353  CSL_UdmapCppi5HMPD hostDesc __attribute__ ((aligned(ENET_UDMA_DESC_ALIGNMENT)));
354 
363  uint8_t extendedPktInfo[ENET_UDMA_EXTENDED_PKT_INFO_BLOCK_SIZE];
364 
374 
378 
385 typedef struct EnetUdma_DmaDesc_s
386 {
391 
393  {
394  CSL_UdmapCppi5HMPD desc __attribute__ ((aligned(ENET_UDMA_DESC_ALIGNMENT)));
396 
398  struct EnetUdma_DmaDesc_s *pNextDesc;
399 
405 
424 typedef struct EnetUdma_RingMonCfg_s
425 {
427  uint8_t mode;
428 
438  uint32_t data0;
439 
449  uint32_t data1;
451 
457 typedef struct EnetUdma_UdmaRingPrms_s
458 {
461  uint8_t orderId;
462 
464  uint8_t mode;
465 
471 
475 
482 typedef struct EnetUdma_UdmaChPrms_s
483 {
484 #if (UDMA_SOC_CFG_UDMAP_PRESENT == 1)
485 
486  EnetUdma_UdmaRingPrms fqRingPrms;
487 #endif
488 
492 
498 typedef struct EnetUdma_UdmaFlowPrms_s
499 {
501  uint8_t einfoPresent;
502 
505  uint8_t psInfoPresent;
506 
509  uint16_t sopOffset;
510 
512  uint16_t defaultRxCQ;
513 
517  uint8_t srcTagHi;
518 
522  uint8_t srcTagLo;
523 
527  uint8_t srcTagHiSel;
528 
532  uint8_t srcTagLoSel;
533 
537  uint8_t destTagHi;
538 
542  uint8_t destTagLo;
543 
547  uint8_t destTagHiSel;
548 
552  uint8_t destTagLoSel;
553 
556  uint8_t sizeThreshEn;
557 
559 
565 typedef struct EnetUdma_UdmaChTxPrms_s
566 {
568  uint8_t filterEinfo;
569 
571  uint8_t filterPsWords;
572 
575  uint8_t addrType;
576 
578  uint8_t chanType;
579 
581  uint8_t busPriority;
582 
584  uint8_t busQos;
585 
587  uint8_t busOrderId;
588 
592  uint8_t dmaPriority;
593 
595  uint8_t txCredit;
596 
602  uint16_t fifoDepth;
604 
608 typedef struct EnetUdma_AutoReclaimPrms_s
609 {
623 
628 
634 
642 typedef struct EnetUdma_OpenRxFlowPrms_s
643 {
646 
648  uint32_t chIdx;
649 
651  uint32_t startIdx;
652 
654  uint32_t flowIdx;
655 
658 
662 
666 
669 
672  uint32_t numRxPkts;
673 
676 
679  uint32_t rxFlowMtu;
680 
688 
691 
694 
697 
700  void *cbArg;
701 
706  bool useProxy;
707 
711 
717 
723 typedef struct EnetUdma_OpenTxChPrms_s
724 {
727 
731  uint32_t chNum;
732 
735 
738 
742 
746 
749  uint32_t numTxPkts;
750 
753 
761 
764 
767 
770 
773  void *cbArg;
774 
779  bool useProxy;
780 
784 
791 typedef struct EnetUdma_RxChInitPrms_s
792 {
796  uint8_t dmaPriority;
798 
805 typedef struct EnetUdma_Cfg_s
806 {
809 
812 } EnetUdma_Cfg;
813 
819 typedef struct EnetUdma_DmaCfg_s
820 {
824 
827 /* ========================================================================== */
828 /* Global Variables Declarations */
829 /* ========================================================================== */
830 
831 /* None */
832 
833 /* ========================================================================== */
834 /* Function Declarations */
835 /* ========================================================================== */
836 
839  uint32_t instId,
840  const EnetDma_initCfg *pDmaInitCfg);
842 
863  uint32_t margin);
864 
886  uint32_t margin);
887 
899 
911 
923 
935 
936 /* ========================================================================== */
937 /* Deprecated Function Declarations */
938 /* ========================================================================== */
939 
940 /* None */
941 
942 /* ========================================================================== */
943 /* Static Function Definitions */
944 /* ========================================================================== */
945 
946 /* None */
947 
948 #ifdef __cplusplus
949 }
950 #endif
951 
952 #endif /* ENET_UDMA_H_ */
953 
EnetUdma_RingMonCfg::data1
uint32_t data1
Definition: enet_udma.h:449
EnetUdma_DmaDesc::pNextDesc
struct EnetUdma_DmaDesc_s * pNextDesc
Definition: enet_udma.h:398
EnetUdma_OpenRxFlowPrms::notifyCb
EnetDma_PktNotifyCb notifyCb
Definition: enet_udma.h:665
EnetUdma_RxChInitPrms::dmaPriority
uint8_t dmaPriority
Definition: enet_udma.h:796
EnetUdma_UdmaChTxPrms::fifoDepth
uint16_t fifoDepth
Definition: enet_udma.h:602
EnetDma_initCfg::hUdmaDrv
Udma_DrvHandle hUdmaDrv
Definition: enet_udma.h:822
EnetUdma_OpenRxFlowPrms::numRxPkts
uint32_t numRxPkts
Definition: enet_udma.h:672
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:769
EnetDma_Cfg
struct EnetUdma_Cfg_s EnetDma_Cfg
Opaque handle that holds config Info for Enet DMA channel.
Definition: enet_udma.h:140
EnetUdma_OpenTxChPrms
Param struct for the TX channel open function.
Definition: enet_udma.h:724
EnetUdma_UdmaFlowPrms
UDMA RX channel flow parameters.
Definition: enet_udma.h:499
EnetUdma_FreeDmaDescFxn
void(* EnetUdma_FreeDmaDescFxn)(void *appPriv, struct EnetUdma_DmaDesc_s *dmaDescPtr)
Function pointer type for DMA descriptor free function.
Definition: enet_udma.h:173
EnetUdma_SGListEntry::disableCacheOps
bool disableCacheOps
Definition: enet_udma.h:249
EnetUdma_SGListEntry::segmentFilledLen
uint32_t segmentFilledLen
Definition: enet_udma.h:244
EnetUdma_PktInfo::tsInfo
EnetUdma_PktTsInfo tsInfo
Definition: enet_udma.h:311
EnetUdma_UdmaRingPrms::mode
uint8_t mode
Definition: enet_udma.h:464
EnetUdma_OpenRxFlowPrms::flowPrms
EnetUdma_UdmaFlowPrms flowPrms
Definition: enet_udma.h:668
EnetUdma_UdmaFlowPrms::srcTagLoSel
uint8_t srcTagLoSel
Definition: enet_udma.h:532
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:220
EnetDma_SGListEntry
EnetUdma_SGListEntry EnetDma_SGListEntry
Definition: enet_udma.h:273
EnetUdma_PktInfo::pktState
uint32_t pktState
Definition: enet_udma.h:289
EnetUdma_OpenTxChPrms::disableCacheOpsFlag
bool disableCacheOpsFlag
Definition: enet_udma.h:752
EnetUdma_UdmaChTxPrms::dmaPriority
uint8_t dmaPriority
Definition: enet_udma.h:592
EnetUdma_OpenRxFlowPrms::useProxy
bool useProxy
Definition: enet_udma.h:706
EnetUdma_OpenRxFlowPrms::ringMemFreeFxn
EnetUdma_FreeRingMemFxn ringMemFreeFxn
Definition: enet_udma.h:690
EnetUdma_PktTsInfo::txPktDomain
uint8_t txPktDomain
Definition: enet_udma.h:217
EnetUdma_OpenTxChPrms::udmaChPrms
EnetUdma_UdmaChPrms udmaChPrms
Definition: enet_udma.h:734
EnetUdma_PktInfo::txPktTc
uint32_t txPktTc
Definition: enet_udma.h:331
ENET_UDMA_DESC_ALIGNMENT
#define ENET_UDMA_DESC_ALIGNMENT
UDMA descriptor address alignment requirement.
Definition: enet_udma.h:135
enet_types.h
This file contains the basic types using across the Enet driver.
EnetUdma_PktInfo::appPriv
void * appPriv
Definition: enet_udma.h:282
EnetUdma_UdmaChTxPrms::busOrderId
uint8_t busOrderId
Definition: enet_udma.h:587
EnetUdma_UdmaChTxPrms::addrType
uint8_t addrType
Definition: enet_udma.h:575
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:159
Enet_MacPort
Enet_MacPort
MAC port.
Definition: enet_types.h:409
EnetUdma_OpenRxFlowPrms::disableCacheOpsFlag
bool disableCacheOpsFlag
Definition: enet_udma.h:675
EnetUdma_UdmaFlowPrms::srcTagLo
uint8_t srcTagLo
Definition: enet_udma.h:522
EnetUdma_OpenTxChPrms::autoReclaimPrms
EnetUdma_AutoReclaimPrms autoReclaimPrms
Definition: enet_udma.h:782
EnetUdma_RingMonCfg
UDMA ring monitor config parameters.
Definition: enet_udma.h:425
EnetUdma_OpenRxFlowPrms::dmaDescFreeFxn
EnetUdma_FreeDmaDescFxn dmaDescFreeFxn
Definition: enet_udma.h:696
EnetUdma_UdmaRingPrms::ringMonCfg
EnetUdma_RingMonCfg ringMonCfg
Definition: enet_udma.h:473
EnetUdma_Cfg::rxChInitPrms
EnetUdma_RxChInitPrms rxChInitPrms
Definition: enet_udma.h:811
EnetUdma_OpenTxChPrms::useProxy
bool useProxy
Definition: enet_udma.h:779
EnetUdma_OpenTxChPrms::notifyCb
EnetDma_PktNotifyCb notifyCb
Definition: enet_udma.h:745
EnetUdma_OpenRxFlowPrms::flowIdx
uint32_t flowIdx
Definition: enet_udma.h:654
EnetUdma_FreeRingMemFxn
void(* EnetUdma_FreeRingMemFxn)(void *appPriv, void *pRingMem, uint32_t numRingEle)
Function pointer type for packet free function.
Definition: enet_udma.h:164
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:390
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:648
EnetUdma_PktInfo::txTsId
uint32_t txTsId
Definition: enet_udma.h:334
EnetUdma_UdmaFlowPrms::sizeThreshEn
uint8_t sizeThreshEn
Definition: enet_udma.h:556
EnetUdma_OpenTxChPrms::cbArg
void * cbArg
Definition: enet_udma.h:773
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:461
EnetDma_PktNotifyCb
void(* EnetDma_PktNotifyCb)(void *cbArg)
Function pointer type for packet notify call back.
Definition: enet_udma.h:182
EnetUdma_UdmaChTxPrms::txCredit
uint8_t txCredit
Definition: enet_udma.h:595
Udma_RingHandle
void * Udma_RingHandle
UDMA ring handle.
Definition: udma_types.h:71
EnetUdma_AutoReclaimPrms::enableFlag
bool enableFlag
Definition: enet_udma.h:622
EnetUdma_UdmaFlowPrms::defaultRxCQ
uint16_t defaultRxCQ
Definition: enet_udma.h:512
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:505
EnetUdma_AutoReclaimPrms::hDmaDescPool
EnetUdma_DmaDescQHandle hDmaDescPool
Definition: enet_udma.h:627
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:208
EnetUdma_RxChInitPrms
Param struct for the RX channel open.
Definition: enet_udma.h:792
EnetUdma_PktInfo::node
EnetQ_Node node
Definition: enet_udma.h:279
EnetUdma_AutoReclaimPrms
Enet UDMA channel/flow auto-reclaim config struct.
Definition: enet_udma.h:609
EnetUdma_OpenTxChPrms::dmaDescAllocFxn
EnetUdma_AllocDmaDescFxn dmaDescAllocFxn
Definition: enet_udma.h:766
EnetUdma_getRxFlowFqHandle
Udma_RingHandle EnetUdma_getRxFlowFqHandle(EnetDma_RxChHandle hRxFlow)
Get RX flow FQ handle.
EnetUdma_OpenTxChPrms::hUdmaDrv
Udma_DrvHandle hUdmaDrv
Definition: enet_udma.h:726
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:716
EnetUdma_OpenTxChPrms::udmaTxChPrms
EnetUdma_UdmaChTxPrms udmaTxChPrms
Definition: enet_udma.h:737
EnetUdma_UdmaChPrms::cqRingPrms
EnetUdma_UdmaRingPrms cqRingPrms
Definition: enet_udma.h:490
EnetUdma_RingMonCfg::data0
uint32_t data0
Definition: enet_udma.h:438
EnetUdma_SGListEntry::bufPtr
uint8_t * bufPtr
Definition: enet_udma.h:241
EnetUdma_DmaDesc::EnetUdma_HBDDesc_s::__attribute__
CSL_UdmapCppi5HMPD desc __attribute__((aligned(ENET_UDMA_DESC_ALIGNMENT)))
EnetUdma_UdmaFlowPrms::destTagLo
uint8_t destTagLo
Definition: enet_udma.h:542
EnetUdma_OpenRxFlowPrms::startIdx
uint32_t startIdx
Definition: enet_udma.h:651
EnetUdma_SGList::numScatterSegments
uint32_t numScatterSegments
Definition: enet_udma.h:268
EnetUdma_PktInfo::txPortNum
Enet_MacPort txPortNum
Definition: enet_udma.h:322
EnetUdma_DmaDesc::EnetUdma_HBDDesc_s
Definition: enet_udma.h:393
EnetUdma_UdmaChTxPrms::filterEinfo
uint8_t filterEinfo
Definition: enet_udma.h:568
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:351
EnetUdma_UdmaFlowPrms::srcTagHiSel
uint8_t srcTagHiSel
Definition: enet_udma.h:527
EnetUdma_UdmaRingPrms::useRingMon
bool useRingMon
Definition: enet_udma.h:470
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:661
reserved
uint16_t reserved
Definition: tisci_boardcfg_rm.h:2
EnetUdma_OpenRxFlowPrms::dmaDescAllocFxn
EnetUdma_AllocDmaDescFxn dmaDescAllocFxn
Definition: enet_udma.h:693
EnetUdma_OpenRxFlowPrms::rxFlowMtu
uint32_t rxFlowMtu
Definition: enet_udma.h:679
EnetUdma_DmaDesc::dmaPkt
EnetDma_Pkt * dmaPkt
Definition: enet_udma.h:403
Enet_Type
Enet_Type
Ethernet peripheral type.
Definition: enet_types.h:199
EnetUdma_UdmaFlowPrms::destTagLoSel
uint8_t destTagLoSel
Definition: enet_udma.h:552
EnetUdma_OpenTxChPrms::useGlobalEvt
bool useGlobalEvt
Definition: enet_udma.h:741
EnetUdma_Cfg
Config structure for Enet UDMA.
Definition: enet_udma.h:806
EnetUdma_SGListEntry::segmentAllocLen
uint32_t segmentAllocLen
Definition: enet_udma.h:247
EnetUdma_PktTsInfo::txPktMsgType
uint8_t txPktMsgType
Definition: enet_udma.h:214
EnetUdma_RingMonCfg::mode
uint8_t mode
Definition: enet_udma.h:427
udma.h
UDMA Driver API/interface file.
EnetUdma_OpenRxFlowPrms::ringMemAllocFxn
EnetUdma_AllocRingMemFxn ringMemAllocFxn
Definition: enet_udma.h:687
EnetUdma_AutoReclaimPrms::hReclaimRing
Udma_RingHandle hReclaimRing
Definition: enet_udma.h:632
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:578
EnetUdma_OpenRxFlowPrms
Param struct for the get default flowId open parameters.
Definition: enet_udma.h:643
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:147
EnetUdma_OpenRxFlowPrms::hUdmaDrv
Udma_DrvHandle hUdmaDrv
Definition: enet_udma.h:645
EnetUdma_getTxChFqHandle
Udma_RingHandle EnetUdma_getTxChFqHandle(EnetDma_TxChHandle hTxCh)
Get TX channel FQ handle.
EnetUdma_UdmaFlowPrms::destTagHiSel
uint8_t destTagHiSel
Definition: enet_udma.h:547
EnetUdma_UdmaFlowPrms::sopOffset
uint16_t sopOffset
Definition: enet_udma.h:509
EnetUdma_OpenTxChPrms::numTxPkts
uint32_t numTxPkts
Definition: enet_udma.h:749
EnetUdma_PktInfo::sgList
EnetUdma_SGList sgList
Definition: enet_udma.h:341
EnetUdma_SGListEntry
Packet data structure.
Definition: enet_udma.h:239
EnetUdma_SGList
Transmit packet scatter list info.
Definition: enet_udma.h:264
EnetUdma_UdmaChTxPrms::filterPsWords
uint8_t filterPsWords
Definition: enet_udma.h:571
EnetUdma_PktTsInfo
CPPI buffer timestamp info.
Definition: enet_udma.h:206
EnetUdma_OpenTxChPrms::ringMemAllocFxn
EnetUdma_AllocRingMemFxn ringMemAllocFxn
Definition: enet_udma.h:760
EnetUdma_DmaDesc
CPPI DMA descriptor.
Definition: enet_udma.h:386
EnetUdma_OpenRxFlowPrms::autoReclaimPrms
EnetUdma_AutoReclaimPrms autoReclaimPrms
Definition: enet_udma.h:709
EnetDma_initCfg
Config structure for Enet UDMA Data Path initialization.
Definition: enet_udma.h:820
EnetUdma_PktTsInfo::txPktSeqId
uint32_t txPktSeqId
Definition: enet_udma.h:211
EnetUdma_UdmaChTxPrms::busPriority
uint8_t busPriority
Definition: enet_udma.h:581
EnetUdma_PktInfo::chkSumInfo
uint32_t chkSumInfo
Definition: enet_udma.h:300
EnetUdma_UdmaFlowPrms::destTagHi
uint8_t destTagHi
Definition: enet_udma.h:537
EnetUdma_PktInfo::rxPortNum
Enet_MacPort rxPortNum
Definition: enet_udma.h:327
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:169
EnetUdma_UdmaChTxPrms
Enet UDMA TX channel parameters.
Definition: enet_udma.h:566
EnetUdma_deInitDataPath
int32_t EnetUdma_deInitDataPath(EnetDma_Handle hEnetUdma)
EnetUdma_PktInfo
Definition: enet_udma.h:275
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:808
EnetUdma_UdmaFlowPrms::srcTagHi
uint8_t srcTagHi
Definition: enet_udma.h:517
EnetUdma_UdmaChPrms
Enet UDMA RX flow/TX channel ring configuration parameters.
Definition: enet_udma.h:483
EnetUdma_UdmaFlowPrms::einfoPresent
uint8_t einfoPresent
Definition: enet_udma.h:501
EnetUdma_OpenTxChPrms::chNum
uint32_t chNum
Definition: enet_udma.h:731
EnetUdma_OpenRxFlowPrms::cbArg
void * cbArg
Definition: enet_udma.h:700
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:763
EnetUdma_UdmaRingPrms
Enet UDMA channel ring parameters.
Definition: enet_udma.h:458
EnetUdma_OpenRxFlowPrms::udmaChPrms
EnetUdma_UdmaChPrms udmaChPrms
Definition: enet_udma.h:657
EnetUdma_UdmaChTxPrms::busQos
uint8_t busQos
Definition: enet_udma.h:584