From 392e8802486cb573b916e746010e141a75f507e6 Mon Sep 17 00:00:00 2001 From: Kevin Date: Sat, 15 Nov 2014 09:58:27 +0800 Subject: init android origin source code --- ANDROID_3.4.5/arch/h8300/include/asm/virtconvert.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 ANDROID_3.4.5/arch/h8300/include/asm/virtconvert.h (limited to 'ANDROID_3.4.5/arch/h8300/include/asm/virtconvert.h') diff --git a/ANDROID_3.4.5/arch/h8300/include/asm/virtconvert.h b/ANDROID_3.4.5/arch/h8300/include/asm/virtconvert.h new file mode 100644 index 00000000..19cfd62b --- /dev/null +++ b/ANDROID_3.4.5/arch/h8300/include/asm/virtconvert.h @@ -0,0 +1,20 @@ +#ifndef __H8300_VIRT_CONVERT__ +#define __H8300_VIRT_CONVERT__ + +/* + * Macros used for converting between virtual and physical mappings. + */ + +#ifdef __KERNEL__ + +#include +#include + +#define phys_to_virt(vaddr) ((void *) (vaddr)) +#define virt_to_phys(vaddr) ((unsigned long) (vaddr)) + +#define virt_to_bus virt_to_phys +#define bus_to_virt phys_to_virt + +#endif +#endif -- cgit