|
@@ -15,9 +15,6 @@
|
|
|
#include "xen-host-pci-device.h"
|
|
|
#include "qom/object.h"
|
|
|
|
|
|
-bool xen_igd_gfx_pt_enabled(void);
|
|
|
-void xen_igd_gfx_pt_set(bool value, Error **errp);
|
|
|
-
|
|
|
void xen_pt_log(const PCIDevice *d, const char *f, ...) G_GNUC_PRINTF(2, 3);
|
|
|
|
|
|
#define XEN_PT_ERR(d, _f, _a...) xen_pt_log(d, "%s: Error: "_f, __func__, ##_a)
|
|
@@ -62,12 +59,6 @@ typedef struct XenPTDeviceClass {
|
|
|
XenPTQdevRealize pci_qdev_realize;
|
|
|
} XenPTDeviceClass;
|
|
|
|
|
|
-uint32_t igd_read_opregion(XenPCIPassthroughState *s);
|
|
|
-void xen_igd_reserve_slot(PCIBus *pci_bus);
|
|
|
-void igd_write_opregion(XenPCIPassthroughState *s, uint32_t val);
|
|
|
-void xen_igd_passthrough_isa_bridge_create(XenPCIPassthroughState *s,
|
|
|
- XenHostPCIDevice *dev);
|
|
|
-
|
|
|
/* function type for config reg */
|
|
|
typedef int (*xen_pt_conf_reg_init)
|
|
|
(XenPCIPassthroughState *, XenPTRegInfo *, uint32_t real_offset,
|
|
@@ -353,11 +344,6 @@ static inline bool xen_pt_has_msix_mapping(XenPCIPassthroughState *s, int bar)
|
|
|
void *pci_assign_dev_load_option_rom(PCIDevice *dev, int *size,
|
|
|
unsigned int domain, unsigned int bus,
|
|
|
unsigned int slot, unsigned int function);
|
|
|
-static inline bool is_igd_vga_passthrough(XenHostPCIDevice *dev)
|
|
|
-{
|
|
|
- return (xen_igd_gfx_pt_enabled()
|
|
|
- && ((dev->class_code >> 0x8) == PCI_CLASS_DISPLAY_VGA));
|
|
|
-}
|
|
|
int xen_pt_register_vga_regions(XenHostPCIDevice *dev);
|
|
|
int xen_pt_unregister_vga_regions(XenHostPCIDevice *dev);
|
|
|
void xen_pt_setup_vga(XenPCIPassthroughState *s, XenHostPCIDevice *dev,
|