diff options
author | Alex Williamson <alex.williamson@redhat.com> | 2015-09-23 13:04:45 -0600 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2015-09-23 13:04:45 -0600 |
commit | c00d61d8fa22b096b15e19ee2fde846ffc1c0b5d (patch) | |
tree | 2f222bf7c6befdc5efe7653f6ecedb5eb2fc2c03 /hw/vfio/pci.h | |
parent | 78f33d2bfd26ec552d9e824bcc1dbb8e2736ce34 (diff) |
vfio/pci: Split quirks to a separate file
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'hw/vfio/pci.h')
-rw-r--r-- | hw/vfio/pci.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/hw/vfio/pci.h b/hw/vfio/pci.h index a7a3a6a0f7..ff94929b45 100644 --- a/hw/vfio/pci.h +++ b/hw/vfio/pci.h @@ -155,4 +155,19 @@ typedef struct VFIORomBlacklistEntry { uint16_t device_id; } VFIORomBlacklistEntry; +uint32_t vfio_pci_read_config(PCIDevice *pdev, uint32_t addr, int len); +void vfio_pci_write_config(PCIDevice *pdev, + uint32_t addr, uint32_t val, int len); + +uint64_t vfio_vga_read(void *opaque, hwaddr addr, unsigned size); +void vfio_vga_write(void *opaque, hwaddr addr, uint64_t data, unsigned size); + +bool vfio_blacklist_opt_rom(VFIOPCIDevice *vdev); +void vfio_vga_quirk_setup(VFIOPCIDevice *vdev); +void vfio_vga_quirk_teardown(VFIOPCIDevice *vdev); +void vfio_vga_quirk_free(VFIOPCIDevice *vdev); +void vfio_bar_quirk_setup(VFIOPCIDevice *vdev, int nr); +void vfio_bar_quirk_teardown(VFIOPCIDevice *vdev, int nr); +void vfio_bar_quirk_free(VFIOPCIDevice *vdev, int nr); + #endif /* HW_VFIO_VFIO_PCI_H */ |