aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjorn Helgaas <bjorn.helgaas@hp.com>2007-03-30 12:33:11 -0400
committerTony Luck <tony.luck@intel.com>2007-03-30 12:37:17 -0400
commitc4add2e537e6f60048dce8dc518254e7e605301d (patch)
tree80558c6c5b79b82c9851b00a739d2effa870ce9a
parentce20269d1e97030afa476e12b99d2437e748d225 (diff)
[IA64] rename ioremap variables to match i386
No functional change, just use the same names as i386. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
-rw-r--r--arch/ia64/mm/ioremap.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/arch/ia64/mm/ioremap.c b/arch/ia64/mm/ioremap.c
index 4280c074d64e..1bc0c172726f 100644
--- a/arch/ia64/mm/ioremap.c
+++ b/arch/ia64/mm/ioremap.c
@@ -14,13 +14,13 @@
14#include <asm/meminit.h> 14#include <asm/meminit.h>
15 15
16static inline void __iomem * 16static inline void __iomem *
17__ioremap (unsigned long offset, unsigned long size) 17__ioremap (unsigned long phys_addr, unsigned long size)
18{ 18{
19 return (void __iomem *) (__IA64_UNCACHED_OFFSET | offset); 19 return (void __iomem *) (__IA64_UNCACHED_OFFSET | phys_addr);
20} 20}
21 21
22void __iomem * 22void __iomem *
23ioremap (unsigned long offset, unsigned long size) 23ioremap (unsigned long phys_addr, unsigned long size)
24{ 24{
25 u64 attr; 25 u64 attr;
26 unsigned long gran_base, gran_size; 26 unsigned long gran_base, gran_size;
@@ -30,31 +30,31 @@ ioremap (unsigned long offset, unsigned long size)
30 * as the rest of the kernel. For more details, see 30 * as the rest of the kernel. For more details, see
31 * Documentation/ia64/aliasing.txt. 31 * Documentation/ia64/aliasing.txt.
32 */ 32 */
33 attr = kern_mem_attribute(offset, size); 33 attr = kern_mem_attribute(phys_addr, size);
34 if (attr & EFI_MEMORY_WB) 34 if (attr & EFI_MEMORY_WB)
35 return (void __iomem *) phys_to_virt(offset); 35 return (void __iomem *) phys_to_virt(phys_addr);
36 else if (attr & EFI_MEMORY_UC) 36 else if (attr & EFI_MEMORY_UC)
37 return __ioremap(offset, size); 37 return __ioremap(phys_addr, size);
38 38
39 /* 39 /*
40 * Some chipsets don't support UC access to memory. If 40 * Some chipsets don't support UC access to memory. If
41 * WB is supported for the whole granule, we prefer that. 41 * WB is supported for the whole granule, we prefer that.
42 */ 42 */
43 gran_base = GRANULEROUNDDOWN(offset); 43 gran_base = GRANULEROUNDDOWN(phys_addr);
44 gran_size = GRANULEROUNDUP(offset + size) - gran_base; 44 gran_size = GRANULEROUNDUP(phys_addr + size) - gran_base;
45 if (efi_mem_attribute(gran_base, gran_size) & EFI_MEMORY_WB) 45 if (efi_mem_attribute(gran_base, gran_size) & EFI_MEMORY_WB)
46 return (void __iomem *) phys_to_virt(offset); 46 return (void __iomem *) phys_to_virt(phys_addr);
47 47
48 return __ioremap(offset, size); 48 return __ioremap(phys_addr, size);
49} 49}
50EXPORT_SYMBOL(ioremap); 50EXPORT_SYMBOL(ioremap);
51 51
52void __iomem * 52void __iomem *
53ioremap_nocache (unsigned long offset, unsigned long size) 53ioremap_nocache (unsigned long phys_addr, unsigned long size)
54{ 54{
55 if (kern_mem_attribute(offset, size) & EFI_MEMORY_WB) 55 if (kern_mem_attribute(phys_addr, size) & EFI_MEMORY_WB)
56 return NULL; 56 return NULL;
57 57
58 return __ioremap(offset, size); 58 return __ioremap(phys_addr, size);
59} 59}
60EXPORT_SYMBOL(ioremap_nocache); 60EXPORT_SYMBOL(ioremap_nocache);