 |
AM62L FreeRTOS SDK
11.00.00
|
|
Go to the documentation of this file.
52 #if defined(SOC_AM64X) || defined(SOC_AM243X)
53 #include <soc/k3/am64x_am243x/enet_soc.h>
54 #include <soc/k3/k3_soc.h>
55 #include <drivers/udma/soc/am64x_am243x/udma_soc.h>
56 #elif defined(SOC_AM62AX)
57 #include <soc/k3/am62ax/enet_soc.h>
58 #include <soc/k3/k3_soc.h>
60 #elif defined(SOC_AM62PX)
61 #include <soc/k3/am62px/enet_soc.h>
62 #include <soc/k3/k3_soc.h>
64 #elif defined(SOC_AM275X)
65 #include <soc/k3/am275x/enet_soc.h>
66 #include <soc/k3/k3_soc.h>
68 #elif defined(SOC_AM62X)
69 #include <soc/k3/am62x/enet_soc.h>
70 #include <soc/k3/k3_soc.h>
72 #elif defined(SOC_AM62LX)
73 #include <soc/k3/am62lx/enet_soc.h>
74 #include <soc/k3/k3_soc.h>
76 #elif defined(SOC_AM62DX)
77 #include <soc/k3/am62dx/enet_soc.h>
78 #include <soc/k3/k3_soc.h>
80 #elif defined (SOC_AM273X)
81 #include <soc/am273x/enet_soc.h>
82 #elif defined(SOC_AWR294X)
83 #include <soc/awr294x/enet_soc.h>
84 #elif defined(SOC_AM263X)
85 #include <soc/am263x/enet_soc.h>
86 #elif defined(SOC_AM263PX)
87 #include <soc/am263px/enet_soc.h>
88 #elif defined(SOC_AM261X)
89 #include <soc/am261x/enet_soc.h>
90 #elif defined(SOC_AWR2544)
91 #include <soc/awr2544/enet_soc.h>
92 #elif defined (SOC_J722S)
93 #include <soc/k3/j722s/enet_soc.h>
94 #include <soc/k3/k3_soc.h>
96 #elif defined (SOC_TDA54)
97 #include <soc/k3/tda54/enet_soc.h>
98 #include <soc/k3/k3_soc.h>
99 #include <drivers/udma/soc/tda54/udma_soc.h>
116 #if ENET_CFG_IS_ON(ASSERT)
117 #if defined(__KLOCWORK__) || defined(__cplusplus)
118 #define EnetSoc_assert(cond, ...) do { if (!(cond)) abort(); } while (0)
120 #define EnetSoc_assert(cond, ...) \
122 DebugP_assert((bool)((cond))); \
126 #define EnetSoc_assert(cond, ...) (void)(cond)
uint32_t EnetSoc_getEnetNum(void)
Get number of present Ethernet peripherals.
uint32_t EnetSoc_getClkFreq(Enet_Type enetType, uint32_t instId, uint32_t clkId)
Get SoC clock frequency.
Enet_Handle EnetSoc_getEnetHandleByIdx(uint32_t idx)
Get handle of the Enet driver by its index.
EnetDma_Handle EnetSoc_getDmaHandle(Enet_Type enetType, uint32_t instId)
Get handle of the DMA driver for a given Ethernet peripheral.
Enet_Handle EnetSoc_getEnetHandle(Enet_Type enetType, uint32_t instId)
Get handle of the Enet driver for a given Ethernet peripheral.
int32_t EnetSoc_init(void)
Initialize SoC layer.
bool EnetSoc_isCoreAllowed(Enet_Type enetType, uint32_t instId, uint32_t coreId)
Check if core is enable to use an Ethernet peripheral.
This file contains the basic types using across the Enet driver.
int32_t EnetSoc_setupIntrCfg(Enet_Type enetType, uint32_t instId, uint32_t intrId)
Configure SoC connection of an interrupt.
Enet_MacPort
MAC port.
Definition: enet_types.h:412
uint32_t EnetSoc_getMacPortCaps(Enet_Type enetType, uint32_t instId, Enet_MacPort macPort)
Get MAC port capability mask.
int32_t EnetSoc_getMacPortMii(Enet_Type enetType, uint32_t instId, Enet_MacPort macPort, EnetMacPort_Interface *mii)
Get MAC port MII mode.
int32_t EnetSoc_releaseIntrCfg(Enet_Type enetType, uint32_t instId, uint32_t intrId)
Release SoC connection of an interrupt.
MAC port interface.
Definition: enet_mod_macport.h:442
void EnetSoc_deinit(void)
Deinitialize SoC layer.
uint32_t EnetSoc_getIntrTriggerType(Enet_Type enetType, uint32_t instId, uint32_t intrId)
Get the interrupt trigger type of a peripheral interrupt signal.
uint32_t EnetSoc_getMacPortMax(Enet_Type enetType, uint32_t instId)
Get number of MAC ports in a peripheral.
uint32_t EnetSoc_getIntrNum(Enet_Type enetType, uint32_t instId, uint32_t intrId)
Get the interrupt number of a peripheral interrupt signal.
uint32_t EnetSoc_getCoreId(void)
Get core id of caller.
Enet_Type
Ethernet peripheral type.
Definition: enet_types.h:202
int32_t EnetSoc_getEFusedMacAddrs(uint8_t macAddr[][ENET_MAC_ADDR_LEN], uint32_t *num)
Get EFused MAC addresses.
uint32_t EnetSoc_isIpSupported(Enet_Type enetType, uint32_t instId)
Validate IP support in SOC.
UDMA Driver API/interface file.
This file contains the type definitions and helper macros for the Enet Peripheral interface.
#define ENET_MAC_ADDR_LEN
MAC address length in bytes/octets.
Definition: enet_types.h:153
struct Enet_Obj_s * Enet_Handle
Ethernet driver handle.
Definition: enet_base.h:105
struct EnetUdma_DrvObj_s * EnetDma_Handle
Opaque handle for Enet UDMA driver object.
Definition: enet_udma_types.h:85