linux/arch/x86/pci
Thomas Gleixner b72d0db9dd x86: Move pci init function to x86_init
The PCI initialization in pci_subsys_init() is a mess. pci_numaq_init,
pci_acpi_init, pci_visws_init and pci_legacy_init are called and each
implementation checks and eventually modifies the global variable
pcibios_scanned.

x86_init functions allow us to do this more elegant. The pci.init
function pointer is preset to pci_legacy_init. numaq, acpi and visws
can modify the pointer in their early setup functions. The functions
return 0 when they did the full initialization including bus scan. A
non zero return value indicates that pci_legacy_init needs to be
called either because the selected function failed or wants the
generic bus scan in pci_legacy_init to happen (e.g. visws).

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
LKML-Reference: <43F901BD926A4E43B106BF17856F07559FB80CFE@orsmsx508.amr.corp.intel.com>
Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Jacob Pan <jacob.jun.pan@intel.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2010-02-19 16:12:29 -08:00
..
Makefile x86/PCI: remove IOH range fetching 2010-01-28 08:24:11 -08:00
acpi.c x86: Move pci init function to x86_init 2010-02-19 16:12:29 -08:00
amd_bus.c x86/pci: seperate x86_pci_rootbus_res_quirks from amd_bus.c 2009-11-24 15:25:59 -08:00
bus_numa.c PCI: fix section mismatch on update_res() 2009-12-16 13:37:52 -08:00
bus_numa.h x86/pci: seperate x86_pci_rootbus_res_quirks from amd_bus.c 2009-11-24 15:25:59 -08:00
common.c x86: Move pci init function to x86_init 2010-02-19 16:12:29 -08:00
direct.c dmi: extend dmi_get_year() to dmi_get_date() 2009-09-08 21:17:48 -04:00
early.c x86/PCI: remove early PCI pr_debug statements 2009-11-24 15:25:19 -08:00
fixup.c Merge branch 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6 2009-04-01 09:47:12 -07:00
i386.c x86/PCI: claim SR-IOV BARs in pcibios_allocate_resource 2009-12-04 16:00:17 -08:00
init.c PCI: avoid early PCI mmconfig init if pci=noearly is given in cmdline 2009-01-07 11:12:46 -08:00
irq.c x86, apic: introduce io_apic_irq_attr 2009-05-18 08:38:55 +02:00
legacy.c x86: Move pci init function to x86_init 2010-02-19 16:12:29 -08:00
mmconfig-shared.c x86/PCI: MMCONFIG: add lookup function 2009-11-24 15:30:36 -08:00
mmconfig_32.c x86/PCI: MMCONFIG: add lookup function 2009-11-24 15:30:36 -08:00
mmconfig_64.c x86/PCI: MMCONFIG: add lookup function 2009-11-24 15:30:36 -08:00
numaq_32.c x86: Move pci init function to x86_init 2010-02-19 16:12:29 -08:00
olpc.c x86, pci: move arch/x86/pci/pci.h to arch/x86/include/asm/pci_x86.h 2008-12-29 18:17:36 +01:00
pcbios.c x86: move mach-default/*.h files to asm/ 2009-01-29 14:16:51 +01:00
visws.c x86: Move pci init function to x86_init 2010-02-19 16:12:29 -08:00