virtconvert.h 481 B

12345678910111213141516171819202122
  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 mm_ptov(vaddr) ((void *) (vaddr))
  10. #define mm_vtop(vaddr) ((unsigned long) (vaddr))
  11. #define phys_to_virt(vaddr) ((void *) (vaddr))
  12. #define virt_to_phys(vaddr) ((unsigned long) (vaddr))
  13. #define virt_to_bus virt_to_phys
  14. #define bus_to_virt phys_to_virt
  15. #endif
  16. #endif