home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / src / linux-headers-2.6.17-6 / include / asm-h8300 / virtconvert.h < prev   
Encoding:
C/C++ Source or Header  |  2006-08-11  |  481 b   |  23 lines

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