aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2016-01-12 08:22:45 -0500
committerTony Luck <tony.luck@intel.com>2016-01-13 13:35:14 -0500
commit809267708557ed5575831282f719ca644698084b (patch)
treedcc000dd9585a59f2b8b48c41e3c5b35062421c8 /arch/ia64
parent67990608c8b95d2b8ccc29932376ae73d5818727 (diff)
ia64: split off early_ioremap() declarations into asm/early_ioremap.h
Unlike x86, arm64 and ARM, ia64 does not declare its implementations of early_ioremap/early_iounmap/early_memremap/early_memunmap in a header file called <asm/early_ioremap.h> This complicates the use of these functions in generic code, since the header cannot be included directly, and we have to rely on transitive includes, which is fragile. So create a <asm/early_ioremap.h> for ia64, and move the existing definitions into it. Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64')
-rw-r--r--arch/ia64/include/asm/early_ioremap.h10
-rw-r--r--arch/ia64/include/asm/io.h5
2 files changed, 11 insertions, 4 deletions
diff --git a/arch/ia64/include/asm/early_ioremap.h b/arch/ia64/include/asm/early_ioremap.h
new file mode 100644
index 000000000000..eec9e1d1b833
--- /dev/null
+++ b/arch/ia64/include/asm/early_ioremap.h
@@ -0,0 +1,10 @@
1#ifndef _ASM_IA64_EARLY_IOREMAP_H
2#define _ASM_IA64_EARLY_IOREMAP_H
3
4extern void __iomem * early_ioremap (unsigned long phys_addr, unsigned long size);
5#define early_memremap(phys_addr, size) early_ioremap(phys_addr, size)
6
7extern void early_iounmap (volatile void __iomem *addr, unsigned long size);
8#define early_memunmap(addr, size) early_iounmap(addr, size)
9
10#endif
diff --git a/arch/ia64/include/asm/io.h b/arch/ia64/include/asm/io.h
index 9041bbe2b7b4..a865d2a04f75 100644
--- a/arch/ia64/include/asm/io.h
+++ b/arch/ia64/include/asm/io.h
@@ -20,6 +20,7 @@
20 */ 20 */
21 21
22#include <asm/unaligned.h> 22#include <asm/unaligned.h>
23#include <asm/early_ioremap.h>
23 24
24/* We don't use IO slowdowns on the ia64, but.. */ 25/* We don't use IO slowdowns on the ia64, but.. */
25#define __SLOW_DOWN_IO do { } while (0) 26#define __SLOW_DOWN_IO do { } while (0)
@@ -427,10 +428,6 @@ __writeq (unsigned long val, volatile void __iomem *addr)
427extern void __iomem * ioremap(unsigned long offset, unsigned long size); 428extern void __iomem * ioremap(unsigned long offset, unsigned long size);
428extern void __iomem * ioremap_nocache (unsigned long offset, unsigned long size); 429extern void __iomem * ioremap_nocache (unsigned long offset, unsigned long size);
429extern void iounmap (volatile void __iomem *addr); 430extern void iounmap (volatile void __iomem *addr);
430extern void __iomem * early_ioremap (unsigned long phys_addr, unsigned long size);
431#define early_memremap(phys_addr, size) early_ioremap(phys_addr, size)
432extern void early_iounmap (volatile void __iomem *addr, unsigned long size);
433#define early_memunmap(addr, size) early_iounmap(addr, size)
434static inline void __iomem * ioremap_cache (unsigned long phys_addr, unsigned long size) 431static inline void __iomem * ioremap_cache (unsigned long phys_addr, unsigned long size)
435{ 432{
436 return ioremap(phys_addr, size); 433 return ioremap(phys_addr, size);