aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/pci/mmconfig-shared.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/pci/mmconfig-shared.c')
-rw-r--r--arch/x86/pci/mmconfig-shared.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/x86/pci/mmconfig-shared.c b/arch/x86/pci/mmconfig-shared.c
index 71d69b88fa3..b19d1e54201 100644
--- a/arch/x86/pci/mmconfig-shared.c
+++ b/arch/x86/pci/mmconfig-shared.c
@@ -97,6 +97,18 @@ static __init struct pci_mmcfg_region *pci_mmconfig_add(int segment, int start,
97 return new; 97 return new;
98} 98}
99 99
100struct pci_mmcfg_region *pci_mmconfig_lookup(int segment, int bus)
101{
102 struct pci_mmcfg_region *cfg;
103
104 list_for_each_entry(cfg, &pci_mmcfg_list, list)
105 if (cfg->segment == segment &&
106 cfg->start_bus <= bus && bus <= cfg->end_bus)
107 return cfg;
108
109 return NULL;
110}
111
100static const char __init *pci_mmcfg_e7520(void) 112static const char __init *pci_mmcfg_e7520(void)
101{ 113{
102 u32 win; 114 u32 win;