Go to the documentation of this file.
20 #ifndef __ASM_ARCH_MEMORY_H
21 #define __ASM_ARCH_MEMORY_H
26 #define PLAT_PHYS_OFFSET UL(0x00000000)
28 #define BUS_OFFSET UL(0x80000000)
29 #define __virt_to_bus(x) ((x) - PAGE_OFFSET + BUS_OFFSET)
30 #define __bus_to_virt(x) ((x) - BUS_OFFSET + PAGE_OFFSET)
31 #define __pfn_to_bus(x) (__pfn_to_phys(x) + (BUS_OFFSET - PHYS_OFFSET))
32 #define __bus_to_pfn(x) __phys_to_pfn((x) - (BUS_OFFSET - PHYS_OFFSET))