Merge git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
[wrt350n-kernel.git] / include / asm-arm / arch-ns9xxx / memory.h
blobce1343e593e1661b70c1c5d819f815c5b87ecba5
1 /*
2 * include/asm-arm/arch-ns9xxx/memory.h
4 * Copyright (C) 2006 by Digi International Inc.
5 * All rights reserved.
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License version 2 as published by
9 * the Free Software Foundation.
11 #ifndef __ASM_ARCH_MEMORY_H
12 #define __ASM_ARCH_MEMORY_H
14 /* x in [0..3] */
15 #define NS9XXX_CSxSTAT_PHYS(x) UL(((x) + 4) << 28)
17 #define NS9XXX_CS0STAT_LENGTH UL(0x1000)
18 #define NS9XXX_CS1STAT_LENGTH UL(0x1000)
19 #define NS9XXX_CS2STAT_LENGTH UL(0x1000)
20 #define NS9XXX_CS3STAT_LENGTH UL(0x1000)
22 #define PHYS_OFFSET UL(0x00000000)
24 #define __virt_to_bus(x) __virt_to_phys(x)
25 #define __bus_to_virt(x) __phys_to_virt(x)
27 #endif