diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-08-15 13:57:32 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-08-15 13:57:32 +0200 |
commit | 975439fe73d1f0f7ce8c235c66783bd34dc459c3 (patch) | |
tree | 84e29852d96283b13c6e603f86bd506a631343c5 /arch/h8300/include/asm/virtconvert.h | |
parent | ef31023743e66de7184e9aad432291c842a6384b (diff) | |
parent | 129d6aba444d1e99d4cbfb9866a4652912426b65 (diff) | |
download | op-kernel-dev-975439fe73d1f0f7ce8c235c66783bd34dc459c3.zip op-kernel-dev-975439fe73d1f0f7ce8c235c66783bd34dc459c3.tar.gz |
Merge branch 'x86/amd-iommu' into x86/urgent
Diffstat (limited to 'arch/h8300/include/asm/virtconvert.h')
-rw-r--r-- | arch/h8300/include/asm/virtconvert.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/h8300/include/asm/virtconvert.h b/arch/h8300/include/asm/virtconvert.h new file mode 100644 index 0000000..19cfd62 --- /dev/null +++ b/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 <asm/setup.h> +#include <asm/page.h> + +#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 |