diff options
author | Yu Zhao <yu.zhao@intel.com> | 2008-11-21 13:41:27 -0500 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-01-07 14:13:04 -0500 |
commit | 613e7ed6f72b1a115f7ece8ce1b66cf095de1348 (patch) | |
tree | 2af16f01cbf78f1de6b858788091a72fa57af6c8 /drivers/pci/pci.h | |
parent | 3789fa8a2e534523c896a32a9f27f78d52ad7d82 (diff) |
PCI: add a new function to map BAR offsets
Add a function to map a given resource number to a corresponding
register so drivers can get the offset and type of device specific BARs.
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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h index d881fde8bb82..c4f4a1e6ea28 100644 --- a/drivers/pci/pci.h +++ b/drivers/pci/pci.h | |||
@@ -171,6 +171,8 @@ enum pci_bar_type { | |||
171 | 171 | ||
172 | extern int __pci_read_base(struct pci_dev *dev, enum pci_bar_type type, | 172 | extern int __pci_read_base(struct pci_dev *dev, enum pci_bar_type type, |
173 | struct resource *res, unsigned int reg); | 173 | struct resource *res, unsigned int reg); |
174 | extern int pci_resource_bar(struct pci_dev *dev, int resno, | ||
175 | enum pci_bar_type *type); | ||
174 | extern void pci_enable_ari(struct pci_dev *dev); | 176 | extern void pci_enable_ari(struct pci_dev *dev); |
175 | /** | 177 | /** |
176 | * pci_ari_enabled - query ARI forwarding status | 178 | * pci_ari_enabled - query ARI forwarding status |