xref: /OK3568_Linux_fs/kernel/arch/mips/include/asm/mach-ip27/spaces.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /*
2*4882a593Smuzhiyun  * This file is subject to the terms and conditions of the GNU General Public
3*4882a593Smuzhiyun  * License.  See the file "COPYING" in the main directory of this archive
4*4882a593Smuzhiyun  * for more details.
5*4882a593Smuzhiyun  *
6*4882a593Smuzhiyun  * Copyright (C) 1996, 99 Ralf Baechle
7*4882a593Smuzhiyun  * Copyright (C) 2000, 2002  Maciej W. Rozycki
8*4882a593Smuzhiyun  * Copyright (C) 1990, 1999 by Silicon Graphics, Inc.
9*4882a593Smuzhiyun  */
10*4882a593Smuzhiyun #ifndef _ASM_MACH_IP27_SPACES_H
11*4882a593Smuzhiyun #define _ASM_MACH_IP27_SPACES_H
12*4882a593Smuzhiyun 
13*4882a593Smuzhiyun #include <linux/const.h>
14*4882a593Smuzhiyun 
15*4882a593Smuzhiyun /*
16*4882a593Smuzhiyun  * IP27 uses the R10000's uncached attribute feature.  Attribute 3 selects
17*4882a593Smuzhiyun  * uncached memory addressing. Hide the definitions on 32-bit compilation
18*4882a593Smuzhiyun  * of the compat-vdso code.
19*4882a593Smuzhiyun  */
20*4882a593Smuzhiyun #ifdef CONFIG_64BIT
21*4882a593Smuzhiyun #define HSPEC_BASE		_AC(0x9000000000000000, UL)
22*4882a593Smuzhiyun #define IO_BASE			_AC(0x9200000000000000, UL)
23*4882a593Smuzhiyun #define MSPEC_BASE		_AC(0x9400000000000000, UL)
24*4882a593Smuzhiyun #define UNCAC_BASE		_AC(0x9600000000000000, UL)
25*4882a593Smuzhiyun #define CAC_BASE		_AC(0xa800000000000000, UL)
26*4882a593Smuzhiyun #endif
27*4882a593Smuzhiyun 
28*4882a593Smuzhiyun #define TO_MSPEC(x)		(MSPEC_BASE | ((x) & TO_PHYS_MASK))
29*4882a593Smuzhiyun #define TO_HSPEC(x)		(HSPEC_BASE | ((x) & TO_PHYS_MASK))
30*4882a593Smuzhiyun 
31*4882a593Smuzhiyun #define HIGHMEM_START		(~0UL)
32*4882a593Smuzhiyun 
33*4882a593Smuzhiyun #include <asm/mach-generic/spaces.h>
34*4882a593Smuzhiyun 
35*4882a593Smuzhiyun #endif /* _ASM_MACH_IP27_SPACES_H */
36