aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci.c
diff options
context:
space:
mode:
authorAndrew Patterson <andrew.patterson@hp.com>2008-11-10 17:30:50 -0500
committerJesse Barnes <jbarnes@virtuousgeek.org>2009-01-07 14:12:28 -0500
commit0ef5f8f6159e44b4faa997be08d1a3bcbf44ad08 (patch)
tree0753c27a1eb2f5802501e60d575f01fe6edccc2f /drivers/pci/pci.c
parent990a7ac5645883a833a11b900bb6f25b65dea65b (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 'drivers/pci/pci.c')
-rw-r--r--drivers/pci/pci.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index 3c2fa2fdc9cd..48fa860276d4 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -2084,6 +2084,19 @@ static void __devinit pci_no_domains(void)
2084#endif 2084#endif
2085} 2085}
2086 2086
2087/**
2088 * pci_ext_cfg_enabled - can we access extended PCI config space?
2089 * @dev: The PCI device of the root bridge.
2090 *
2091 * Returns 1 if we can access PCI extended config space (offsets
2092 * greater than 0xff). This is the default implementation. Architecture
2093 * implementations can override this.
2094 */
2095int __attribute__ ((weak)) pci_ext_cfg_avail(struct pci_dev *dev)
2096{
2097 return 1;
2098}
2099
2087static int __devinit pci_init(void) 2100static int __devinit pci_init(void)
2088{ 2101{
2089 struct pci_dev *dev = NULL; 2102 struct pci_dev *dev = NULL;