aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci.h
diff options
context:
space:
mode:
authorYinghai Lu <yinghai@kernel.org>2012-01-27 13:55:10 -0500
committerJesse Barnes <jbarnes@virtuousgeek.org>2012-02-14 11:44:59 -0500
commitefdc87dab1cdf25ba631181ac0ead3fb2023dd10 (patch)
treef55b7d0b2e9bbfd9dd280c85166aef423bf68d75 /drivers/pci/pci.h
parentac205b7bb72fa4227d2e79979bbe2b4687cdf44d (diff)
PCI: Separate pci_bus_read_dev_vendor_id from pci_scan_device
We can reuse it for pciehp probing. -v2: according to Kenji, fix crs timeout checking, and export the function for later use when pciehp is compiled as a module. Suggested-by: Matthew Wilcox <matthew@wil.cx> Signed-off-by: Yinghai Lu <yinghai@kernel.org> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/pci.h')
-rw-r--r--drivers/pci/pci.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h
index 1009a5e88e53..aaf7ff8c517f 100644
--- a/drivers/pci/pci.h
+++ b/drivers/pci/pci.h
@@ -207,6 +207,8 @@ enum pci_bar_type {
207 pci_bar_mem64, /* A 64-bit memory BAR */ 207 pci_bar_mem64, /* A 64-bit memory BAR */
208}; 208};
209 209
210bool pci_bus_read_dev_vendor_id(struct pci_bus *bus, int devfn, u32 *pl,
211 int crs_timeout);
210extern int pci_setup_device(struct pci_dev *dev); 212extern int pci_setup_device(struct pci_dev *dev);
211extern int __pci_read_base(struct pci_dev *dev, enum pci_bar_type type, 213extern int __pci_read_base(struct pci_dev *dev, enum pci_bar_type type,
212 struct resource *res, unsigned int reg); 214 struct resource *res, unsigned int reg);