x86/PCI: ACPI based PCI gap calculation
commit809d9a8f93bd8504dcc34b16bbfdfd1a8c9bb1ed
authorAlok Kataria <akataria@vmware.com>
Tue, 15 Jul 2008 18:59:42 +0000 (15 11:59 -0700)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 15 Jul 2008 22:49:03 +0000 (15 15:49 -0700)
tree52a090a2a10a126f3b4762fd6c98d58f5441a6d0
parentc300bd2fb583afb6d68804afd38bc90b31310d95
x86/PCI: ACPI based PCI gap calculation

Using ACPI to find free address space allows us to find a gap for the
unallocated PCI resources or MMIO resources for hotplug devices within
the BIOS allowed PCI regions.

It works by evaluating the _CRS object under PCI0 looking for producer
resources.  Then searches the e820 memory space for a gap within these
producer resources.

Signed-off-by: Alok N Kataria <akataria@vmware.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Len Brown <lenb@kernel.org>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
arch/x86/pci/acpi.c