vfio: move PCI related symbols
[dpdk.git] / lib / librte_eal / linuxapp / eal / eal_pci_vfio.c
index 10a75da..19994c8 100644 (file)
 #include <rte_pci.h>
 #include <rte_eal_memconfig.h>
 #include <rte_malloc.h>
+#include <rte_vfio.h>
 
 #include "eal_filesystem.h"
 #include "eal_pci_init.h"
-#include "eal_vfio.h"
 #include "eal_private.h"
 
 /**
@@ -60,7 +60,7 @@
  * This file is only compiled if CONFIG_RTE_EAL_VFIO is set to "y".
  */
 
-#ifdef VFIO_PRESENT
+#ifdef RTE_EAL_VFIO
 
 #define PAGE_SIZE   (sysconf(_SC_PAGESIZE))
 #define PAGE_MASK   (~(PAGE_SIZE - 1))
@@ -742,12 +742,6 @@ pci_vfio_ioport_unmap(struct rte_pci_ioport *p)
        return -1;
 }
 
-int
-pci_vfio_enable(void)
-{
-       return vfio_enable("vfio_pci");
-}
-
 int
 pci_vfio_is_enabled(void)
 {