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. #ifndef __ASSEMBLY__
  5. /*
  6. * CPU type and hardware bug flags. Kept separately for each CPU.
  7. *
  8. * Each one of these also needs a CONFIG_CPU_SUBTYPE_xxx entry
  9. * in arch/sh/mm/Kconfig, as well as an entry in arch/sh/kernel/setup.c
  10. * for parsing the subtype in get_cpu_subtype().
  11. */
  12. enum cpu_type {
  13. /* SH-2 types */
  14. CPU_SH7619,
  15. /* SH-2A types */
  16. CPU_SH7203, CPU_SH7206, CPU_SH7263, CPU_MXG,
  17. /* SH-3 types */
  18. CPU_SH7705, CPU_SH7706, CPU_SH7707,
  19. CPU_SH7708, CPU_SH7708S, CPU_SH7708R,
  20. CPU_SH7709, CPU_SH7709A, CPU_SH7710, CPU_SH7712,
  21. CPU_SH7720, CPU_SH7721, CPU_SH7729,
  22. /* SH-4 types */
  23. CPU_SH7750, CPU_SH7750S, CPU_SH7750R, CPU_SH7751, CPU_SH7751R,
  24. CPU_SH7760, CPU_SH4_202, CPU_SH4_501,
  25. /* SH-4A types */
  26. CPU_SH7763, CPU_SH7770, CPU_SH7780, CPU_SH7781, CPU_SH7785,
  27. CPU_SH7723, CPU_SHX3,
  28. /* SH4AL-DSP types */
  29. CPU_SH7343, CPU_SH7722, CPU_SH7366,
  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 */