processor.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #ifndef __ASM_SH_PROCESSOR_H
  2. #define __ASM_SH_PROCESSOR_H
  3. #include <asm/cpu-features.h>
  4. #include <asm/fpu.h>
  5. #ifndef __ASSEMBLY__
  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. /* SH-2A types */
  17. CPU_SH7203, CPU_SH7206, CPU_SH7263,
  18. /* SH-3 types */
  19. CPU_SH7705, CPU_SH7706, CPU_SH7707,
  20. CPU_SH7708, CPU_SH7708S, CPU_SH7708R,
  21. CPU_SH7709, CPU_SH7709A, CPU_SH7710, CPU_SH7712,
  22. CPU_SH7720, CPU_SH7721, CPU_SH7729,
  23. /* SH-4 types */
  24. CPU_SH7750, CPU_SH7750S, CPU_SH7750R, CPU_SH7751, CPU_SH7751R,
  25. CPU_SH7760, CPU_SH4_202, CPU_SH4_501,
  26. /* SH-4A types */
  27. CPU_SH7770, CPU_SH7780, CPU_SH7781, CPU_SH7785, CPU_SHX3,
  28. /* SH4AL-DSP types */
  29. CPU_SH7343, CPU_SH7722,
  30. /* SH-5 types */
  31. CPU_SH5_101, CPU_SH5_103,
  32. /* Unknown subtype */
  33. CPU_SH_NONE
  34. };
  35. /* Forward decl */
  36. struct sh_cpuinfo;
  37. /* arch/sh/kernel/setup.c */
  38. const char *get_cpu_subtype(struct sh_cpuinfo *c);
  39. #ifdef CONFIG_VSYSCALL
  40. int vsyscall_init(void);
  41. #else
  42. #define vsyscall_init() do { } while (0)
  43. #endif
  44. #endif /* __ASSEMBLY__ */
  45. #ifdef CONFIG_SUPERH32
  46. # include "processor_32.h"
  47. #else
  48. # include "processor_64.h"
  49. #endif
  50. #endif /* __ASM_SH_PROCESSOR_H */