diff options
author | Jan Beulich <jbeulich@suse.com> | 2011-09-22 18:28:38 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2011-09-22 18:28:38 +0100 |
commit | 9be30410ecd3a01ff9315f77abb0c8865c927df2 (patch) | |
tree | a0ec7391d84e34fc982bc66113c49c8cc8278df9 /xen/include/xen/pci.h | |
parent | 7b5787b8f526f68bd283d977c46cf9c221f26a93 (diff) | |
download | xen-9be30410ecd3a01ff9315f77abb0c8865c927df2.tar.gz xen-9be30410ecd3a01ff9315f77abb0c8865c927df2.tar.bz2 xen-9be30410ecd3a01ff9315f77abb0c8865c927df2.zip |
PCI multi-seg: Pass-through adjustments
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Diffstat (limited to 'xen/include/xen/pci.h')
-rw-r--r-- | xen/include/xen/pci.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/xen/include/xen/pci.h b/xen/include/xen/pci.h index 40f652db86..f79db8dca8 100644 --- a/xen/include/xen/pci.h +++ b/xen/include/xen/pci.h @@ -82,13 +82,15 @@ enum { DEV_TYPE_PCI, }; -int pci_device_detect(u8 bus, u8 dev, u8 func); +int pci_device_detect(u16 seg, u8 bus, u8 dev, u8 func); int scan_pci_devices(void); -int pdev_type(u8 bus, u8 devfn); -int find_upstream_bridge(u8 *bus, u8 *devfn, u8 *secbus); -struct pci_dev *pci_lock_pdev(int bus, int devfn); -struct pci_dev *pci_lock_domain_pdev(struct domain *d, int bus, int devfn); +int pdev_type(u16 seg, u8 bus, u8 devfn); +int find_upstream_bridge(u16 seg, u8 *bus, u8 *devfn, u8 *secbus); +struct pci_dev *pci_lock_pdev(int seg, int bus, int devfn); +struct pci_dev *pci_lock_domain_pdev( + struct domain *, int seg, int bus, int devfn); +void setup_dom0_pci_devices(struct domain *, void (*)(struct pci_dev *)); void pci_release_devices(struct domain *d); int pci_add_segment(u16 seg); int pci_add_device(u16 seg, u8 bus, u8 devfn, const struct pci_dev_info *); |