diff options
author | John Levon <john.levon@nutanix.com> | 2020-12-02 11:38:52 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-02 11:38:52 +0000 |
commit | 3e647c0d3b3506b8160b37748108ba3fbd7cb632 (patch) | |
tree | 939e1afeef3d5cb05942a8400a5eff716a7979a9 /include | |
parent | ddf444e8da02e0c8796944e2484cd0ca91a0105d (diff) | |
download | libvfio-user-3e647c0d3b3506b8160b37748108ba3fbd7cb632.zip libvfio-user-3e647c0d3b3506b8160b37748108ba3fbd7cb632.tar.gz libvfio-user-3e647c0d3b3506b8160b37748108ba3fbd7cb632.tar.bz2 |
rename VFU_REG_FLAG_* (#145)
We renamed other code to be "REGION" instead of "REG" so it's less ambiguous. Do
the same for VFU_REG_FLAG_*.
Signed-off-by: John Levon <john.levon@nutanix.com>
Reviewed-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/libvfio-user.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/include/libvfio-user.h b/include/libvfio-user.h index f6a073c..781820d 100644 --- a/include/libvfio-user.h +++ b/include/libvfio-user.h @@ -301,12 +301,11 @@ vfu_pci_setup_config_hdr(vfu_ctx_t *vfu_ctx, vfu_pci_hdr_id_t id, int vfu_pci_setup_caps(vfu_ctx_t *vfu_ctx, vfu_cap_t **caps, int nr_caps); -// Region flags. -#define VFU_REG_FLAG_READ (1 << 0) -#define VFU_REG_FLAG_WRITE (1 << 1) -#define VFU_REG_FLAG_MMAP (1 << 2) // TODO: how this relates to IO bar? -#define VFU_REG_FLAG_RW (VFU_REG_FLAG_READ | VFU_REG_FLAG_WRITE) -#define VFU_REG_FLAG_MEM (1 << 3) // if unset, bar is IO +#define VFU_REGION_FLAG_READ (1 << 0) +#define VFU_REGION_FLAG_WRITE (1 << 1) +#define VFU_REGION_FLAG_MMAP (1 << 2) // TODO: how this relates to IO bar? +#define VFU_REGION_FLAG_RW (VFU_REGION_FLAG_READ | VFU_REGION_FLAG_WRITE) +#define VFU_REGION_FLAG_MEM (1 << 3) // if unset, bar is IO /** * Prototype for region access callback. When a region is accessed, libvfio-user |