rtuDataOperation.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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 _M68K_SETUP_H
  23. #define _M68K_SETUP_H
  24. #include <uapi/asm/setup.h>
  25. #define CL_SIZE COMMAND_LINE_SIZE
  26. #ifndef __ASSEMBLY__
  27. extern unsigned long m68k_machtype;
  28. #endif /* !__ASSEMBLY__ */
  29. #if !defined(CONFIG_AMIGA)
  30. # define MACH_IS_AMIGA (0)
  31. #elif defined(CONFIG_ATARI) || defined(CONFIG_MAC) || defined(CONFIG_APOLLO) \
  32. || defined(CONFIG_MVME16x) || defined(CONFIG_BVME6000) \
  33. || defined(CONFIG_HP300) || defined(CONFIG_Q40) \
  34. || defined(CONFIG_SUN3X) || defined(CONFIG_MVME147)
  35. # define MACH_IS_AMIGA (m68k_machtype == MACH_AMIGA)
  36. #else
  37. # define MACH_AMIGA_ONLY
  38. # define MACH_IS_AMIGA (1)
  39. # define MACH_TYPE (MACH_AMIGA)
  40. #endif
  41. #if !defined(CONFIG_ATARI)
  42. # define MACH_IS_ATARI (0)
  43. #elif defined(CONFIG_AMIGA) || defined(CONFIG_MAC) || defined(CONFIG_APOLLO) \
  44. || defined(CONFIG_MVME16x) || defined(CONFIG_BVME6000) \
  45. || defined(CONFIG_HP300) || defined(CONFIG_Q40) \
  46. || defined(CONFIG_SUN3X) || defined(CONFIG_MVME147)
  47. # define MACH_IS_ATARI (m68k_machtype == MACH_ATARI)
  48. #else
  49. # define MACH_ATARI_ONLY
  50. # define MACH_IS_ATARI (1)
  51. # define MACH_TYPE (MACH_ATARI)
  52. #endif
  53. #if !defined(CONFIG_MAC)
  54. # define MACH_IS_MAC (0)
  55. #elif defined(CONFIG_AMIGA) || defined(CONFIG_ATARI) || defined(CONFIG_APOLLO) \
  56. || defined(CONFIG_MVME16x) || defined(CONFIG_BVME6000) \
  57. || defined(CONFIG_HP300) || defined(CONFIG_Q40) \
  58. || defined(CONFIG_SUN3X) || defined(CONFIG_MVME147)
  59. # define MACH_IS_MAC (m68k_machtype == MACH_MAC)
  60. #else
  61. # define MACH_MAC_ONLY
  62. # define MACH_IS_MAC (1)
  63. # define MACH_TYPE (MACH_MAC)
  64. #endif
  65. #if defined(CONFIG_SUN3)
  66. #define MACH_IS_SUN3 (1)
  67. #define MACH_SUN3_ONLY (1)
  68. #define MACH_TYPE (MACH_SUN3)
  69. #else
  70. #define MACH_IS_SUN3 (0)
  71. #endif
  72. #if !defined (CONFIG_APOLLO)
  73. # define MACH_IS_APOLLO (0)
  74. #elif defined(CONFIG_AMIGA) || defined(CONFIG_MAC) || defined(CONFIG_ATARI) \
  75. || defined(CONFIG_MVME16x) || defined(CONFIG_BVME6000) \
  76. || defined(CONFIG_HP300) || defined(CONFIG_Q40) \
  77. || defined(CONFIG_SUN3X) || defined(CONFIG_MVME147)
  78. # define MACH_IS_APOLLO (m68k_machtype == MACH_APOLLO)
  79. #else
  80. # define MACH_APOLLO_ONLY
  81. # define MACH_IS_APOLLO (1)
  82. # define MACH_TYPE (MACH_APOLLO)
  83. #endif