aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci.h
diff options
context:
space:
mode:
authorYu Zhao <yu.zhao@intel.com>2008-11-21 13:40:40 -0500
committerJesse Barnes <jbarnes@virtuousgeek.org>2009-01-07 14:13:02 -0500
commit0b400c7ed4d027e02f6231afa39852a2d48e6f25 (patch)
tree976e87d95aefac36b14c8407ff3ba9aa34f0cd03 /drivers/pci/pci.h
parentbc5f5a8277cb353161454b6704b3186ebcf3a2a3 (diff)
PCI: export __pci_read_base()
Export __pci_read_base() so it can be used by whole PCI subsystem. 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.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h
index 392388468f6..d881fde8bb8 100644
--- a/drivers/pci/pci.h
+++ b/drivers/pci/pci.h
@@ -162,6 +162,15 @@ struct pci_slot_attribute {
162}; 162};
163#define to_pci_slot_attr(s) container_of(s, struct pci_slot_attribute, attr) 163#define to_pci_slot_attr(s) container_of(s, struct pci_slot_attribute, attr)
164 164
165enum pci_bar_type {
166 pci_bar_unknown, /* Standard PCI BAR probe */
167 pci_bar_io, /* An io port BAR */
168 pci_bar_mem32, /* A 32-bit memory BAR */
169 pci_bar_mem64, /* A 64-bit memory BAR */
170};
171
172extern int __pci_read_base(struct pci_dev *dev, enum pci_bar_type type,
173 struct resource *res, unsigned int reg);
165extern void pci_enable_ari(struct pci_dev *dev); 174extern void pci_enable_ari(struct pci_dev *dev);
166/** 175/**
167 * pci_ari_enabled - query ARI forwarding status 176 * pci_ari_enabled - query ARI forwarding status