ACPI/PCI: PCI extended config _OSC support called when root bridge added
authorAndrew Patterson <andrew.patterson@hp.com>
Mon, 10 Nov 2008 22:30:50 +0000 (15:30 -0700)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 7 Jan 2009 19:12:28 +0000 (11:12 -0800)
commit0ef5f8f6159e44b4faa997be08d1a3bcbf44ad08
tree0753c27a1eb2f5802501e60d575f01fe6edccc2f
parent990a7ac5645883a833a11b900bb6f25b65dea65b
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>
arch/x86/pci/common.c
drivers/acpi/pci_root.c
drivers/pci/pci.c
include/linux/pci.h