diff options
author | Alex Chiang <achiang@hp.com> | 2009-03-20 14:56:25 -0600 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-03-20 14:57:44 -0700 |
commit | 3ed4fd96b3188406ac5357d9290bcffa08c65cf6 (patch) | |
tree | 1e48401b56c35554e84c8d627c6c04e83a999a9e /include/linux/pci.h | |
parent | 9dd90cafa7a712d283e2e0c625b022e19f746762 (diff) | |
download | op-kernel-dev-3ed4fd96b3188406ac5357d9290bcffa08c65cf6.zip op-kernel-dev-3ed4fd96b3188406ac5357d9290bcffa08c65cf6.tar.gz |
PCI: Introduce pci_rescan_bus()
This API is used by the PCI core to rescan a bus and rediscover
newly added devices.
Over time, it is expected that the various PCI hotplug drivers
will migrate to this interface and away from the old
pci_do_scan_bus() interface.
Signed-off-by: Alex Chiang <achiang@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r-- | include/linux/pci.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index 50d9438..6fb335b 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -726,6 +726,9 @@ int pci_back_from_sleep(struct pci_dev *dev); /* Functions for PCI Hotplug drivers to use */ int pci_bus_find_capability(struct pci_bus *bus, unsigned int devfn, int cap); +#ifdef CONFIG_HOTPLUG +unsigned int pci_rescan_bus(struct pci_bus *bus); +#endif /* Vital product data routines */ ssize_t pci_read_vpd(struct pci_dev *dev, loff_t pos, size_t count, void *buf); |