aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci.h
diff options
context:
space:
mode:
authorYu Zhao <yu.zhao@intel.com>2009-03-19 23:25:14 -0400
committerJesse Barnes <jbarnes@virtuousgeek.org>2009-03-20 13:48:25 -0400
commit480b93b7837fb3cf0579a42f4953ac463a5b9e1e (patch)
tree39206460a790570d293dc04a64ab3fd3fff736ef /drivers/pci/pci.h
parenta28724b0fb909d247229a70761c90bb37b13366a (diff)
PCI: centralize device setup code
Move the device setup stuff into pci_setup_device() which will be used to setup the Virtual Function later. Reviewed-by: Matthew Wilcox <willy@linux.intel.com> Signed-off-by: Yu Zhao <yu.zhao@intel.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/pci.h')
-rw-r--r--drivers/pci/pci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h
index 5c29cb2b8e63..f4fc10fc5872 100644
--- a/drivers/pci/pci.h
+++ b/drivers/pci/pci.h
@@ -178,6 +178,7 @@ enum pci_bar_type {
178 pci_bar_mem64, /* A 64-bit memory BAR */ 178 pci_bar_mem64, /* A 64-bit memory BAR */
179}; 179};
180 180
181extern int pci_setup_device(struct pci_dev *dev);
181extern int __pci_read_base(struct pci_dev *dev, enum pci_bar_type type, 182extern int __pci_read_base(struct pci_dev *dev, enum pci_bar_type type,
182 struct resource *res, unsigned int reg); 183 struct resource *res, unsigned int reg);
183extern int pci_resource_bar(struct pci_dev *dev, int resno, 184extern int pci_resource_bar(struct pci_dev *dev, int resno,