diff options
author | jfgd <4610889+jfgd@users.noreply.github.com> | 2024-03-29 11:37:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-29 10:37:10 +0000 |
commit | 143b4f840b07990a759d0e7328475bdf90d7d6ba (patch) | |
tree | f1f8c906c3e2495639baaf0f5cf6bfd95b3d305c /include/pci_defs.h | |
parent | b646559cc90f1a1f475fc47048bbbd955e20f4a2 (diff) | |
download | libvfio-user-143b4f840b07990a759d0e7328475bdf90d7d6ba.zip libvfio-user-143b4f840b07990a759d0e7328475bdf90d7d6ba.tar.gz libvfio-user-143b4f840b07990a759d0e7328475bdf90d7d6ba.tar.bz2 |
Support 64 bits and prefetchable BARs (#792)
* Support 64 bits and prefetchable BARs
Add two new flags for lib user to request 64bits and/or prefetchable
BARs.
Tested with a vfio-user client patched QEMU.
Signed-off-by: Jérémy Fanguède <jfanguede@kalrayinc.com>
Diffstat (limited to 'include/pci_defs.h')
-rw-r--r-- | include/pci_defs.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 { |