]> err.no Git - linux-2.6/blob - include/asm-sh/processor.h
sh: Plug in SH-5 ffz()/__ffs() bitops.
[linux-2.6] / include / asm-sh / processor.h
1 #ifndef __ASM_SH_PROCESSOR_H
2 #define __ASM_SH_PROCESSOR_H
3
4 #include <asm/cpu-features.h>
5
6 /*
7  *  CPU type and hardware bug flags. Kept separately for each CPU.
8  *
9  *  Each one of these also needs a CONFIG_CPU_SUBTYPE_xxx entry
10  *  in arch/sh/mm/Kconfig, as well as an entry in arch/sh/kernel/setup.c
11  *  for parsing the subtype in get_cpu_subtype().
12  */
13 enum cpu_type {
14         /* SH-2 types */
15         CPU_SH7619,
16
17         /* SH-2A types */
18         CPU_SH7206,
19
20         /* SH-3 types */
21         CPU_SH7705, CPU_SH7706, CPU_SH7707,
22         CPU_SH7708, CPU_SH7708S, CPU_SH7708R,
23         CPU_SH7709, CPU_SH7709A, CPU_SH7710, CPU_SH7712,
24         CPU_SH7720, CPU_SH7729,
25
26         /* SH-4 types */
27         CPU_SH7750, CPU_SH7750S, CPU_SH7750R, CPU_SH7751, CPU_SH7751R,
28         CPU_SH7760, CPU_SH4_202, CPU_SH4_501,
29
30         /* SH-4A types */
31         CPU_SH7770, CPU_SH7780, CPU_SH7781, CPU_SH7785, CPU_SHX3,
32
33         /* SH4AL-DSP types */
34         CPU_SH7343, CPU_SH7722,
35
36         /* SH-5 types */
37         CPU_SH5_101, CPU_SH5_103,
38
39         /* Unknown subtype */
40         CPU_SH_NONE
41 };
42
43 #ifdef CONFIG_SUPERH32
44 # include "processor_32.h"
45 #else
46 # include "processor_64.h"
47 #endif
48
49 /* arch/sh/kernel/setup.c */
50 const char *get_cpu_subtype(struct sh_cpuinfo *c);
51
52 #ifdef CONFIG_VSYSCALL
53 int vsyscall_init(void);
54 #else
55 #define vsyscall_init() do { } while (0)
56 #endif
57
58 #endif /* __ASM_SH_PROCESSOR_H */