blob: 19fe47c1ca172adebdc1b2de45e3902f6352649a [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef __ASM_SH_PROCESSOR_H
2#define __ASM_SH_PROCESSOR_H
Linus Torvalds1da177e2005-04-16 15:20:36 -07003
Paul Mundt76168c22007-11-10 20:01:51 +09004#include <asm/cpu-features.h>
Paul Mundt332fd572007-11-22 17:30:50 +09005#include <asm/fpu.h>
Paul Mundt76168c22007-11-10 20:01:51 +09006
Paul Mundt343ac722007-11-11 18:11:18 +09007#ifndef __ASSEMBLY__
Linus Torvalds1da177e2005-04-16 15:20:36 -07008/*
9 * CPU type and hardware bug flags. Kept separately for each CPU.
10 *
11 * Each one of these also needs a CONFIG_CPU_SUBTYPE_xxx entry
Paul Mundtde027972006-02-01 03:06:02 -080012 * in arch/sh/mm/Kconfig, as well as an entry in arch/sh/kernel/setup.c
Linus Torvalds1da177e2005-04-16 15:20:36 -070013 * for parsing the subtype in get_cpu_subtype().
14 */
15enum cpu_type {
16 /* SH-2 types */
Paul Mundtb9601c52007-06-08 11:55:28 +090017 CPU_SH7619,
Yoshinori Satob2296322006-11-05 16:18:08 +090018
19 /* SH-2A types */
Paul Mundta8f67f42007-11-26 19:54:02 +090020 CPU_SH7203, CPU_SH7206, CPU_SH7263,
Linus Torvalds1da177e2005-04-16 15:20:36 -070021
22 /* SH-3 types */
Paul Mundte5723e02006-09-27 17:38:11 +090023 CPU_SH7705, CPU_SH7706, CPU_SH7707,
24 CPU_SH7708, CPU_SH7708S, CPU_SH7708R,
Nobuhiro Iwamatsu9465a542007-03-27 18:13:51 +090025 CPU_SH7709, CPU_SH7709A, CPU_SH7710, CPU_SH7712,
Yoshihiro Shimoda31a49c42007-12-26 11:45:06 +090026 CPU_SH7720, CPU_SH7721, CPU_SH7729,
Linus Torvalds1da177e2005-04-16 15:20:36 -070027
28 /* SH-4 types */
29 CPU_SH7750, CPU_SH7750S, CPU_SH7750R, CPU_SH7751, CPU_SH7751R,
Paul Mundtf9669182007-11-07 11:05:32 +090030 CPU_SH7760, CPU_SH4_202, CPU_SH4_501,
Paul Mundtb552c7e2006-11-20 14:14:29 +090031
32 /* SH-4A types */
Yoshihiro Shimoda7d740a02008-01-07 14:40:07 +090033 CPU_SH7763, CPU_SH7770, CPU_SH7780, CPU_SH7781, CPU_SH7785, CPU_SHX3,
Paul Mundt41504c32006-12-11 20:28:03 +090034
35 /* SH4AL-DSP types */
Magnus Damm9109a302008-02-08 17:31:24 +090036 CPU_SH7343, CPU_SH7722, CPU_SH7366,
Linus Torvalds1da177e2005-04-16 15:20:36 -070037
Paul Mundtaf3c7df2007-11-09 17:08:54 +090038 /* SH-5 types */
39 CPU_SH5_101, CPU_SH5_103,
40
Linus Torvalds1da177e2005-04-16 15:20:36 -070041 /* Unknown subtype */
42 CPU_SH_NONE
43};
44
Paul Mundt343ac722007-11-11 18:11:18 +090045/* Forward decl */
46struct sh_cpuinfo;
Paul Mundt19f9a342006-09-27 18:33:49 +090047
Paul Mundt11c19652006-12-25 10:19:56 +090048/* arch/sh/kernel/setup.c */
49const char *get_cpu_subtype(struct sh_cpuinfo *c);
50
Paul Mundtacb499f2007-11-10 20:39:56 +090051#ifdef CONFIG_VSYSCALL
52int vsyscall_init(void);
53#else
54#define vsyscall_init() do { } while (0)
55#endif
56
Paul Mundt343ac722007-11-11 18:11:18 +090057#endif /* __ASSEMBLY__ */
58
59#ifdef CONFIG_SUPERH32
60# include "processor_32.h"
61#else
62# include "processor_64.h"
63#endif
64
Linus Torvalds1da177e2005-04-16 15:20:36 -070065#endif /* __ASM_SH_PROCESSOR_H */