GBP: add allowed ethertypes to contracts
[vpp.git] / src / vlib / linux / vfio.h
index 8e0758c..c1d8156 100644 (file)
@@ -25,10 +25,7 @@ typedef struct
 
 typedef struct
 {
-  u32 flags;
-#define LINUX_VFIO_F_HAVE_IOMMU                (1 << 0)
   int container_fd;
-  int ext_container_fd;                /* container fd used by external library, i.e DPDK */
 
   /* VFIO */
   int iommu_mode;
@@ -39,14 +36,18 @@ typedef struct
   /* iommu group pool index by group id  hash */
   uword *iommu_pool_index_by_group;
 
+  clib_bitmap_t *physmem_pages_mapped;
+
+  /* logging */
+  vlib_log_class_t log_default;
 } linux_vfio_main_t;
 
 extern linux_vfio_main_t vfio_main;
 
 clib_error_t *linux_vfio_init (vlib_main_t * vm);
-void linux_vfio_dma_map_regions (vlib_main_t * vm);
+clib_error_t *vfio_map_physmem_page (vlib_main_t * vm, void *addr);
 clib_error_t *linux_vfio_group_get_device_fd (vlib_pci_addr_t * addr,
-                                             int *fd);
+                                             int *fd, int *is_noiommu);
 
 
 #endif /* included_vlib_linux_vfio_h */