eal: move kernel driver enum out of PCI header

Device kernel module is a device attribute.
It is used in generic device structures and must not be tied to a bus.

Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>
This commit is contained in:
Gaetan Rivet 2017-07-07 02:04:27 +02:00 committed by Thomas Monjalon
parent 17fd714e80
commit 3f86ca7f79
2 changed files with 12 additions and 9 deletions

View File

@ -114,6 +114,18 @@ rte_pmd_debug_trace(const char *func_name, const char *fmt, ...)
} \
} while (0)
/**
* Device driver.
*/
enum rte_kernel_driver {
RTE_KDRV_UNKNOWN = 0,
RTE_KDRV_IGB_UIO,
RTE_KDRV_VFIO,
RTE_KDRV_UIO_GENERIC,
RTE_KDRV_NIC_UIO,
RTE_KDRV_NONE,
};
/**
* A generic memory resource representation.
*/

View File

@ -117,15 +117,6 @@ struct rte_pci_addr {
struct rte_devargs;
enum rte_kernel_driver {
RTE_KDRV_UNKNOWN = 0,
RTE_KDRV_IGB_UIO,
RTE_KDRV_VFIO,
RTE_KDRV_UIO_GENERIC,
RTE_KDRV_NIC_UIO,
RTE_KDRV_NONE,
};
/**
* A structure describing a PCI device.
*/