setup.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. /*
  2. ** asm/setup.h -- Definition of the Linux/m68k setup information
  3. **
  4. ** Copyright 1992 by Greg Harp
  5. **
  6. ** This file is subject to the terms and conditions of the GNU General Public
  7. ** License. See the file COPYING in the main directory of this archive
  8. ** for more details.
  9. **
  10. ** Created 09/29/92 by Greg Harp
  11. **
  12. ** 5/2/94 Roman Hodek:
  13. ** Added bi_atari part of the machine dependent union bi_un; for now it
  14. ** contains just a model field to distinguish between TT and Falcon.
  15. ** 26/7/96 Roman Zippel:
  16. ** Renamed to setup.h; added some useful macros to allow gcc some
  17. ** optimizations if possible.
  18. ** 5/10/96 Geert Uytterhoeven:
  19. ** Redesign of the boot information structure; moved boot information
  20. ** structure to bootinfo.h
  21. */
  22. #ifndef _UAPI_M68K_SETUP_H
  23. #define _UAPI_M68K_SETUP_H
  24. /*
  25. * Linux/m68k Architectures
  26. */
  27. #define MACH_AMIGA 1
  28. #define MACH_ATARI 2
  29. #define MACH_MAC 3
  30. #define MACH_APOLLO 4
  31. #define MACH_SUN3 5
  32. #define MACH_MVME147 6
  33. #define MACH_MVME16x 7
  34. #define MACH_BVME6000 8
  35. #define MACH_HP300 9
  36. #define MACH_Q40 10
  37. #define MACH_SUN3X 11
  38. #define MACH_M54XX 12
  39. #define COMMAND_LINE_SIZE 256
  40. /*
  41. * CPU, FPU and MMU types
  42. *
  43. * Note: we may rely on the following equalities:
  44. *
  45. * CPU_68020 == MMU_68851
  46. * CPU_68030 == MMU_68030
  47. * CPU_68040 == FPU_68040 == MMU_68040
  48. * CPU_68060 == FPU_68060 == MMU_68060
  49. */
  50. #define CPUB_68020 0
  51. #define CPUB_68030 1
  52. #define CPUB_68040 2
  53. #define CPUB_68060 3
  54. #define CPUB_COLDFIRE 4
  55. #define CPU_68020 (1<<CPUB_68020)
  56. #define CPU_68030 (1<<CPUB_68030)
  57. #define CPU_68040 (1<<CPUB_68040)
  58. #define CPU_68060 (1<<CPUB_68060)
  59. #define CPU_COLDFIRE (1<<CPUB_COLDFIRE)
  60. #define FPUB_68881 0
  61. #define FPUB_68882 1
  62. #define FPUB_68040 2 /* Internal FPU */
  63. #define FPUB_68060 3 /* Internal FPU */
  64. #define FPUB_SUNFPA 4 /* Sun-3 FPA */
  65. #define FPUB_COLDFIRE 5 /* ColdFire FPU */
  66. #define FPU_68881 (1<<FPUB_68881)
  67. #define FPU_68882 (1<<FPUB_68882)
  68. #define FPU_68040 (1<<FPUB_68040)
  69. #define FPU_68060 (1<<FPUB_68060)
  70. #define FPU_SUNFPA (1<<FPUB_SUNFPA)
  71. #define FPU_COLDFIRE (1<<FPUB_COLDFIRE)
  72. #define MMUB_68851 0
  73. #define MMUB_68030 1 /* Internal MMU */
  74. #define MMUB_68040 2 /* Internal MMU */
  75. #define MMUB_68060 3 /* Internal MMU */
  76. #define MMUB_APOLLO 4 /* Custom Apollo */
  77. #define MMUB_SUN3 5 /* Custom Sun-3 */
  78. #define MMUB_COLDFIRE 6 /* Internal MMU */
  79. #define MMU_68851 (1<<MMUB_68851)
  80. #define MMU_68030 (1<<MMUB_68030)
  81. #define MMU_68040 (1<<MMUB_68040)
  82. #define MMU_68060 (1<<MMUB_68060)
  83. #define MMU_SUN3 (1<<MMUB_SUN3)
  84. #define MMU_APOLLO (1<<MMUB_APOLLO)
  85. #define MMU_COLDFIRE (1<<MMUB_COLDFIRE)
  86. #endif /* _UAPI_M68K_SETUP_H */