2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
6 * Copyright (C) 2003, 2004 Ralf Baechle
7 * Copyright (C) 2004 Maciej W. Rozycki
9 #ifndef __ASM_CPU_TYPE_H
10 #define __ASM_CPU_TYPE_H
12 #include <linux/smp.h>
13 #include <linux/compiler.h>
15 static inline int __pure
__get_cpu_type(const int cpu_type
)
18 #if defined(CONFIG_SYS_HAS_CPU_LOONGSON2E) || \
19 defined(CONFIG_SYS_HAS_CPU_LOONGSON2F)
23 #ifdef CONFIG_SYS_HAS_CPU_LOONGSON3
27 #ifdef CONFIG_SYS_HAS_CPU_LOONGSON1B
31 #ifdef CONFIG_SYS_HAS_CPU_MIPS32_R1
37 #if defined(CONFIG_SYS_HAS_CPU_MIPS32_R1) || \
38 defined(CONFIG_SYS_HAS_CPU_MIPS32_R2)
43 #ifdef CONFIG_SYS_HAS_CPU_MIPS32_R2
57 #if defined(CONFIG_SYS_HAS_CPU_MIPS32_R2) || \
58 defined(CONFIG_SYS_HAS_CPU_MIPS32_R6) || \
59 defined(CONFIG_SYS_HAS_CPU_MIPS64_R2) || \
60 defined(CONFIG_SYS_HAS_CPU_MIPS64_R6)
61 case CPU_QEMU_GENERIC
:
64 #ifdef CONFIG_SYS_HAS_CPU_MIPS64_R1
73 #ifdef CONFIG_SYS_HAS_CPU_MIPS64_R2
75 * All MIPS64 R2 processors have their own special symbols. That is,
76 * there currently is no pure R2 core
80 #ifdef CONFIG_SYS_HAS_CPU_MIPS32_R6
84 #ifdef CONFIG_SYS_HAS_CPU_MIPS64_R6
89 #ifdef CONFIG_SYS_HAS_CPU_R3000
100 #ifdef CONFIG_SYS_HAS_CPU_TX39XX
106 #ifdef CONFIG_SYS_HAS_CPU_VR41XX
117 #ifdef CONFIG_SYS_HAS_CPU_R4300
122 #ifdef CONFIG_SYS_HAS_CPU_R4X00
136 #ifdef CONFIG_SYS_HAS_CPU_TX49XX
140 #ifdef CONFIG_SYS_HAS_CPU_R5000
144 #ifdef CONFIG_SYS_HAS_CPU_R5432
148 #ifdef CONFIG_SYS_HAS_CPU_R5500
152 #ifdef CONFIG_SYS_HAS_CPU_R6000
157 #ifdef CONFIG_SYS_HAS_CPU_NEVADA
161 #ifdef CONFIG_SYS_HAS_CPU_R8000
165 #ifdef CONFIG_SYS_HAS_CPU_R10000
171 #ifdef CONFIG_SYS_HAS_CPU_RM7000
175 #ifdef CONFIG_SYS_HAS_CPU_SB1
179 #ifdef CONFIG_SYS_HAS_CPU_CAVIUM_OCTEON
180 case CPU_CAVIUM_OCTEON
:
181 case CPU_CAVIUM_OCTEON_PLUS
:
182 case CPU_CAVIUM_OCTEON2
:
183 case CPU_CAVIUM_OCTEON3
:
186 #if defined(CONFIG_SYS_HAS_CPU_BMIPS32_3300) || \
187 defined (CONFIG_SYS_HAS_CPU_MIPS32_R1)
192 #ifdef CONFIG_SYS_HAS_CPU_BMIPS4350
196 #ifdef CONFIG_SYS_HAS_CPU_BMIPS4380
200 #ifdef CONFIG_SYS_HAS_CPU_BMIPS5000
204 #ifdef CONFIG_SYS_HAS_CPU_XLP
208 #ifdef CONFIG_SYS_HAS_CPU_XLR
219 static inline int __pure
current_cpu_type(void)
221 const int cpu_type
= current_cpu_data
.cputype
;
223 return __get_cpu_type(cpu_type
);
226 static inline int __pure
boot_cpu_type(void)
228 const int cpu_type
= cpu_data
[0].cputype
;
230 return __get_cpu_type(cpu_type
);
233 #endif /* __ASM_CPU_TYPE_H */
This page took 0.036106 seconds and 5 git commands to generate.