aboutsummaryrefslogtreecommitdiffstats
path: root/arch/nios2
diff options
context:
space:
mode:
Diffstat (limited to 'arch/nios2')
-rw-r--r--arch/nios2/include/asm/io.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/nios2/include/asm/io.h b/arch/nios2/include/asm/io.h
index 13dc22b50800..65583ee4561a 100644
--- a/arch/nios2/include/asm/io.h
+++ b/arch/nios2/include/asm/io.h
@@ -48,14 +48,14 @@ static inline void iounmap(void __iomem *addr)
48} 48}
49 49
50/* Pages to physical address... */ 50/* Pages to physical address... */
51# define page_to_phys(page) virt_to_phys(page_to_virt(page)) 51#define page_to_phys(page) virt_to_phys(page_to_virt(page))
52# define page_to_bus(page) page_to_virt(page) 52#define page_to_bus(page) page_to_virt(page)
53 53
54/* Macros used for converting between virtual and physical mappings. */ 54/* Macros used for converting between virtual and physical mappings. */
55# define phys_to_virt(vaddr) \ 55#define phys_to_virt(vaddr) \
56 ((void *)((unsigned long)(vaddr) | CONFIG_NIOS2_KERNEL_REGION_BASE)) 56 ((void *)((unsigned long)(vaddr) | CONFIG_NIOS2_KERNEL_REGION_BASE))
57/* Clear top 3 bits */ 57/* Clear top 3 bits */
58# define virt_to_phys(vaddr) \ 58#define virt_to_phys(vaddr) \
59 ((unsigned long)((unsigned long)(vaddr) & ~0xE0000000)) 59 ((unsigned long)((unsigned long)(vaddr) & ~0xE0000000))
60 60
61#endif /* _ASM_NIOS2_IO_H */ 61#endif /* _ASM_NIOS2_IO_H */