18c2ecf20Sopenharmony_ci/*
28c2ecf20Sopenharmony_ci** asm/setup.h -- Definition of the Linux/m68k setup information
38c2ecf20Sopenharmony_ci**
48c2ecf20Sopenharmony_ci** Copyright 1992 by Greg Harp
58c2ecf20Sopenharmony_ci**
68c2ecf20Sopenharmony_ci** This file is subject to the terms and conditions of the GNU General Public
78c2ecf20Sopenharmony_ci** License.  See the file COPYING in the main directory of this archive
88c2ecf20Sopenharmony_ci** for more details.
98c2ecf20Sopenharmony_ci**
108c2ecf20Sopenharmony_ci** Created 09/29/92 by Greg Harp
118c2ecf20Sopenharmony_ci**
128c2ecf20Sopenharmony_ci** 5/2/94 Roman Hodek:
138c2ecf20Sopenharmony_ci**   Added bi_atari part of the machine dependent union bi_un; for now it
148c2ecf20Sopenharmony_ci**   contains just a model field to distinguish between TT and Falcon.
158c2ecf20Sopenharmony_ci** 26/7/96 Roman Zippel:
168c2ecf20Sopenharmony_ci**   Renamed to setup.h; added some useful macros to allow gcc some
178c2ecf20Sopenharmony_ci**   optimizations if possible.
188c2ecf20Sopenharmony_ci** 5/10/96 Geert Uytterhoeven:
198c2ecf20Sopenharmony_ci**   Redesign of the boot information structure; moved boot information
208c2ecf20Sopenharmony_ci**   structure to bootinfo.h
218c2ecf20Sopenharmony_ci*/
228c2ecf20Sopenharmony_ci#ifndef _M68K_SETUP_H
238c2ecf20Sopenharmony_ci#define _M68K_SETUP_H
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ci#include <uapi/asm/bootinfo.h>
268c2ecf20Sopenharmony_ci#include <uapi/asm/setup.h>
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ci#define CL_SIZE COMMAND_LINE_SIZE
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ci#ifndef __ASSEMBLY__
328c2ecf20Sopenharmony_ciextern unsigned long m68k_machtype;
338c2ecf20Sopenharmony_ci#endif /* !__ASSEMBLY__ */
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ci#if !defined(CONFIG_AMIGA)
368c2ecf20Sopenharmony_ci#  define MACH_IS_AMIGA (0)
378c2ecf20Sopenharmony_ci#elif defined(CONFIG_ATARI) || defined(CONFIG_MAC) || defined(CONFIG_APOLLO) \
388c2ecf20Sopenharmony_ci	|| defined(CONFIG_MVME16x) || defined(CONFIG_BVME6000)               \
398c2ecf20Sopenharmony_ci	|| defined(CONFIG_HP300) || defined(CONFIG_Q40)                      \
408c2ecf20Sopenharmony_ci	|| defined(CONFIG_SUN3X) || defined(CONFIG_MVME147)
418c2ecf20Sopenharmony_ci#  define MACH_IS_AMIGA (m68k_machtype == MACH_AMIGA)
428c2ecf20Sopenharmony_ci#else
438c2ecf20Sopenharmony_ci#  define MACH_AMIGA_ONLY
448c2ecf20Sopenharmony_ci#  define MACH_IS_AMIGA (1)
458c2ecf20Sopenharmony_ci#  define MACH_TYPE (MACH_AMIGA)
468c2ecf20Sopenharmony_ci#endif
478c2ecf20Sopenharmony_ci
488c2ecf20Sopenharmony_ci#if !defined(CONFIG_ATARI)
498c2ecf20Sopenharmony_ci#  define MACH_IS_ATARI (0)
508c2ecf20Sopenharmony_ci#elif defined(CONFIG_AMIGA) || defined(CONFIG_MAC) || defined(CONFIG_APOLLO) \
518c2ecf20Sopenharmony_ci	|| defined(CONFIG_MVME16x) || defined(CONFIG_BVME6000)               \
528c2ecf20Sopenharmony_ci	|| defined(CONFIG_HP300) || defined(CONFIG_Q40)                      \
538c2ecf20Sopenharmony_ci	|| defined(CONFIG_SUN3X) || defined(CONFIG_MVME147)
548c2ecf20Sopenharmony_ci#  define MACH_IS_ATARI (m68k_machtype == MACH_ATARI)
558c2ecf20Sopenharmony_ci#else
568c2ecf20Sopenharmony_ci#  define MACH_ATARI_ONLY
578c2ecf20Sopenharmony_ci#  define MACH_IS_ATARI (1)
588c2ecf20Sopenharmony_ci#  define MACH_TYPE (MACH_ATARI)
598c2ecf20Sopenharmony_ci#endif
608c2ecf20Sopenharmony_ci
618c2ecf20Sopenharmony_ci#if !defined(CONFIG_MAC)
628c2ecf20Sopenharmony_ci#  define MACH_IS_MAC (0)
638c2ecf20Sopenharmony_ci#elif defined(CONFIG_AMIGA) || defined(CONFIG_ATARI) || defined(CONFIG_APOLLO) \
648c2ecf20Sopenharmony_ci	|| defined(CONFIG_MVME16x) || defined(CONFIG_BVME6000)                 \
658c2ecf20Sopenharmony_ci	|| defined(CONFIG_HP300) || defined(CONFIG_Q40)                        \
668c2ecf20Sopenharmony_ci	|| defined(CONFIG_SUN3X) || defined(CONFIG_MVME147)
678c2ecf20Sopenharmony_ci#  define MACH_IS_MAC (m68k_machtype == MACH_MAC)
688c2ecf20Sopenharmony_ci#else
698c2ecf20Sopenharmony_ci#  define MACH_MAC_ONLY
708c2ecf20Sopenharmony_ci#  define MACH_IS_MAC (1)
718c2ecf20Sopenharmony_ci#  define MACH_TYPE (MACH_MAC)
728c2ecf20Sopenharmony_ci#endif
738c2ecf20Sopenharmony_ci
748c2ecf20Sopenharmony_ci#if defined(CONFIG_SUN3)
758c2ecf20Sopenharmony_ci#define MACH_IS_SUN3 (1)
768c2ecf20Sopenharmony_ci#define MACH_SUN3_ONLY (1)
778c2ecf20Sopenharmony_ci#define MACH_TYPE (MACH_SUN3)
788c2ecf20Sopenharmony_ci#else
798c2ecf20Sopenharmony_ci#define MACH_IS_SUN3 (0)
808c2ecf20Sopenharmony_ci#endif
818c2ecf20Sopenharmony_ci
828c2ecf20Sopenharmony_ci#if !defined (CONFIG_APOLLO)
838c2ecf20Sopenharmony_ci#  define MACH_IS_APOLLO (0)
848c2ecf20Sopenharmony_ci#elif defined(CONFIG_AMIGA) || defined(CONFIG_MAC) || defined(CONFIG_ATARI) \
858c2ecf20Sopenharmony_ci	|| defined(CONFIG_MVME16x) || defined(CONFIG_BVME6000)              \
868c2ecf20Sopenharmony_ci	|| defined(CONFIG_HP300) || defined(CONFIG_Q40)                     \
878c2ecf20Sopenharmony_ci	|| defined(CONFIG_SUN3X) || defined(CONFIG_MVME147)
888c2ecf20Sopenharmony_ci#  define MACH_IS_APOLLO (m68k_machtype == MACH_APOLLO)
898c2ecf20Sopenharmony_ci#else
908c2ecf20Sopenharmony_ci#  define MACH_APOLLO_ONLY
918c2ecf20Sopenharmony_ci#  define MACH_IS_APOLLO (1)
928c2ecf20Sopenharmony_ci#  define MACH_TYPE (MACH_APOLLO)
938c2ecf20Sopenharmony_ci#endif
948c2ecf20Sopenharmony_ci
958c2ecf20Sopenharmony_ci#if !defined (CONFIG_MVME147)
968c2ecf20Sopenharmony_ci#  define MACH_IS_MVME147 (0)
978c2ecf20Sopenharmony_ci#elif defined(CONFIG_AMIGA) || defined(CONFIG_MAC) || defined(CONFIG_ATARI) \
988c2ecf20Sopenharmony_ci	|| defined(CONFIG_APOLLO) || defined(CONFIG_BVME6000)               \
998c2ecf20Sopenharmony_ci	|| defined(CONFIG_HP300) || defined(CONFIG_Q40)                     \
1008c2ecf20Sopenharmony_ci	|| defined(CONFIG_SUN3X) || defined(CONFIG_MVME16x)
1018c2ecf20Sopenharmony_ci#  define MACH_IS_MVME147 (m68k_machtype == MACH_MVME147)
1028c2ecf20Sopenharmony_ci#else
1038c2ecf20Sopenharmony_ci#  define MACH_MVME147_ONLY
1048c2ecf20Sopenharmony_ci#  define MACH_IS_MVME147 (1)
1058c2ecf20Sopenharmony_ci#  define MACH_TYPE (MACH_MVME147)
1068c2ecf20Sopenharmony_ci#endif
1078c2ecf20Sopenharmony_ci
1088c2ecf20Sopenharmony_ci#if !defined (CONFIG_MVME16x)
1098c2ecf20Sopenharmony_ci#  define MACH_IS_MVME16x (0)
1108c2ecf20Sopenharmony_ci#elif defined(CONFIG_AMIGA) || defined(CONFIG_MAC) || defined(CONFIG_ATARI) \
1118c2ecf20Sopenharmony_ci	|| defined(CONFIG_APOLLO) || defined(CONFIG_BVME6000)               \
1128c2ecf20Sopenharmony_ci	|| defined(CONFIG_HP300) || defined(CONFIG_Q40)                     \
1138c2ecf20Sopenharmony_ci	|| defined(CONFIG_SUN3X) || defined(CONFIG_MVME147)
1148c2ecf20Sopenharmony_ci#  define MACH_IS_MVME16x (m68k_machtype == MACH_MVME16x)
1158c2ecf20Sopenharmony_ci#else
1168c2ecf20Sopenharmony_ci#  define MACH_MVME16x_ONLY
1178c2ecf20Sopenharmony_ci#  define MACH_IS_MVME16x (1)
1188c2ecf20Sopenharmony_ci#  define MACH_TYPE (MACH_MVME16x)
1198c2ecf20Sopenharmony_ci#endif
1208c2ecf20Sopenharmony_ci
1218c2ecf20Sopenharmony_ci#if !defined (CONFIG_BVME6000)
1228c2ecf20Sopenharmony_ci#  define MACH_IS_BVME6000 (0)
1238c2ecf20Sopenharmony_ci#elif defined(CONFIG_AMIGA) || defined(CONFIG_MAC) || defined(CONFIG_ATARI) \
1248c2ecf20Sopenharmony_ci	|| defined(CONFIG_APOLLO) || defined(CONFIG_MVME16x)                \
1258c2ecf20Sopenharmony_ci	|| defined(CONFIG_HP300) || defined(CONFIG_Q40)                     \
1268c2ecf20Sopenharmony_ci	|| defined(CONFIG_SUN3X) || defined(CONFIG_MVME147)
1278c2ecf20Sopenharmony_ci#  define MACH_IS_BVME6000 (m68k_machtype == MACH_BVME6000)
1288c2ecf20Sopenharmony_ci#else
1298c2ecf20Sopenharmony_ci#  define MACH_BVME6000_ONLY
1308c2ecf20Sopenharmony_ci#  define MACH_IS_BVME6000 (1)
1318c2ecf20Sopenharmony_ci#  define MACH_TYPE (MACH_BVME6000)
1328c2ecf20Sopenharmony_ci#endif
1338c2ecf20Sopenharmony_ci
1348c2ecf20Sopenharmony_ci#if !defined (CONFIG_HP300)
1358c2ecf20Sopenharmony_ci#  define MACH_IS_HP300 (0)
1368c2ecf20Sopenharmony_ci#elif defined(CONFIG_AMIGA) || defined(CONFIG_MAC) || defined(CONFIG_ATARI) \
1378c2ecf20Sopenharmony_ci	|| defined(CONFIG_APOLLO) || defined(CONFIG_MVME16x) \
1388c2ecf20Sopenharmony_ci	|| defined(CONFIG_BVME6000) || defined(CONFIG_Q40) \
1398c2ecf20Sopenharmony_ci	|| defined(CONFIG_SUN3X) || defined(CONFIG_MVME147)
1408c2ecf20Sopenharmony_ci#  define MACH_IS_HP300 (m68k_machtype == MACH_HP300)
1418c2ecf20Sopenharmony_ci#else
1428c2ecf20Sopenharmony_ci#  define MACH_HP300_ONLY
1438c2ecf20Sopenharmony_ci#  define MACH_IS_HP300 (1)
1448c2ecf20Sopenharmony_ci#  define MACH_TYPE (MACH_HP300)
1458c2ecf20Sopenharmony_ci#endif
1468c2ecf20Sopenharmony_ci
1478c2ecf20Sopenharmony_ci#if !defined (CONFIG_Q40)
1488c2ecf20Sopenharmony_ci#  define MACH_IS_Q40 (0)
1498c2ecf20Sopenharmony_ci#elif defined(CONFIG_AMIGA) || defined(CONFIG_MAC) || defined(CONFIG_ATARI) \
1508c2ecf20Sopenharmony_ci	|| defined(CONFIG_APOLLO) || defined(CONFIG_MVME16x)                \
1518c2ecf20Sopenharmony_ci	|| defined(CONFIG_BVME6000) || defined(CONFIG_HP300)                \
1528c2ecf20Sopenharmony_ci	|| defined(CONFIG_SUN3X) || defined(CONFIG_MVME147)
1538c2ecf20Sopenharmony_ci#  define MACH_IS_Q40 (m68k_machtype == MACH_Q40)
1548c2ecf20Sopenharmony_ci#else
1558c2ecf20Sopenharmony_ci#  define MACH_Q40_ONLY
1568c2ecf20Sopenharmony_ci#  define MACH_IS_Q40 (1)
1578c2ecf20Sopenharmony_ci#  define MACH_TYPE (MACH_Q40)
1588c2ecf20Sopenharmony_ci#endif
1598c2ecf20Sopenharmony_ci
1608c2ecf20Sopenharmony_ci#if !defined (CONFIG_SUN3X)
1618c2ecf20Sopenharmony_ci#  define MACH_IS_SUN3X (0)
1628c2ecf20Sopenharmony_ci#elif defined(CONFIG_AMIGA) || defined(CONFIG_MAC) || defined(CONFIG_ATARI) \
1638c2ecf20Sopenharmony_ci	|| defined(CONFIG_APOLLO) || defined(CONFIG_MVME16x)                \
1648c2ecf20Sopenharmony_ci	|| defined(CONFIG_BVME6000) || defined(CONFIG_HP300)                \
1658c2ecf20Sopenharmony_ci	|| defined(CONFIG_Q40) || defined(CONFIG_MVME147)
1668c2ecf20Sopenharmony_ci#  define MACH_IS_SUN3X (m68k_machtype == MACH_SUN3X)
1678c2ecf20Sopenharmony_ci#else
1688c2ecf20Sopenharmony_ci#  define CONFIG_SUN3X_ONLY
1698c2ecf20Sopenharmony_ci#  define MACH_IS_SUN3X (1)
1708c2ecf20Sopenharmony_ci#  define MACH_TYPE (MACH_SUN3X)
1718c2ecf20Sopenharmony_ci#endif
1728c2ecf20Sopenharmony_ci
1738c2ecf20Sopenharmony_ci#ifndef MACH_TYPE
1748c2ecf20Sopenharmony_ci#  define MACH_TYPE (m68k_machtype)
1758c2ecf20Sopenharmony_ci#endif
1768c2ecf20Sopenharmony_ci
1778c2ecf20Sopenharmony_ci
1788c2ecf20Sopenharmony_ci#ifndef __ASSEMBLY__
1798c2ecf20Sopenharmony_ciextern unsigned long m68k_cputype;
1808c2ecf20Sopenharmony_ciextern unsigned long m68k_fputype;
1818c2ecf20Sopenharmony_ciextern unsigned long m68k_mmutype;
1828c2ecf20Sopenharmony_ci#ifdef CONFIG_VME
1838c2ecf20Sopenharmony_ciextern unsigned long vme_brdtype;
1848c2ecf20Sopenharmony_ci#endif
1858c2ecf20Sopenharmony_ci
1868c2ecf20Sopenharmony_ci    /*
1878c2ecf20Sopenharmony_ci     *  m68k_is040or060 is != 0 for a '040 or higher;
1888c2ecf20Sopenharmony_ci     *  used numbers are 4 for 68040 and 6 for 68060.
1898c2ecf20Sopenharmony_ci     */
1908c2ecf20Sopenharmony_ci
1918c2ecf20Sopenharmony_ciextern int m68k_is040or060;
1928c2ecf20Sopenharmony_ci#endif /* !__ASSEMBLY__ */
1938c2ecf20Sopenharmony_ci
1948c2ecf20Sopenharmony_ci#if !defined(CONFIG_M68020)
1958c2ecf20Sopenharmony_ci#  define CPU_IS_020 (0)
1968c2ecf20Sopenharmony_ci#  define MMU_IS_851 (0)
1978c2ecf20Sopenharmony_ci#  define MMU_IS_SUN3 (0)
1988c2ecf20Sopenharmony_ci#elif defined(CONFIG_M68030) || defined(CONFIG_M68040) || defined(CONFIG_M68060)
1998c2ecf20Sopenharmony_ci#  define CPU_IS_020 (m68k_cputype & CPU_68020)
2008c2ecf20Sopenharmony_ci#  define MMU_IS_851 (m68k_mmutype & MMU_68851)
2018c2ecf20Sopenharmony_ci#  define MMU_IS_SUN3 (0)	/* Sun3 not supported with other CPU enabled */
2028c2ecf20Sopenharmony_ci#else
2038c2ecf20Sopenharmony_ci#  define CPU_M68020_ONLY
2048c2ecf20Sopenharmony_ci#  define CPU_IS_020 (1)
2058c2ecf20Sopenharmony_ci#ifdef MACH_SUN3_ONLY
2068c2ecf20Sopenharmony_ci#  define MMU_IS_SUN3 (1)
2078c2ecf20Sopenharmony_ci#  define MMU_IS_851 (0)
2088c2ecf20Sopenharmony_ci#else
2098c2ecf20Sopenharmony_ci#  define MMU_IS_SUN3 (0)
2108c2ecf20Sopenharmony_ci#  define MMU_IS_851 (1)
2118c2ecf20Sopenharmony_ci#endif
2128c2ecf20Sopenharmony_ci#endif
2138c2ecf20Sopenharmony_ci
2148c2ecf20Sopenharmony_ci#if !defined(CONFIG_M68030)
2158c2ecf20Sopenharmony_ci#  define CPU_IS_030 (0)
2168c2ecf20Sopenharmony_ci#  define MMU_IS_030 (0)
2178c2ecf20Sopenharmony_ci#elif defined(CONFIG_M68020) || defined(CONFIG_M68040) || defined(CONFIG_M68060)
2188c2ecf20Sopenharmony_ci#  define CPU_IS_030 (m68k_cputype & CPU_68030)
2198c2ecf20Sopenharmony_ci#  define MMU_IS_030 (m68k_mmutype & MMU_68030)
2208c2ecf20Sopenharmony_ci#else
2218c2ecf20Sopenharmony_ci#  define CPU_M68030_ONLY
2228c2ecf20Sopenharmony_ci#  define CPU_IS_030 (1)
2238c2ecf20Sopenharmony_ci#  define MMU_IS_030 (1)
2248c2ecf20Sopenharmony_ci#endif
2258c2ecf20Sopenharmony_ci
2268c2ecf20Sopenharmony_ci#if !defined(CONFIG_M68040)
2278c2ecf20Sopenharmony_ci#  define CPU_IS_040 (0)
2288c2ecf20Sopenharmony_ci#  define MMU_IS_040 (0)
2298c2ecf20Sopenharmony_ci#elif defined(CONFIG_M68020) || defined(CONFIG_M68030) || defined(CONFIG_M68060)
2308c2ecf20Sopenharmony_ci#  define CPU_IS_040 (m68k_cputype & CPU_68040)
2318c2ecf20Sopenharmony_ci#  define MMU_IS_040 (m68k_mmutype & MMU_68040)
2328c2ecf20Sopenharmony_ci#else
2338c2ecf20Sopenharmony_ci#  define CPU_M68040_ONLY
2348c2ecf20Sopenharmony_ci#  define CPU_IS_040 (1)
2358c2ecf20Sopenharmony_ci#  define MMU_IS_040 (1)
2368c2ecf20Sopenharmony_ci#endif
2378c2ecf20Sopenharmony_ci
2388c2ecf20Sopenharmony_ci#if !defined(CONFIG_M68060)
2398c2ecf20Sopenharmony_ci#  define CPU_IS_060 (0)
2408c2ecf20Sopenharmony_ci#  define MMU_IS_060 (0)
2418c2ecf20Sopenharmony_ci#elif defined(CONFIG_M68020) || defined(CONFIG_M68030) || defined(CONFIG_M68040)
2428c2ecf20Sopenharmony_ci#  define CPU_IS_060 (m68k_cputype & CPU_68060)
2438c2ecf20Sopenharmony_ci#  define MMU_IS_060 (m68k_mmutype & MMU_68060)
2448c2ecf20Sopenharmony_ci#else
2458c2ecf20Sopenharmony_ci#  define CPU_M68060_ONLY
2468c2ecf20Sopenharmony_ci#  define CPU_IS_060 (1)
2478c2ecf20Sopenharmony_ci#  define MMU_IS_060 (1)
2488c2ecf20Sopenharmony_ci#endif
2498c2ecf20Sopenharmony_ci
2508c2ecf20Sopenharmony_ci#if !defined(CONFIG_M68020) && !defined(CONFIG_M68030)
2518c2ecf20Sopenharmony_ci#  define CPU_IS_020_OR_030 (0)
2528c2ecf20Sopenharmony_ci#else
2538c2ecf20Sopenharmony_ci#  define CPU_M68020_OR_M68030
2548c2ecf20Sopenharmony_ci#  if defined(CONFIG_M68040) || defined(CONFIG_M68060)
2558c2ecf20Sopenharmony_ci#    define CPU_IS_020_OR_030 (!m68k_is040or060)
2568c2ecf20Sopenharmony_ci#  else
2578c2ecf20Sopenharmony_ci#    define CPU_M68020_OR_M68030_ONLY
2588c2ecf20Sopenharmony_ci#    define CPU_IS_020_OR_030 (1)
2598c2ecf20Sopenharmony_ci#  endif
2608c2ecf20Sopenharmony_ci#endif
2618c2ecf20Sopenharmony_ci
2628c2ecf20Sopenharmony_ci#if !defined(CONFIG_M68040) && !defined(CONFIG_M68060)
2638c2ecf20Sopenharmony_ci#  define CPU_IS_040_OR_060 (0)
2648c2ecf20Sopenharmony_ci#else
2658c2ecf20Sopenharmony_ci#  define CPU_M68040_OR_M68060
2668c2ecf20Sopenharmony_ci#  if defined(CONFIG_M68020) || defined(CONFIG_M68030)
2678c2ecf20Sopenharmony_ci#    define CPU_IS_040_OR_060 (m68k_is040or060)
2688c2ecf20Sopenharmony_ci#  else
2698c2ecf20Sopenharmony_ci#    define CPU_M68040_OR_M68060_ONLY
2708c2ecf20Sopenharmony_ci#    define CPU_IS_040_OR_060 (1)
2718c2ecf20Sopenharmony_ci#  endif
2728c2ecf20Sopenharmony_ci#endif
2738c2ecf20Sopenharmony_ci
2748c2ecf20Sopenharmony_ci#if !defined(CONFIG_COLDFIRE)
2758c2ecf20Sopenharmony_ci#  define CPU_IS_COLDFIRE (0)
2768c2ecf20Sopenharmony_ci#else
2778c2ecf20Sopenharmony_ci#  define CPU_IS_COLDFIRE (1)
2788c2ecf20Sopenharmony_ci#  define MMU_IS_COLDFIRE (1)
2798c2ecf20Sopenharmony_ci#endif
2808c2ecf20Sopenharmony_ci
2818c2ecf20Sopenharmony_ci#define CPU_TYPE (m68k_cputype)
2828c2ecf20Sopenharmony_ci
2838c2ecf20Sopenharmony_ci#ifdef CONFIG_M68KFPU_EMU
2848c2ecf20Sopenharmony_ci#  ifdef CONFIG_M68KFPU_EMU_ONLY
2858c2ecf20Sopenharmony_ci#    define FPU_IS_EMU (1)
2868c2ecf20Sopenharmony_ci#  else
2878c2ecf20Sopenharmony_ci#    define FPU_IS_EMU (!m68k_fputype)
2888c2ecf20Sopenharmony_ci#  endif
2898c2ecf20Sopenharmony_ci#else
2908c2ecf20Sopenharmony_ci#  define FPU_IS_EMU (0)
2918c2ecf20Sopenharmony_ci#endif
2928c2ecf20Sopenharmony_ci
2938c2ecf20Sopenharmony_ci
2948c2ecf20Sopenharmony_ci    /*
2958c2ecf20Sopenharmony_ci     *  Miscellaneous
2968c2ecf20Sopenharmony_ci     */
2978c2ecf20Sopenharmony_ci
2988c2ecf20Sopenharmony_ci#define NUM_MEMINFO	4
2998c2ecf20Sopenharmony_ci
3008c2ecf20Sopenharmony_ci#ifndef __ASSEMBLY__
3018c2ecf20Sopenharmony_cistruct m68k_mem_info {
3028c2ecf20Sopenharmony_ci	unsigned long addr;		/* physical address of memory chunk */
3038c2ecf20Sopenharmony_ci	unsigned long size;		/* length of memory chunk (in bytes) */
3048c2ecf20Sopenharmony_ci};
3058c2ecf20Sopenharmony_ci
3068c2ecf20Sopenharmony_ciextern int m68k_num_memory;		/* # of memory blocks found (and used) */
3078c2ecf20Sopenharmony_ciextern int m68k_realnum_memory;		/* real # of memory blocks found */
3088c2ecf20Sopenharmony_ciextern struct m68k_mem_info m68k_memory[NUM_MEMINFO];/* memory description */
3098c2ecf20Sopenharmony_ci#endif
3108c2ecf20Sopenharmony_ci
3118c2ecf20Sopenharmony_ci#endif /* _M68K_SETUP_H */
312