aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include
diff options
context:
space:
mode:
authorBjorn Helgaas <bjorn.helgaas@hp.com>2009-11-13 19:34:49 -0500
committerJesse Barnes <jbarnes@virtuousgeek.org>2009-11-24 18:30:14 -0500
commitff097ddd4aeac790fd51d013c79c2f18ec9a7117 (patch)
tree4a77f081e4ac7e93aa74a102bf372419699468b9 /arch/x86/include
parent987c367b4e93be6826394e7c9cc14d28bb5c8810 (diff)
x86/PCI: MMCONFIG: manage pci_mmcfg_region as a list, not a table
This changes pci_mmcfg_region from a table to a list, to make it easier to add and remove MMCONFIG regions for PCI host bridge hotplug. Reviewed-by: Yinghai Lu <yinghai@kernel.org> Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'arch/x86/include')
-rw-r--r--arch/x86/include/asm/pci_x86.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/include/asm/pci_x86.h b/arch/x86/include/asm/pci_x86.h
index 7aa2ed8f25ab..0b7c316a70c3 100644
--- a/arch/x86/include/asm/pci_x86.h
+++ b/arch/x86/include/asm/pci_x86.h
@@ -122,6 +122,7 @@ extern int __init pcibios_init(void);
122#define PCI_MMCFG_RESOURCE_NAME_LEN (22 + 4 + 2 + 2) 122#define PCI_MMCFG_RESOURCE_NAME_LEN (22 + 4 + 2 + 2)
123 123
124struct pci_mmcfg_region { 124struct pci_mmcfg_region {
125 struct list_head list;
125 struct resource res; 126 struct resource res;
126 u64 address; 127 u64 address;
127 char __iomem *virt; 128 char __iomem *virt;
@@ -134,8 +135,7 @@ struct pci_mmcfg_region {
134extern int __init pci_mmcfg_arch_init(void); 135extern int __init pci_mmcfg_arch_init(void);
135extern void __init pci_mmcfg_arch_free(void); 136extern void __init pci_mmcfg_arch_free(void);
136 137
137extern struct pci_mmcfg_region *pci_mmcfg_config; 138extern struct list_head pci_mmcfg_list;
138extern int pci_mmcfg_config_num;
139 139
140#define PCI_MMCFG_BUS_OFFSET(bus) ((bus) << 20) 140#define PCI_MMCFG_BUS_OFFSET(bus) ((bus) << 20)
141 141