android_kernel_xiaomi_sm8350/arch/x86/pci
Jesse Barnes a712ffbc19 x86/PCI: Moorestown PCI support
The Moorestown platform only has a few devices that actually support
PCI config cycles.  The rest of the devices use an in-RAM MCFG space
for the purposes of device enumeration and initialization.

There are a few uglies in the fake support, like BAR sizes that aren't
a power of two, sizing detection, and writes to the real devices, but
other than that it's pretty straightforward.

Another way to think of this is not really as PCI at all, but just a
table in RAM describing which devices are present, their capabilities
and their offsets in MMIO space.  This could have been done with a
special new firmware table on this platform, but given that we do have
some real PCI devices too, simply describing things in an MCFG type
space was pretty simple.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
LKML-Reference: <43F901BD926A4E43B106BF17856F07559FB80D08@orsmsx508.amr.corp.intel.com>
Signed-off-by: Jacob Pan <jacob.jun.pan@intel.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2010-02-23 23:14:47 -08:00
..
acpi.c x86: Add pci_init_irq to x86_init 2010-02-19 16:12:33 -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
early.c x86/PCI: remove early PCI pr_debug statements 2009-11-24 15:25:19 -08:00
fixup.c
i386.c x86/PCI: claim SR-IOV BARs in pcibios_allocate_resource 2009-12-04 16:00:17 -08:00
init.c
irq.c x86: Add pcibios_fixup_irqs to x86_init 2010-02-19 16:12:39 -08:00
legacy.c x86: Add pci_init_irq to x86_init 2010-02-19 16:12:33 -08:00
Makefile x86/PCI: Moorestown PCI support 2010-02-23 23:14:47 -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
mmconfig-shared.c x86/PCI: MMCONFIG: add lookup function 2009-11-24 15:30:36 -08:00
mrst.c x86/PCI: Moorestown PCI support 2010-02-23 23:14:47 -08:00
numaq_32.c x86: Move pci init function to x86_init 2010-02-19 16:12:29 -08:00
olpc.c
pcbios.c
visws.c x86: Move pci init function to x86_init 2010-02-19 16:12:29 -08:00