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