diff options
author | Jan Beulich <jbeulich@novell.com> | 2011-07-19 14:14:08 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@novell.com> | 2011-07-19 14:14:08 +0100 |
commit | 9016c07e39fb82453028c95b042ad041b80e06d9 (patch) | |
tree | 94dfc529b35589a291a5e88f977b9c626726afac /xen/include/xen/pci.h | |
parent | 68fce206f6dba9981e8322269db49692c95ce250 (diff) | |
download | xen-9016c07e39fb82453028c95b042ad041b80e06d9.tar.gz xen-9016c07e39fb82453028c95b042ad041b80e06d9.tar.bz2 xen-9016c07e39fb82453028c95b042ad041b80e06d9.zip |
PCI: consolidate interface for adding devices
The functionality of pci_add_device_ext() can be easily folded into
pci_add_device(), and eliminates the need to change two functions for
future adjustments.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/include/xen/pci.h')
-rw-r--r-- | xen/include/xen/pci.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xen/include/xen/pci.h b/xen/include/xen/pci.h index 56355c79b9..6313c388a3 100644 --- a/xen/include/xen/pci.h +++ b/xen/include/xen/pci.h @@ -86,9 +86,8 @@ struct pci_dev *pci_lock_pdev(int bus, int devfn); struct pci_dev *pci_lock_domain_pdev(struct domain *d, int bus, int devfn); void pci_release_devices(struct domain *d); -int pci_add_device(u8 bus, u8 devfn); +int pci_add_device(u8 bus, u8 devfn, const struct pci_dev_info *); int pci_remove_device(u8 bus, u8 devfn); -int pci_add_device_ext(u8 bus, u8 devfn, struct pci_dev_info *info); struct pci_dev *pci_get_pdev(int bus, int devfn); struct pci_dev *pci_get_pdev_by_domain(struct domain *d, int bus, int devfn); |