Go to the documentation of this file.
19 #ifndef __ASM_ARCH_MEMORY_H
20 #define __ASM_ARCH_MEMORY_H
23 #if defined(CONFIG_FOOTBRIDGE_ADDIN)
35 #define __virt_to_bus __virt_to_bus
36 #define __bus_to_virt __bus_to_virt
38 #elif defined(CONFIG_FOOTBRIDGE_HOST)
45 #define BUS_OFFSET 0xe0000000
46 #define __virt_to_bus(x) ((x) + (BUS_OFFSET - PAGE_OFFSET))
47 #define __bus_to_virt(x) ((x) - (BUS_OFFSET - PAGE_OFFSET))
48 #define __pfn_to_bus(x) (__pfn_to_phys(x) + (BUS_OFFSET - PHYS_OFFSET))
49 #define __bus_to_pfn(x) __phys_to_pfn((x) - (BUS_OFFSET - PHYS_OFFSET))
53 #error "Undefined footbridge mode"
60 #define FLUSH_BASE 0xf9000000
65 #define PLAT_PHYS_OFFSET UL(0x00000000)
67 #define FLUSH_BASE_PHYS 0x50000000