]> nv-tegra.nvidia Code Review - linux-3.10.git/blob - arch/sparc/include/asm/cpu_type.h
Disintegrate asm/system.h for Sparc
[linux-3.10.git] / arch / sparc / include / asm / cpu_type.h
1 #ifndef __ASM_CPU_TYPE_H
2 #define __ASM_CPU_TYPE_H
3
4 /*
5  * Sparc (general) CPU types
6  */
7 enum sparc_cpu {
8   sun4        = 0x00,
9   sun4c       = 0x01,
10   sun4m       = 0x02,
11   sun4d       = 0x03,
12   sun4e       = 0x04,
13   sun4u       = 0x05, /* V8 ploos ploos */
14   sun_unknown = 0x06,
15   ap1000      = 0x07, /* almost a sun4m */
16   sparc_leon  = 0x08, /* Leon SoC */
17 };
18
19 #ifdef CONFIG_SPARC32
20 extern enum sparc_cpu sparc_cpu_model;
21
22 #define ARCH_SUN4C (sparc_cpu_model==sun4c)
23
24 #define SUN4M_NCPUS            4              /* Architectural limit of sun4m. */
25
26 #else
27
28 #define sparc_cpu_model sun4u
29
30 /* This cannot ever be a sun4c :) That's just history. */
31 #define ARCH_SUN4C 0
32 #endif
33
34 #endif /* __ASM_CPU_TYPE_H */