bus/pci: switch to private kernel driver enum
[dpdk.git] / drivers / bus / pci / rte_bus_pci.h
index 29bea6d..ff6f072 100644 (file)
@@ -51,6 +51,15 @@ TAILQ_HEAD(rte_pci_driver_list, rte_pci_driver);
 
 struct rte_devargs;
 
+enum rte_pci_kernel_driver {
+       RTE_PCI_KDRV_UNKNOWN = 0,
+       RTE_PCI_KDRV_IGB_UIO,
+       RTE_PCI_KDRV_VFIO,
+       RTE_PCI_KDRV_UIO_GENERIC,
+       RTE_PCI_KDRV_NIC_UIO,
+       RTE_PCI_KDRV_NONE,
+};
+
 /**
  * A structure describing a PCI device.
  */
@@ -64,7 +73,7 @@ struct rte_pci_device {
        struct rte_intr_handle intr_handle; /**< Interrupt handle */
        struct rte_pci_driver *driver;      /**< PCI driver used in probing */
        uint16_t max_vfs;                   /**< sriov enable if not zero */
-       enum rte_kernel_driver kdrv;        /**< Kernel driver passthrough */
+       enum rte_pci_kernel_driver kdrv;    /**< Kernel driver passthrough */
        char name[PCI_PRI_STR_SIZE+1];      /**< PCI location (ASCII) */
        struct rte_intr_handle vfio_req_intr_handle;
                                /**< Handler of VFIO request interrupt */