diff options
author | Alex Chiang <achiang@hp.com> | 2009-03-20 16:56:25 -0400 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-03-20 17:57:44 -0400 |
commit | 3ed4fd96b3188406ac5357d9290bcffa08c65cf6 (patch) | |
tree | 1e48401b56c35554e84c8d627c6c04e83a999a9e /include/linux/pci.h | |
parent | 9dd90cafa7a712d283e2e0c625b022e19f746762 (diff) |
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 50d94388e87c..6fb335b0d74f 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -726,6 +726,9 @@ int pci_back_from_sleep(struct pci_dev *dev); | |||
726 | 726 | ||
727 | /* Functions for PCI Hotplug drivers to use */ | 727 | /* Functions for PCI Hotplug drivers to use */ |
728 | int pci_bus_find_capability(struct pci_bus *bus, unsigned int devfn, int cap); | 728 | int pci_bus_find_capability(struct pci_bus *bus, unsigned int devfn, int cap); |
729 | #ifdef CONFIG_HOTPLUG | ||
730 | unsigned int pci_rescan_bus(struct pci_bus *bus); | ||
731 | #endif | ||
729 | 732 | ||
730 | /* Vital product data routines */ | 733 | /* Vital product data routines */ |
731 | ssize_t pci_read_vpd(struct pci_dev *dev, loff_t pos, size_t count, void *buf); | 734 | ssize_t pci_read_vpd(struct pci_dev *dev, loff_t pos, size_t count, void *buf); |