diff options
author | Andrew Patterson <andrew.patterson@hp.com> | 2008-11-10 17:30:50 -0500 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-01-07 14:12:28 -0500 |
commit | 0ef5f8f6159e44b4faa997be08d1a3bcbf44ad08 (patch) | |
tree | 0753c27a1eb2f5802501e60d575f01fe6edccc2f /include/linux/pci.h | |
parent | 990a7ac5645883a833a11b900bb6f25b65dea65b (diff) |
ACPI/PCI: PCI extended config _OSC support called when root bridge added
The _OSC capability OSC_EXT_PCI_CONFIG_SUPPORT is set when the root
bridge is added with pci_acpi_osc_support() if we can access PCI
extended config space.
This adds the function pci_ext_cfg_avail which returns true if we can
access PCI extended config space (offset greater than 0xff). It
currently only returns false if arch=x86 and raw_pci_ext_ops is not set
(which might happen if pci=nommcfg is set on the kernel command-line).
Signed-off-by: Andrew Patterson <andrew.patterson@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r-- | include/linux/pci.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index 4bb156ba854a..6fd47654ca4e 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -1140,6 +1140,8 @@ static inline void pci_mmcfg_early_init(void) { } | |||
1140 | static inline void pci_mmcfg_late_init(void) { } | 1140 | static inline void pci_mmcfg_late_init(void) { } |
1141 | #endif | 1141 | #endif |
1142 | 1142 | ||
1143 | int pci_ext_cfg_avail(struct pci_dev *dev); | ||
1144 | |||
1143 | #ifdef CONFIG_HAS_IOMEM | 1145 | #ifdef CONFIG_HAS_IOMEM |
1144 | static inline void __iomem *pci_ioremap_bar(struct pci_dev *pdev, int bar) | 1146 | static inline void __iomem *pci_ioremap_bar(struct pci_dev *pdev, int bar) |
1145 | { | 1147 | { |