git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bus/pci: switch to private kernel driver enum
[dpdk.git]
/
drivers
/
bus
/
pci
/
rte_bus_pci.h
diff --git
a/drivers/bus/pci/rte_bus_pci.h
b/drivers/bus/pci/rte_bus_pci.h
index
0f21775
..
ff6f072
100644
(file)
--- a/
drivers/bus/pci/rte_bus_pci.h
+++ b/
drivers/bus/pci/rte_bus_pci.h
@@
-51,6
+51,15
@@
TAILQ_HEAD(rte_pci_driver_list, rte_pci_driver);
struct rte_devargs;
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.
*/
/**
* 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 */
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 */
char name[PCI_PRI_STR_SIZE+1]; /**< PCI location (ASCII) */
struct rte_intr_handle vfio_req_intr_handle;
/**< Handler of VFIO request interrupt */
@@
-187,8
+196,8
@@
struct rte_pci_bus {
#define RTE_PCI_DRV_INTR_RMV 0x0010
/** Device driver needs to keep mapped resources if unsupported dev detected */
#define RTE_PCI_DRV_KEEP_MAPPED_RES 0x0020
#define RTE_PCI_DRV_INTR_RMV 0x0010
/** Device driver needs to keep mapped resources if unsupported dev detected */
#define RTE_PCI_DRV_KEEP_MAPPED_RES 0x0020
-/** Device driver
only support
s IOVA as VA and cannot work with IOVA as PA */
-#define RTE_PCI_DRV_IOVA_AS_VA 0x0040
+/** Device driver
need
s IOVA as VA and cannot work with IOVA as PA */
+#define RTE_PCI_DRV_
NEED_
IOVA_AS_VA 0x0040
/**
* Map the PCI device resources in user space virtual memory address
/**
* Map the PCI device resources in user space virtual memory address