52 #if defined(SOC_AM65XX) 53 #include <ti/drv/enet/soc/j7x/am65xx/enet_soc.h> 54 #include <ti/drv/enet/soc/j7x/j7x_soc.h> 55 #elif defined(SOC_J721E) || defined(SOC_AM77X) 56 #include <ti/drv/enet/soc/j7x/j721e/enet_soc.h> 57 #include <ti/drv/enet/soc/j7x/j7x_soc.h> 58 #elif defined (SOC_J7200) 59 #include <ti/drv/enet/soc/j7x/j7200/enet_soc.h> 60 #include <ti/drv/enet/soc/j7x/j7x_soc.h> 61 #elif defined (SOC_TPR12) 62 #include <ti/drv/enet/soc/tpr12/enet_soc.h> 63 #elif defined(SOC_AWR294X) 64 #include <ti/drv/enet/soc/awr294x/enet_soc.h> 81 #if ENET_CFG_IS_ON(ASSERT) 82 #if defined(__KLOCWORK__) || defined(__cplusplus) 83 #define EnetSoc_assert(cond, ...) do { if (!(cond)) abort(); } while (0) 85 #define EnetSoc_assert(cond, ...) \ 87 OSAL_Assert((bool)(!(cond))); \ 91 #define EnetSoc_assert(cond, ...) (void)(cond) OS Abstraction Layer header.
Enet_Type
Ethernet peripheral type.
Definition: enet_types.h:195
struct Enet_Obj_s * Enet_Handle
Ethernet driver handle.
Definition: enet_base.h:105
uint32_t EnetSoc_getCoreKey(uint32_t coreId)
Get core key for the given core id.
uint32_t EnetSoc_getMacPortMax(Enet_Type enetType, uint32_t instId)
Get number of MAC ports in a peripheral.
MAC port interface.
Definition: enet_mod_macport.h:273
uint32_t EnetSoc_getIntrNum(Enet_Type enetType, uint32_t instId, uint32_t intrId)
Get the interrupt number of a peripheral interrupt signal.
This file contains the basic types using across the Enet driver.
Enet_Handle EnetSoc_getEnetHandleByIdx(uint32_t idx)
Get handle of the Enet driver by its index.
uint32_t EnetSoc_getIntrTriggerType(Enet_Type enetType, uint32_t instId, uint32_t intrId)
Get the interrupt trigger type of a peripheral interrupt signal.
#define ENET_MAC_ADDR_LEN
MAC address length in bytes/octets.
Definition: enet_types.h:153
This file contains the type definitions and helper macros for the Enet Peripheral interface.
struct EnetUdma_DrvObj_s * EnetDma_Handle
Opaque handle for Enet UDMA driver object.
Definition: enet_udma_types.h:86
uint32_t EnetSoc_getCoreId(void)
Get core id of caller.
int32_t EnetSoc_setupIntrCfg(Enet_Type enetType, uint32_t instId, uint32_t intrId)
Configure SoC connection of an interrupt.
uint32_t EnetSoc_getClkFreq(Enet_Type enetType, uint32_t instId, uint32_t clkId)
Get SoC clock frequency.
uint32_t EnetSoc_getMacPortCaps(Enet_Type enetType, uint32_t instId, Enet_MacPort macPort)
Get MAC port capability mask.
uint32_t EnetSoc_isIpSupported(Enet_Type enetType, uint32_t instId)
Validate IP support in SOC.
int32_t EnetSoc_releaseIntrCfg(Enet_Type enetType, uint32_t instId, uint32_t intrId)
Release SoC connection of an interrupt.
uint32_t EnetSoc_getEnetNum(void)
Get number of present Ethernet peripherals.
int32_t EnetSoc_getMacPortMii(Enet_Type enetType, uint32_t instId, Enet_MacPort macPort, EnetMacPort_Interface *mii)
Get MAC port MII mode.
EnetDma_Handle EnetSoc_getDmaHandle(Enet_Type enetType, uint32_t instId)
Get handle of the DMA driver for a given Ethernet peripheral.
void EnetSoc_deinit(void)
Deinitialize SoC layer.
bool EnetSoc_isCoreAllowed(Enet_Type enetType, uint32_t instId, uint32_t coreId)
Check if core is enable to use an Ethernet peripheral.
Enet_MacPort
MAC port.
Definition: enet_types.h:402
int32_t EnetSoc_getEFusedMacAddrs(uint8_t macAddr[][ENET_MAC_ADDR_LEN], uint32_t *num)
Get EFused MAC addresses.
int32_t EnetSoc_init(void)
Initialize SoC layer.
Enet_Handle EnetSoc_getEnetHandle(Enet_Type enetType, uint32_t instId)
Get handle of the Enet driver for a given Ethernet peripheral.