patch-2_6_7-vs1_9_1_12
[linux-2.6.git] / include / asm-arm / arch-nexuspci / memory.h
1 /*
2  * linux/include/asm-arm/arch-nexuspci/memory.h
3  *
4  * Copyright (c) 1997, 1998, 2000 FutureTV Labs Ltd.
5  * Copyright (c) 1999 Russell King
6  *
7  */
8 #ifndef __ASM_ARCH_MEMORY_H
9 #define __ASM_ARCH_MEMORY_H
10
11 /*
12  * Physical DRAM offset.
13  */
14 #define PHYS_OFFSET     (0x40000000UL)
15 #define BUS_OFFSET      (0xe0000000UL)
16
17 /*
18  * On the PCI bus the DRAM appears at address 0xe0000000
19  */
20 #define __virt_to_bus(x) ((unsigned long)(x) - PAGE_OFFSET + BUS_OFFSET)
21 #define __bus_to_virt(x) ((unsigned long)(x) + PAGE_OFFSET - BUS_OFFSET)
22
23 #endif