aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-mips
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2007-10-11 18:46:16 -0400
committerRalf Baechle <ralf@linux-mips.org>2007-10-11 18:46:16 -0400
commit36cfbaad815908f54872a7b471e9a7a09b4084a4 (patch)
tree5cd05b5f6aec60c591fa63926274567aaafc245a /include/asm-mips
parent9cfde2028bc487982a4bfb0d20d2ca76366fa80d (diff)
[MIPS] Convert list of CPU types from #define to enum.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include/asm-mips')
-rw-r--r--include/asm-mips/cpu.h119
1 files changed, 49 insertions, 70 deletions
diff --git a/include/asm-mips/cpu.h b/include/asm-mips/cpu.h
index 107ccbeee294..54fc18a4e5a8 100644
--- a/include/asm-mips/cpu.h
+++ b/include/asm-mips/cpu.h
@@ -157,76 +157,55 @@
157 157
158#define FPIR_IMP_NONE 0x0000 158#define FPIR_IMP_NONE 0x0000
159 159
160#define CPU_UNKNOWN 0 160enum cpu_type_enum {
161#define CPU_R2000 1 161 CPU_UNKNOWN,
162#define CPU_R3000 2 162
163#define CPU_R3000A 3 163 /*
164#define CPU_R3041 4 164 * R2000 class processors
165#define CPU_R3051 5 165 */
166#define CPU_R3052 6 166 CPU_R2000, CPU_R3000, CPU_R3000A, CPU_R3041, CPU_R3051, CPU_R3052,
167#define CPU_R3081 7 167 CPU_R3081, CPU_R3081E,
168#define CPU_R3081E 8 168
169#define CPU_R4000PC 9 169 /*
170#define CPU_R4000SC 10 170 * R6000 class processors
171#define CPU_R4000MC 11 171 */
172#define CPU_R4200 12 172 CPU_R6000, CPU_R6000A,
173#define CPU_R4400PC 13 173
174#define CPU_R4400SC 14 174 /*
175#define CPU_R4400MC 15 175 * R4000 class processors
176#define CPU_R4600 16 176 */
177#define CPU_R6000 17 177 CPU_R4000PC, CPU_R4000SC, CPU_R4000MC, CPU_R4200, CPU_R4300, CPU_R4310,
178#define CPU_R6000A 18 178 CPU_R4400PC, CPU_R4400SC, CPU_R4400MC, CPU_R4600, CPU_R4640, CPU_R4650,
179#define CPU_R8000 19 179 CPU_R4700, CPU_R5000, CPU_R5000A, CPU_R5500, CPU_NEVADA, CPU_R5432,
180#define CPU_R10000 20 180 CPU_R10000, CPU_R12000, CPU_R14000, CPU_VR41XX, CPU_VR4111, CPU_VR4121,
181#define CPU_R12000 21 181 CPU_VR4122, CPU_VR4131, CPU_VR4133, CPU_VR4181, CPU_VR4181A, CPU_RM7000,
182#define CPU_R4300 22 182 CPU_SR71000, CPU_RM9000, CPU_TX49XX,
183#define CPU_R4650 23 183
184#define CPU_R4700 24 184 /*
185#define CPU_R5000 25 185 * R8000 class processors
186#define CPU_R5000A 26 186 */
187#define CPU_R4640 27 187 CPU_R8000,
188#define CPU_NEVADA 28 188
189#define CPU_RM7000 29 189 /*
190#define CPU_R5432 30 190 * TX3900 class processors
191#define CPU_4KC 31 191 */
192#define CPU_5KC 32 192 CPU_TX3912, CPU_TX3922, CPU_TX3927,
193#define CPU_R4310 33 193
194#define CPU_SB1 34 194 /*
195#define CPU_TX3912 35 195 * MIPS32 class processors
196#define CPU_TX3922 36 196 */
197#define CPU_TX3927 37 197 CPU_4KC, CPU_4KEC, CPU_4KSC, CPU_24K, CPU_34K, CPU_74K, CPU_AU1000,
198#define CPU_AU1000 38 198 CPU_AU1100, CPU_AU1200, CPU_AU1500, CPU_AU1550, CPU_PR4450,
199#define CPU_4KEC 39 199 CPU_BCM3302, CPU_BCM4710,
200#define CPU_4KSC 40 200
201#define CPU_VR41XX 41 201 /*
202#define CPU_R5500 42 202 * MIPS64 class processors
203#define CPU_TX49XX 43 203 */
204#define CPU_AU1500 44 204 CPU_5KC, CPU_20KC, CPU_25KF, CPU_SB1, CPU_SB1A, CPU_LOONGSON2,
205#define CPU_20KC 45 205
206#define CPU_VR4111 46 206 CPU_LAST
207#define CPU_VR4121 47 207};
208#define CPU_VR4122 48 208
209#define CPU_VR4131 49
210#define CPU_VR4181 50
211#define CPU_VR4181A 51
212#define CPU_AU1100 52
213#define CPU_SR71000 53
214#define CPU_RM9000 54
215#define CPU_25KF 55
216#define CPU_VR4133 56
217#define CPU_AU1550 57
218#define CPU_24K 58
219#define CPU_AU1200 59
220#define CPU_34K 60
221#define CPU_PR4450 61
222#define CPU_SB1A 62
223#define CPU_74K 63
224#define CPU_R14000 64
225#define CPU_LOONGSON1 65
226#define CPU_LOONGSON2 66
227#define CPU_BCM3302 67
228#define CPU_BCM4710 68
229#define CPU_LAST 68
230 209
231/* 210/*
232 * ISA Level encodings 211 * ISA Level encodings