virtconvert.h 388 B

123456789101112131415161718192021
  1. #ifndef __H8300_VIRT_CONVERT__
  2. #define __H8300_VIRT_CONVERT__
  3. /*
  4. * Macros used for converting between virtual and physical mappings.
  5. */
  6. #ifdef __KERNEL__
  7. #include <asm/setup.h>
  8. #include <asm/page.h>
  9. #define phys_to_virt(vaddr) ((void *) (vaddr))
  10. #define virt_to_phys(vaddr) ((unsigned long) (vaddr))
  11. #define virt_to_bus virt_to_phys
  12. #define bus_to_virt phys_to_virt
  13. #endif
  14. #endif