1/* 2 * include/asm-arm/arch-ns9xxx/memory.h 3 * 4 * Copyright (C) 2006 by Digi International Inc. 5 * All rights reserved. 6 * 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. 10*/ 11#ifndef __ASM_ARCH_MEMORY_H 12#define __ASM_ARCH_MEMORY_H 13 14/* x in [0..3] */ 15#define NS9XXX_CSxSTAT_PHYS(x) UL(((x) + 4) << 28) 16 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) 21 22#define PHYS_OFFSET UL(0x00000000) 23 24#define __virt_to_bus(x) __virt_to_phys(x) 25#define __bus_to_virt(x) __phys_to_virt(x) 26 27#endif 28