net/bnxt: add SRAM manager model
[dpdk.git] / drivers / bus / vdev / rte_bus_vdev.h
index d14eeb4..fc315d1 100644 (file)
@@ -34,6 +34,8 @@ struct rte_vdev_device {
 #define RTE_DEV_TO_VDEV_CONST(ptr) \
        container_of(ptr, const struct rte_vdev_device, device)
 
+#define RTE_ETH_DEV_TO_VDEV(eth_dev)   RTE_DEV_TO_VDEV((eth_dev)->device)
+
 static inline const char *
 rte_vdev_device_name(const struct rte_vdev_device *dev)
 {
@@ -111,8 +113,12 @@ struct rte_vdev_driver {
        rte_vdev_remove_t *remove;       /**< Virtual device remove function. */
        rte_vdev_dma_map_t *dma_map;     /**< Virtual device DMA map function. */
        rte_vdev_dma_unmap_t *dma_unmap; /**< Virtual device DMA unmap function. */
+       uint32_t drv_flags;              /**< Flags RTE_VDEV_DRV_*. */
 };
 
+/** Device driver needs IOVA as VA and cannot work with IOVA as PA */
+#define RTE_VDEV_DRV_NEED_IOVA_AS_VA 0x0001
+
 /**
  * Register a virtual device driver.
  *