diff --git a/include/osi_common.h b/include/osi_common.h index 9d825c6..4ac83ca 100644 --- a/include/osi_common.h +++ b/include/osi_common.h @@ -53,6 +53,8 @@ #define OSI_MAX_TX_COALESCE_USEC 1020U #define OSI_MIN_TX_COALESCE_USEC 32U #define OSI_MIN_TX_COALESCE_FRAMES 1U +#define OSI_PAUSE_FRAMES_DISABLE 0U +#define OSI_PAUSE_FRAMES_ENABLE 1U #endif /* !OSI_STRIPPED_LIB */ /* Compiler hints for branch prediction */ @@ -77,16 +79,13 @@ #define OSI_GCL_SIZE_1024 1024U /** @} */ -#define OSI_PAUSE_FRAMES_DISABLE 0U #ifndef OSI_STRIPPED_LIB - /** * @addtogroup Helper MACROS * * @brief EQOS generic helper MACROS. * @{ */ -#define OSI_PAUSE_FRAMES_ENABLE 1U #define OSI_PTP_REQ_CLK_FREQ 250000000U #define OSI_FLOW_CTRL_DISABLE 0U #define OSI_ADDRESS_32BIT 0 diff --git a/include/osi_core.h b/include/osi_core.h index 644c918..b7fe608 100644 --- a/include/osi_core.h +++ b/include/osi_core.h @@ -1301,8 +1301,6 @@ struct osi_core_priv_data { nveu32_t mtu; /** Ethernet MAC address */ nveu8_t mac_addr[OSI_ETH_ALEN]; - /** DT entry to enable(1) or disable(0) pause frame support */ - nveu32_t pause_frames; /** Current flow control settings */ nveu32_t flow_ctrl; /** PTP configuration settings */ @@ -1329,6 +1327,8 @@ struct osi_core_priv_data { nveu16_t vlan_filter_cnt; /** RSS core structure */ struct osi_core_rss rss; + /** DT entry to enable(1) or disable(0) pause frame support */ + nveu32_t pause_frames; #endif /** Residual queue valid with FPE support */ nveu32_t residual_queue;