Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
Lennert Buytenhek | c852ac8 | 2006-09-18 23:26:25 +0100 | [diff] [blame] | 2 | * include/asm-arm/arch-iop33x/memory.h |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3 | */ |
| 4 | |
Lennert Buytenhek | c852ac8 | 2006-09-18 23:26:25 +0100 | [diff] [blame] | 5 | #ifndef __MEMORY_H |
| 6 | #define __MEMORY_H |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 7 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 8 | #include <asm/hardware.h> |
| 9 | |
| 10 | /* |
| 11 | * Physical DRAM offset. |
| 12 | */ |
Nicolas Pitre | f09b997 | 2005-10-29 21:44:55 +0100 | [diff] [blame] | 13 | #define PHYS_OFFSET UL(0x00000000) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 14 | |
| 15 | /* |
| 16 | * Virtual view <-> PCI DMA view memory address translations |
| 17 | * virt_to_bus: Used to translate the virtual address to an |
| 18 | * address suitable to be passed to set_dma_addr |
| 19 | * bus_to_virt: Used to convert an address for DMA operations |
| 20 | * to an address that the kernel can use. |
| 21 | */ |
Dan Williams | e90ddd8 | 2007-05-02 17:59:44 +0100 | [diff] [blame] | 22 | #define __virt_to_bus(x) (__virt_to_phys(x)) |
| 23 | #define __bus_to_virt(x) (__phys_to_virt(x)) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 24 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 25 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 26 | #endif |