]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/common/include/rte_bus.h
pci: get IOMMU class
[dpdk.git] / lib / librte_eal / common / include / rte_bus.h
index 8f8b09954abc4145b7384311bff967ef4bfa3b2c..2501fa26da313fde25f89eac1b5198211ea3b1b7 100644 (file)
@@ -55,6 +55,21 @@ extern "C" {
 /** Double linked list of buses */
 TAILQ_HEAD(rte_bus_list, rte_bus);
 
+
+/**
+ * IOVA mapping mode.
+ *
+ * IOVA mapping mode is iommu programming mode of a device.
+ * That device (for example: IOMMU backed DMA device) based
+ * on rte_iova_mode will generate physical or virtual address.
+ *
+ */
+enum rte_iova_mode {
+       RTE_IOVA_DC = 0,        /* Don't care mode */
+       RTE_IOVA_PA = (1 << 0), /* DMA using physical address */
+       RTE_IOVA_VA = (1 << 1)  /* DMA using virtual address */
+};
+
 /**
  * Bus specific scan for devices attached on the bus.
  * For each bus object, the scan would be responsible for finding devices and