diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libvfio-user.h | 5 | ||||
-rw-r--r-- | include/pci_defs.h | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/include/libvfio-user.h b/include/libvfio-user.h index e4cfa60..c74902b 100644 --- a/include/libvfio-user.h +++ b/include/libvfio-user.h @@ -238,8 +238,11 @@ typedef ssize_t (vfu_region_access_cb_t)(vfu_ctx_t *vfu_ctx, char *buf, /* If unset, this is an IO region. */ #define VFU_REGION_FLAG_MEM (1 << 2) #define VFU_REGION_FLAG_ALWAYS_CB (1 << 3) +#define VFU_REGION_FLAG_64_BITS (1 << 4) +#define VFU_REGION_FLAG_PREFETCH (1 << 5) #define VFU_REGION_FLAG_MASK (VFU_REGION_FLAG_RW | VFU_REGION_FLAG_MEM | \ - VFU_REGION_FLAG_ALWAYS_CB) + VFU_REGION_FLAG_ALWAYS_CB | VFU_REGION_FLAG_64_BITS | \ + VFU_REGION_FLAG_PREFETCH) /** * Set up a device region. diff --git a/include/pci_defs.h b/include/pci_defs.h index 5a77b65..11ab919 100644 --- a/include/pci_defs.h +++ b/include/pci_defs.h @@ -48,6 +48,10 @@ extern "C" { * instead? */ +#define PCI_BASE_ADDRESS_MEM_TYPE_LOCATABLE_32 (PCI_BASE_ADDRESS_MEM_TYPE_32 >> 1) +#define PCI_BASE_ADDRESS_MEM_TYPE_LOCATABLE_1M (PCI_BASE_ADDRESS_MEM_TYPE_1M >> 1) +#define PCI_BASE_ADDRESS_MEM_TYPE_LOCATABLE_64 (PCI_BASE_ADDRESS_MEM_TYPE_64 >> 1) + typedef union { uint32_t raw; struct { |