Skip to contentSkip to conversation

ACPI, PCI, x86: move MCFG parsing routine from ACPI to PCI file

PATCH New Len Brown 1 participant 1 message Jun 12, 2009

Subsystems (3)
lore
Share & tools
lore

Len Brown

author reviewer
#0 lore raw

PATCH 1/1 ACPI, PCI, x86: move MCFG parsing routine from ACPI to PCI file

From: Len Brown <[email protected]>

Move acpi_parse_mcfg() from arch/x86/kernel/acpi/boot.c to arch/x86/pci/mmconfig-shared.c make it static, and re-name it to be pci_parse_mcfg().

Move associated globals and helper routine with it.

No functional change.

This code move is in preparation for SFI support, which will allow the PCI code to find the MCFG table on systems which do not support ACPI.

---
 arch/x86/include/asm/pci_x86.h |    3 ++
 arch/x86/kernel/acpi/boot.c    |   66 ----------------------------------------
 arch/x86/pci/mmconfig-shared.c |   65 ++++++++++++++++++++++++++++++++++++++-
 include/linux/acpi.h           |    3 --
 4 files changed, 67 insertions(+), 70 deletions(-)
arch/x86/include/asm/pci_x86.h +3 -0
index e60fd3e..b399988 100644
@@ -121,6 +121,9 @@ extern int __init pcibios_init(void);
 extern int __init pci_mmcfg_arch_init(void);
 extern void __init pci_mmcfg_arch_free(void);
 
+extern struct acpi_mcfg_allocation *pci_mmcfg_config;
+extern int pci_mmcfg_config_num;
+
 /*
  * AMD Fam10h CPUs are buggy, and cannot access MMIO config space
  * on their northbrige except through the * %eax register. As such, you MUST
arch/x86/kernel/acpi/boot.c +0 -66

72 lines not on this page · raw message

arch/x86/pci/mmconfig-shared.c +64 -1

77 lines not on this page · raw message

include/linux/acpi.h +0 -3
index 88be890..73cb141 100644
@@ -113,9 +113,6 @@ void acpi_irq_stats_init(void);
 extern u32 acpi_irq_handled;
 extern u32 acpi_irq_not_handled;
 
-extern struct acpi_mcfg_allocation *pci_mmcfg_config;
-extern int pci_mmcfg_config_num;
-
 extern int sbf_port;
 extern unsigned long acpi_realmode_flags;
 
Signature · 1 line
1.6.0.6