blob: bdcf03895ee0445e4be30466bfe32e479e41b7a8 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
Lennert Buytenhekc852ac82006-09-18 23:26:25 +01002 * include/asm-arm/arch-iop32x/memory.h
Linus Torvalds1da177e2005-04-16 15:20:36 -07003 */
4
Lennert Buytenhekc852ac82006-09-18 23:26:25 +01005#ifndef __MEMORY_H
6#define __MEMORY_H
Linus Torvalds1da177e2005-04-16 15:20:36 -07007
Russell Kingbe509722008-08-04 10:41:28 +01008#include <asm/arch/hardware.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07009
10/*
11 * Physical DRAM offset.
12 */
Nicolas Pitref09b9972005-10-29 21:44:55 +010013#define PHYS_OFFSET UL(0xa0000000)
Linus Torvalds1da177e2005-04-16 15:20:36 -070014
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 Williamse90ddd82007-05-02 17:59:44 +010022#define __virt_to_bus(x) (__virt_to_phys(x))
23#define __bus_to_virt(x) (__phys_to_virt(x))
Linus Torvalds1da177e2005-04-16 15:20:36 -070024
Linus Torvalds1da177e2005-04-16 15:20:36 -070025
Linus Torvalds1da177e2005-04-16 15:20:36 -070026#endif