Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * This file is subject to the terms and conditions of the GNU General Public
0003  * License.  See the file "COPYING" in the main directory of this archive
0004  * for more details.
0005  *
0006  * Copyright (C) 1996, 99 Ralf Baechle
0007  * Copyright (C) 2000, 2002  Maciej W. Rozycki
0008  * Copyright (C) 1990, 1999 by Silicon Graphics, Inc.
0009  */
0010 #ifndef _ASM_MACH_IP27_SPACES_H
0011 #define _ASM_MACH_IP27_SPACES_H
0012 
0013 #include <linux/const.h>
0014 
0015 /*
0016  * IP27 uses the R10000's uncached attribute feature.  Attribute 3 selects
0017  * uncached memory addressing. Hide the definitions on 32-bit compilation
0018  * of the compat-vdso code.
0019  */
0020 #ifdef CONFIG_64BIT
0021 #define HSPEC_BASE      _AC(0x9000000000000000, UL)
0022 #define IO_BASE         _AC(0x9200000000000000, UL)
0023 #define MSPEC_BASE      _AC(0x9400000000000000, UL)
0024 #define UNCAC_BASE      _AC(0x9600000000000000, UL)
0025 #define CAC_BASE        _AC(0xa800000000000000, UL)
0026 #endif
0027 
0028 #define TO_MSPEC(x)     (MSPEC_BASE | ((x) & TO_PHYS_MASK))
0029 #define TO_HSPEC(x)     (HSPEC_BASE | ((x) & TO_PHYS_MASK))
0030 
0031 #define HIGHMEM_START       (~0UL)
0032 
0033 #include <asm/mach-generic/spaces.h>
0034 
0035 #endif /* _ASM_MACH_IP27_SPACES_H */