diff options
Diffstat (limited to 'include/asm-h8300/virtconvert.h')
-rw-r--r-- | include/asm-h8300/virtconvert.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/asm-h8300/virtconvert.h b/include/asm-h8300/virtconvert.h new file mode 100644 index 000000000000..3b344c1dfe0f --- /dev/null +++ b/include/asm-h8300/virtconvert.h | |||
@@ -0,0 +1,23 @@ | |||
1 | #ifndef __H8300_VIRT_CONVERT__ | ||
2 | #define __H8300_VIRT_CONVERT__ | ||
3 | |||
4 | /* | ||
5 | * Macros used for converting between virtual and physical mappings. | ||
6 | */ | ||
7 | |||
8 | #ifdef __KERNEL__ | ||
9 | |||
10 | #include <linux/config.h> | ||
11 | #include <asm/setup.h> | ||
12 | #include <asm/page.h> | ||
13 | |||
14 | #define mm_ptov(vaddr) ((void *) (vaddr)) | ||
15 | #define mm_vtop(vaddr) ((unsigned long) (vaddr)) | ||
16 | #define phys_to_virt(vaddr) ((void *) (vaddr)) | ||
17 | #define virt_to_phys(vaddr) ((unsigned long) (vaddr)) | ||
18 | |||
19 | #define virt_to_bus virt_to_phys | ||
20 | #define bus_to_virt phys_to_virt | ||
21 | |||
22 | #endif | ||
23 | #endif | ||