diff options
Diffstat (limited to 'include/asm-mips/addrspace.h')
-rw-r--r-- | include/asm-mips/addrspace.h | 36 |
1 files changed, 1 insertions, 35 deletions
diff --git a/include/asm-mips/addrspace.h b/include/asm-mips/addrspace.h index a7d0d26e93c..45c706e34df 100644 --- a/include/asm-mips/addrspace.h +++ b/include/asm-mips/addrspace.h | |||
@@ -128,60 +128,26 @@ | |||
128 | #if defined (CONFIG_CPU_R4300) \ | 128 | #if defined (CONFIG_CPU_R4300) \ |
129 | || defined (CONFIG_CPU_R4X00) \ | 129 | || defined (CONFIG_CPU_R4X00) \ |
130 | || defined (CONFIG_CPU_R5000) \ | 130 | || defined (CONFIG_CPU_R5000) \ |
131 | || defined (CONFIG_CPU_RM7000) \ | ||
131 | || defined (CONFIG_CPU_NEVADA) \ | 132 | || defined (CONFIG_CPU_NEVADA) \ |
132 | || defined (CONFIG_CPU_TX49XX) \ | 133 | || defined (CONFIG_CPU_TX49XX) \ |
133 | || defined (CONFIG_CPU_MIPS64) | 134 | || defined (CONFIG_CPU_MIPS64) |
134 | #define KUSIZE _LLCONST_(0x0000010000000000) /* 2^^40 */ | ||
135 | #define KUSIZE_64 _LLCONST_(0x0000010000000000) /* 2^^40 */ | ||
136 | #define K0SIZE _LLCONST_(0x0000001000000000) /* 2^^36 */ | ||
137 | #define K1SIZE _LLCONST_(0x0000001000000000) /* 2^^36 */ | ||
138 | #define K2SIZE _LLCONST_(0x000000ff80000000) | ||
139 | #define KSEGSIZE _LLCONST_(0x000000ff80000000) /* max syssegsz */ | ||
140 | #define TO_PHYS_MASK _LLCONST_(0x0000000fffffffff) /* 2^^36 - 1 */ | 135 | #define TO_PHYS_MASK _LLCONST_(0x0000000fffffffff) /* 2^^36 - 1 */ |
141 | #endif | 136 | #endif |
142 | 137 | ||
143 | #if defined (CONFIG_CPU_R8000) | 138 | #if defined (CONFIG_CPU_R8000) |
144 | /* We keep KUSIZE consistent with R4000 for now (2^^40) instead of (2^^48) */ | 139 | /* We keep KUSIZE consistent with R4000 for now (2^^40) instead of (2^^48) */ |
145 | #define KUSIZE _LLCONST_(0x0000010000000000) /* 2^^40 */ | ||
146 | #define KUSIZE_64 _LLCONST_(0x0000010000000000) /* 2^^40 */ | ||
147 | #define K0SIZE _LLCONST_(0x0000010000000000) /* 2^^40 */ | ||
148 | #define K1SIZE _LLCONST_(0x0000010000000000) /* 2^^40 */ | ||
149 | #define K2SIZE _LLCONST_(0x0001000000000000) | ||
150 | #define KSEGSIZE _LLCONST_(0x0000010000000000) /* max syssegsz */ | ||
151 | #define TO_PHYS_MASK _LLCONST_(0x000000ffffffffff) /* 2^^40 - 1 */ | 140 | #define TO_PHYS_MASK _LLCONST_(0x000000ffffffffff) /* 2^^40 - 1 */ |
152 | #endif | 141 | #endif |
153 | 142 | ||
154 | #if defined (CONFIG_CPU_R10000) | 143 | #if defined (CONFIG_CPU_R10000) |
155 | #define KUSIZE _LLCONST_(0x0000010000000000) /* 2^^40 */ | ||
156 | #define KUSIZE_64 _LLCONST_(0x0000010000000000) /* 2^^40 */ | ||
157 | #define K0SIZE _LLCONST_(0x0000010000000000) /* 2^^40 */ | ||
158 | #define K1SIZE _LLCONST_(0x0000010000000000) /* 2^^40 */ | ||
159 | #define K2SIZE _LLCONST_(0x00000fff80000000) | ||
160 | #define KSEGSIZE _LLCONST_(0x00000fff80000000) /* max syssegsz */ | ||
161 | #define TO_PHYS_MASK _LLCONST_(0x000000ffffffffff) /* 2^^40 - 1 */ | 144 | #define TO_PHYS_MASK _LLCONST_(0x000000ffffffffff) /* 2^^40 - 1 */ |
162 | #endif | 145 | #endif |
163 | 146 | ||
164 | #if defined(CONFIG_CPU_SB1) || defined(CONFIG_CPU_SB1A) | 147 | #if defined(CONFIG_CPU_SB1) || defined(CONFIG_CPU_SB1A) |
165 | #define KUSIZE _LLCONST_(0x0000100000000000) /* 2^^44 */ | ||
166 | #define KUSIZE_64 _LLCONST_(0x0000100000000000) /* 2^^44 */ | ||
167 | #define K0SIZE _LLCONST_(0x0000100000000000) /* 2^^44 */ | ||
168 | #define K1SIZE _LLCONST_(0x0000100000000000) /* 2^^44 */ | ||
169 | #define K2SIZE _LLCONST_(0x0000ffff80000000) | ||
170 | #define KSEGSIZE _LLCONST_(0x0000ffff80000000) /* max syssegsz */ | ||
171 | #define TO_PHYS_MASK _LLCONST_(0x00000fffffffffff) /* 2^^44 - 1 */ | 148 | #define TO_PHYS_MASK _LLCONST_(0x00000fffffffffff) /* 2^^44 - 1 */ |
172 | #endif | 149 | #endif |
173 | 150 | ||
174 | /* | ||
175 | * Further names for SGI source compatibility. These are stolen from | ||
176 | * IRIX's <sys/mips_addrspace.h>. | ||
177 | */ | ||
178 | #define KUBASE _LLCONST_(0) | ||
179 | #define KUSIZE_32 _LLCONST_(0x0000000080000000) /* KUSIZE | ||
180 | for a 32 bit proc */ | ||
181 | #define K0BASE_EXL_WR _LLCONST_(0xa800000000000000) /* exclusive on write */ | ||
182 | #define K0BASE_NONCOH _LLCONST_(0x9800000000000000) /* noncoherent */ | ||
183 | #define K0BASE_EXL _LLCONST_(0xa000000000000000) /* exclusive */ | ||
184 | |||
185 | #ifndef CONFIG_CPU_R8000 | 151 | #ifndef CONFIG_CPU_R8000 |
186 | 152 | ||
187 | /* | 153 | /* |