aboutsummaryrefslogtreecommitdiff
path: root/hw/pci.h
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2012-06-26 15:05:33 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2012-06-26 15:05:33 -0500
commit7a542b67b32742ff5fe286f819df891d1df7bf56 (patch)
treecc85c3d9c0c381ae32178616c5956879cd554cb4 /hw/pci.h
parentb1a6609e754330c657a057a96322e574c129bc29 (diff)
parent3854ca577dad92c4fe97b4a6ebce360e25407af7 (diff)
Merge remote-tracking branch 'sstabellini/xen-pt' into staging
* sstabellini/xen-pt: Introduce Xen PCI Passthrough, MSI Introduce apic-msidef.h Introduce Xen PCI Passthrough, PCI config space helpers Introduce Xen PCI Passthrough, qdevice qdev-properties: Introduce pci-host-devaddr. pci.c: Add opaque argument to pci_for_each_device. Introduce XenHostPCIDevice to access a pci device on the host. configure: Introduce --enable-xen-pci-passthrough. pci_ids: Add INTEL_82599_SFP_VF id.
Diffstat (limited to 'hw/pci.h')
-rw-r--r--hw/pci.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/pci.h b/hw/pci.h
index 7f223c01e1..95b608cedd 100644
--- a/hw/pci.h
+++ b/hw/pci.h
@@ -312,7 +312,9 @@ PCIDevice *pci_nic_init(NICInfo *nd, const char *default_model,
PCIDevice *pci_nic_init_nofail(NICInfo *nd, const char *default_model,
const char *default_devaddr);
int pci_bus_num(PCIBus *s);
-void pci_for_each_device(PCIBus *bus, int bus_num, void (*fn)(PCIBus *bus, PCIDevice *d));
+void pci_for_each_device(PCIBus *bus, int bus_num,
+ void (*fn)(PCIBus *bus, PCIDevice *d, void *opaque),
+ void *opaque);
PCIBus *pci_find_root_bus(int domain);
int pci_find_domain(const PCIBus *bus);
PCIDevice *pci_find_device(PCIBus *bus, int bus_num, uint8_t devfn);