Linux-libre 5.3.12-gnu
[librecmc/linux-libre.git] / arch / sparc / include / asm / cpu_type.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __ASM_CPU_TYPE_H
3 #define __ASM_CPU_TYPE_H
4
5 /*
6  * Sparc (general) CPU types
7  */
8 enum sparc_cpu {
9   sun4m       = 0x00,
10   sun4d       = 0x01,
11   sun4e       = 0x02,
12   sun4u       = 0x03, /* V8 ploos ploos */
13   sun_unknown = 0x04,
14   ap1000      = 0x05, /* almost a sun4m */
15   sparc_leon  = 0x06, /* Leon SoC */
16 };
17
18 #ifdef CONFIG_SPARC32
19 extern enum sparc_cpu sparc_cpu_model;
20
21 #define SUN4M_NCPUS            4              /* Architectural limit of sun4m. */
22
23 #else
24
25 #define sparc_cpu_model sun4u
26
27 #endif
28
29 #endif /* __ASM_CPU_TYPE_H */