net/i40e/base: remove HMC admin queue functions
[dpdk.git] / drivers / net / qede / base / ecore.h
index 32a3de9..d682a78 100644 (file)
@@ -50,6 +50,7 @@ enum ecore_nvm_cmd {
 #ifndef LINUX_REMOVE
 #if !defined(CONFIG_ECORE_L2)
 #define CONFIG_ECORE_L2
+#define CONFIG_ECORE_SRIOV
 #endif
 #endif
 
@@ -79,6 +80,15 @@ static OSAL_INLINE u32 DB_ADDR(u32 cid, u32 DEMS)
        return db_addr;
 }
 
+/* @DPDK: This is a backport from latest ecore for TSS fix */
+static OSAL_INLINE u32 DB_ADDR_VF(u32 cid, u32 DEMS)
+{
+       u32 db_addr = FIELD_VALUE(DB_LEGACY_ADDR_DEMS, DEMS) |
+                     FIELD_VALUE(DB_LEGACY_ADDR_ICID, cid);
+
+       return db_addr;
+}
+
 #define ALIGNED_TYPE_SIZE(type_name, p_hwfn)                             \
        ((sizeof(type_name) + (u32)(1 << (p_hwfn->p_dev->cache_shift)) - 1) & \
         ~((1 << (p_hwfn->p_dev->cache_shift)) - 1))
@@ -151,6 +161,7 @@ struct ecore_dma_mem;
 struct ecore_sb_sp_info;
 struct ecore_igu_info;
 struct ecore_mcp_info;
+struct ecore_dcbx_info;
 
 struct ecore_rt_data {
        u32 *init_val;
@@ -498,6 +509,7 @@ struct ecore_hwfn {
        struct ecore_vf_iov *vf_iov_info;
        struct ecore_pf_iov *pf_iov_info;
        struct ecore_mcp_info *mcp_info;
+       struct ecore_dcbx_info *p_dcbx_info;
 
        struct ecore_hw_cid_data *p_tx_cids;
        struct ecore_hw_cid_data *p_rx_cids;