aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/pci/mmconfig_64.c
diff options
context:
space:
mode:
authorBjorn Helgaas <bjorn.helgaas@hp.com>2009-11-13 19:34:18 -0500
committerJesse Barnes <jbarnes@virtuousgeek.org>2009-11-24 18:29:24 -0500
commitd7e6b66fe87c9f42480d73fc314aecaeae84ca6b (patch)
tree0d8f33a6df0c684f6b7da1e7cbfaf7771cde5bee /arch/x86/pci/mmconfig_64.c
parentd215a9c8b46e55a1d3bc1cd907c943ef95938a0e (diff)
x86/PCI: MMCONFIG: rename pci_mmcfg_region structure members
This only renames the struct pci_mmcfg_region members; no functional change. 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/pci/mmconfig_64.c')
-rw-r--r--arch/x86/pci/mmconfig_64.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/arch/x86/pci/mmconfig_64.c b/arch/x86/pci/mmconfig_64.c
index 7a6231c3335e..fdf08f97131b 100644
--- a/arch/x86/pci/mmconfig_64.c
+++ b/arch/x86/pci/mmconfig_64.c
@@ -26,9 +26,9 @@ static char __iomem *get_virt(unsigned int seg, unsigned bus)
26 26
27 for (cfg_num = 0; cfg_num < pci_mmcfg_config_num; cfg_num++) { 27 for (cfg_num = 0; cfg_num < pci_mmcfg_config_num; cfg_num++) {
28 cfg = pci_mmcfg_virt[cfg_num].cfg; 28 cfg = pci_mmcfg_virt[cfg_num].cfg;
29 if (cfg->pci_segment == seg && 29 if (cfg->segment == seg &&
30 (cfg->start_bus_number <= bus) && 30 (cfg->start_bus <= bus) &&
31 (cfg->end_bus_number >= bus)) 31 (cfg->end_bus >= bus))
32 return pci_mmcfg_virt[cfg_num].virt; 32 return pci_mmcfg_virt[cfg_num].virt;
33 } 33 }
34 34
@@ -115,14 +115,14 @@ static void __iomem * __init mcfg_ioremap(struct pci_mmcfg_region *cfg)
115 u64 start, size; 115 u64 start, size;
116 int num_buses; 116 int num_buses;
117 117
118 start = cfg->address + PCI_MMCFG_BUS_OFFSET(cfg->start_bus_number); 118 start = cfg->address + PCI_MMCFG_BUS_OFFSET(cfg->start_bus);
119 num_buses = cfg->end_bus_number - cfg->start_bus_number + 1; 119 num_buses = cfg->end_bus - cfg->start_bus + 1;
120 size = PCI_MMCFG_BUS_OFFSET(num_buses); 120 size = PCI_MMCFG_BUS_OFFSET(num_buses);
121 addr = ioremap_nocache(start, size); 121 addr = ioremap_nocache(start, size);
122 if (addr) { 122 if (addr) {
123 printk(KERN_INFO "PCI: Using MMCONFIG at %Lx - %Lx\n", 123 printk(KERN_INFO "PCI: Using MMCONFIG at %Lx - %Lx\n",
124 start, start + size - 1); 124 start, start + size - 1);
125 addr -= PCI_MMCFG_BUS_OFFSET(cfg->start_bus_number); 125 addr -= PCI_MMCFG_BUS_OFFSET(cfg->start_bus);
126 } 126 }
127 return addr; 127 return addr;
128} 128}
@@ -143,7 +143,7 @@ int __init pci_mmcfg_arch_init(void)
143 if (!pci_mmcfg_virt[i].virt) { 143 if (!pci_mmcfg_virt[i].virt) {
144 printk(KERN_ERR "PCI: Cannot map mmconfig aperture for " 144 printk(KERN_ERR "PCI: Cannot map mmconfig aperture for "
145 "segment %d\n", 145 "segment %d\n",
146 pci_mmcfg_config[i].pci_segment); 146 pci_mmcfg_config[i].segment);
147 pci_mmcfg_arch_free(); 147 pci_mmcfg_arch_free();
148 return 0; 148 return 0;
149 } 149 }
@@ -161,7 +161,7 @@ void __init pci_mmcfg_arch_free(void)
161 161
162 for (i = 0; i < pci_mmcfg_config_num; ++i) { 162 for (i = 0; i < pci_mmcfg_config_num; ++i) {
163 if (pci_mmcfg_virt[i].virt) { 163 if (pci_mmcfg_virt[i].virt) {
164 iounmap(pci_mmcfg_virt[i].virt + PCI_MMCFG_BUS_OFFSET(pci_mmcfg_virt[i].cfg->start_bus_number)); 164 iounmap(pci_mmcfg_virt[i].virt + PCI_MMCFG_BUS_OFFSET(pci_mmcfg_virt[i].cfg->start_bus));
165 pci_mmcfg_virt[i].virt = NULL; 165 pci_mmcfg_virt[i].virt = NULL;
166 pci_mmcfg_virt[i].cfg = NULL; 166 pci_mmcfg_virt[i].cfg = NULL;
167 } 167 }