6#ifndef __NXP_IMX_NETC_H__
7#define __NXP_IMX_NETC_H__
12#define NETC_BD_ALIGN 128
14#define FREESCALE_OUI_B0 0x00
15#define FREESCALE_OUI_B1 0x04
16#define FREESCALE_OUI_B2 0x9f
19#define NETC_PHY_MODE(node_id) \
20 (DT_ENUM_HAS_VALUE(node_id, phy_connection_type, mii) \
22 : (DT_ENUM_HAS_VALUE(node_id, phy_connection_type, rmii) \
24 : (DT_ENUM_HAS_VALUE(node_id, phy_connection_type, rgmii) \
26 : (DT_ENUM_HAS_VALUE(node_id, phy_connection_type, gmii) \
31#define PHY_TO_NETC_SPEED(x) \
32 (PHY_LINK_IS_SPEED_1000M(x) \
33 ? kNETC_MiiSpeed1000M \
34 : (PHY_LINK_IS_SPEED_100M(x) ? kNETC_MiiSpeed100M : kNETC_MiiSpeed10M))
36#define PHY_TO_NETC_DUPLEX_MODE(x) \
37 (PHY_LINK_IS_FULL_DUPLEX(x) ? kNETC_MiiFullDuplex : kNETC_MiiHalfDuplex)
39#if defined(CONFIG_NET_L2_PTP) && defined(CONFIG_PTP_CLOCK_NXP_NETC)
40#define NETC_PTP_TIMESTAMPING_SUPPORT 1
43#if defined(FSL_FEATURE_NETC_HAS_SWITCH_TAG) && FSL_FEATURE_NETC_HAS_SWITCH_TAG
44#define NETC_SWITCH_TAG_SUPPORT 1
47#if defined(CONFIG_DSA_NXP_IMX_NETC) && (!defined(NETC_SWITCH_TAG_SUPPORT))
48#define NETC_SWITCH_NO_TAG_DRIVER_SUPPORT 1
51#if defined(CONFIG_DSA_NXP_IMX_NETC)
56#if defined(NETC_PTP_TIMESTAMPING_SUPPORT) && (!defined(NETC_SWITCH_TAG_SUPPORT))
Distributed Switch Architecture (DSA).
Main header file for PTP (Precision Time Protocol) clock driver API.
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT16_TYPE__ uint16_t
Definition stdint.h:89
Runtime device structure (in ROM) per driver instance.
Definition device.h:513
DSA switch context data.
Definition dsa_core.h:74