2005-04-16 16:20:36 -06:00
|
|
|
#ifndef __ASM_SH_PROCESSOR_H
|
|
|
|
#define __ASM_SH_PROCESSOR_H
|
|
|
|
|
2007-11-10 04:01:51 -07:00
|
|
|
#include <asm/cpu-features.h>
|
2007-11-22 01:30:50 -07:00
|
|
|
#include <asm/fpu.h>
|
2007-11-10 04:01:51 -07:00
|
|
|
|
2007-11-11 02:11:18 -07:00
|
|
|
#ifndef __ASSEMBLY__
|
2005-04-16 16:20:36 -06:00
|
|
|
/*
|
|
|
|
* CPU type and hardware bug flags. Kept separately for each CPU.
|
|
|
|
*
|
|
|
|
* Each one of these also needs a CONFIG_CPU_SUBTYPE_xxx entry
|
2006-02-01 04:06:02 -07:00
|
|
|
* in arch/sh/mm/Kconfig, as well as an entry in arch/sh/kernel/setup.c
|
2005-04-16 16:20:36 -06:00
|
|
|
* for parsing the subtype in get_cpu_subtype().
|
|
|
|
*/
|
|
|
|
enum cpu_type {
|
|
|
|
/* SH-2 types */
|
2007-06-07 20:55:28 -06:00
|
|
|
CPU_SH7619,
|
2006-11-05 00:18:08 -07:00
|
|
|
|
|
|
|
/* SH-2A types */
|
2007-11-26 03:54:02 -07:00
|
|
|
CPU_SH7203, CPU_SH7206, CPU_SH7263,
|
2005-04-16 16:20:36 -06:00
|
|
|
|
|
|
|
/* SH-3 types */
|
2006-09-27 02:38:11 -06:00
|
|
|
CPU_SH7705, CPU_SH7706, CPU_SH7707,
|
|
|
|
CPU_SH7708, CPU_SH7708S, CPU_SH7708R,
|
2007-03-27 03:13:51 -06:00
|
|
|
CPU_SH7709, CPU_SH7709A, CPU_SH7710, CPU_SH7712,
|
2007-12-25 19:45:06 -07:00
|
|
|
CPU_SH7720, CPU_SH7721, CPU_SH7729,
|
2005-04-16 16:20:36 -06:00
|
|
|
|
|
|
|
/* SH-4 types */
|
|
|
|
CPU_SH7750, CPU_SH7750S, CPU_SH7750R, CPU_SH7751, CPU_SH7751R,
|
2007-11-06 19:05:32 -07:00
|
|
|
CPU_SH7760, CPU_SH4_202, CPU_SH4_501,
|
2006-11-19 22:14:29 -07:00
|
|
|
|
|
|
|
/* SH-4A types */
|
2008-01-06 22:40:07 -07:00
|
|
|
CPU_SH7763, CPU_SH7770, CPU_SH7780, CPU_SH7781, CPU_SH7785, CPU_SHX3,
|
2006-12-11 04:28:03 -07:00
|
|
|
|
|
|
|
/* SH4AL-DSP types */
|
2007-07-24 19:49:21 -06:00
|
|
|
CPU_SH7343, CPU_SH7722,
|
2005-04-16 16:20:36 -06:00
|
|
|
|
2007-11-09 01:08:54 -07:00
|
|
|
/* SH-5 types */
|
|
|
|
CPU_SH5_101, CPU_SH5_103,
|
|
|
|
|
2005-04-16 16:20:36 -06:00
|
|
|
/* Unknown subtype */
|
|
|
|
CPU_SH_NONE
|
|
|
|
};
|
|
|
|
|
2007-11-11 02:11:18 -07:00
|
|
|
/* Forward decl */
|
|
|
|
struct sh_cpuinfo;
|
2006-09-27 03:33:49 -06:00
|
|
|
|
2006-12-24 18:19:56 -07:00
|
|
|
/* arch/sh/kernel/setup.c */
|
|
|
|
const char *get_cpu_subtype(struct sh_cpuinfo *c);
|
|
|
|
|
2007-11-10 04:39:56 -07:00
|
|
|
#ifdef CONFIG_VSYSCALL
|
|
|
|
int vsyscall_init(void);
|
|
|
|
#else
|
|
|
|
#define vsyscall_init() do { } while (0)
|
|
|
|
#endif
|
|
|
|
|
2007-11-11 02:11:18 -07:00
|
|
|
#endif /* __ASSEMBLY__ */
|
|
|
|
|
|
|
|
#ifdef CONFIG_SUPERH32
|
|
|
|
# include "processor_32.h"
|
|
|
|
#else
|
|
|
|
# include "processor_64.h"
|
|
|
|
#endif
|
|
|
|
|
2005-04-16 16:20:36 -06:00
|
|
|
#endif /* __ASM_SH_PROCESSOR_H */
|