net/bnxt: add SRAM manager model
[dpdk.git] / drivers / bus / fslmc / portal / dpaa2_hw_dpci.c
index 5ad0374..8ed969c 100644 (file)
@@ -18,7 +18,7 @@
 #include <rte_cycles.h>
 #include <rte_kvargs.h>
 #include <rte_dev.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 
 #include <fslmc_logs.h>
 #include <rte_fslmc.h>
@@ -50,7 +50,7 @@ rte_dpaa2_create_dpci_device(int vdev_fd __rte_unused,
        }
 
        /* Open the dpci object */
-       dpci_node->dpci.regs = rte_mcp_ptr_list[MC_PORTAL_INDEX];
+       dpci_node->dpci.regs = dpaa2_get_mcp_ptr(MC_PORTAL_INDEX);
        ret = dpci_open(&dpci_node->dpci,
                        CMD_PRI_LOW, dpci_id, &dpci_node->token);
        if (ret) {