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>
This commit is contained in:
committed by
Jesse Barnes
parent
987c367b4e
commit
ff097ddd4a
@@ -122,6 +122,7 @@ extern int __init pcibios_init(void);
|
||||
#define PCI_MMCFG_RESOURCE_NAME_LEN (22 + 4 + 2 + 2)
|
||||
|
||||
struct pci_mmcfg_region {
|
||||
struct list_head list;
|
||||
struct resource res;
|
||||
u64 address;
|
||||
char __iomem *virt;
|
||||
@@ -134,8 +135,7 @@ struct pci_mmcfg_region {
|
||||
extern int __init pci_mmcfg_arch_init(void);
|
||||
extern void __init pci_mmcfg_arch_free(void);
|
||||
|
||||
extern struct pci_mmcfg_region *pci_mmcfg_config;
|
||||
extern int pci_mmcfg_config_num;
|
||||
extern struct list_head pci_mmcfg_list;
|
||||
|
||||
#define PCI_MMCFG_BUS_OFFSET(bus) ((bus) << 20)
|
||||
|
||||
|
Reference in New Issue
Block a user