diff options
author | Thanos Makatos <thanos.makatos@nutanix.com> | 2019-08-27 08:58:17 -0400 |
---|---|---|
committer | Felipe Franciosi <felipe@nutanix.com> | 2019-09-05 16:45:35 +0100 |
commit | 2b0970088feaf2239ad47f74c050aad370989e06 (patch) | |
tree | 0b209346b16d102172b6adf9dd236ea7e15e49a9 /lib/pci.h | |
parent | 1693baa1870d141434f1e0d0606d8b08c6fe22c5 (diff) | |
download | libvfio-user-2b0970088feaf2239ad47f74c050aad370989e06.zip libvfio-user-2b0970088feaf2239ad47f74c050aad370989e06.tar.gz libvfio-user-2b0970088feaf2239ad47f74c050aad370989e06.tar.bz2 |
move device mmap to per-region callbacks
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'lib/pci.h')
-rw-r--r-- | lib/pci.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -244,11 +244,14 @@ _Static_assert(sizeof(struct lm_pci_config_space) == 0x100, typedef ssize_t (lm_region_access_t) (void *pvt, char * const buf, size_t count, loff_t offset, const bool is_write); +typedef unsigned long (lm_map_region_t) (void *pvt, unsigned long pgoff, + unsigned long len); struct lm_reg_info { uint32_t flags; uint32_t size; uint64_t offset; lm_region_access_t *fn; + lm_map_region_t *map; }; enum { |