Displaying 1 result from an estimated 1 matches for "pci_isa_bridge_init".
2013 Jul 24
4
[PATCH 2/3] V5 qemu-xen-trad: Correctly expose PCH ISA bridge for IGD passthrough
...cs.c | 9 ++++++---
3 files changed, 19 insertions(+), 3 deletions(-)
diff --git a/hw/pci.c b/hw/pci.c
index f051de1..c423285 100644
--- a/hw/pci.c
+++ b/hw/pci.c
@@ -938,6 +938,16 @@ PCIBus *pci_bridge_init(PCIBus *bus, int devfn,
uint16_t vid, uint16_t did,
return s->bus;
}
+PCIBus *pci_isa_bridge_init(PCIBus *bus, int devfn, uint16_t vid, uint16_t did,
+ uint8_t rid, pci_map_irq_fn map_irq,
const char *name)
+{
+ PCIBus *s = pci_bridge_init(bus, devfn, vid, did, rid, map_irq, name);
+
+ pci_config_set_class(s->parent_dev->config, PCI_CLASS_BRIDGE_ISA);
+...