aboutsummaryrefslogblamecommitdiffstats
path: root/arch/h8300/include/asm/virtconvert.h
blob: 19cfd62b11c30ac1206a0f9b4fc61f21fc1efdb5 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                    


                      







                                                         
#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