Go to the documentation of this file. 1 #ifndef __VIRT_CONVERT__
2 #define __VIRT_CONVERT__
10 #include <linux/compiler.h>
12 #include <asm/setup.h>
30 #ifdef CONFIG_SINGLE_MEMORY_CHUNK
31 #define page_to_phys(page) \
32 __pa(PAGE_OFFSET + (((page) - pg_data_map[0].node_mem_map) << PAGE_SHIFT))
34 #define page_to_phys(page) (page_to_pfn(page) << PAGE_SHIFT)
37 #define page_to_phys(page) (((page) - mem_map) << PAGE_SHIFT)
43 #define virt_to_bus virt_to_phys
44 #define bus_to_virt phys_to_virt