162306a36Sopenharmony_ci/*
262306a36Sopenharmony_ci** asm/setup.h -- Definition of the Linux/m68k setup information
362306a36Sopenharmony_ci**
462306a36Sopenharmony_ci** Copyright 1992 by Greg Harp
562306a36Sopenharmony_ci**
662306a36Sopenharmony_ci** This file is subject to the terms and conditions of the GNU General Public
762306a36Sopenharmony_ci** License.  See the file COPYING in the main directory of this archive
862306a36Sopenharmony_ci** for more details.
962306a36Sopenharmony_ci**
1062306a36Sopenharmony_ci** Created 09/29/92 by Greg Harp
1162306a36Sopenharmony_ci**
1262306a36Sopenharmony_ci** 5/2/94 Roman Hodek:
1362306a36Sopenharmony_ci**   Added bi_atari part of the machine dependent union bi_un; for now it
1462306a36Sopenharmony_ci**   contains just a model field to distinguish between TT and Falcon.
1562306a36Sopenharmony_ci** 26/7/96 Roman Zippel:
1662306a36Sopenharmony_ci**   Renamed to setup.h; added some useful macros to allow gcc some
1762306a36Sopenharmony_ci**   optimizations if possible.
1862306a36Sopenharmony_ci** 5/10/96 Geert Uytterhoeven:
1962306a36Sopenharmony_ci**   Redesign of the boot information structure; moved boot information
2062306a36Sopenharmony_ci**   structure to bootinfo.h
2162306a36Sopenharmony_ci*/
2262306a36Sopenharmony_ci#ifndef _M68K_SETUP_H
2362306a36Sopenharmony_ci#define _M68K_SETUP_H
2462306a36Sopenharmony_ci
2562306a36Sopenharmony_ci#include <uapi/asm/bootinfo.h>
2662306a36Sopenharmony_ci#include <uapi/asm/setup.h>
2762306a36Sopenharmony_ci
2862306a36Sopenharmony_ci
2962306a36Sopenharmony_ci#define CL_SIZE COMMAND_LINE_SIZE
3062306a36Sopenharmony_ci
3162306a36Sopenharmony_ci#ifndef __ASSEMBLY__
3262306a36Sopenharmony_ciextern unsigned long m68k_machtype;
3362306a36Sopenharmony_ci#endif /* !__ASSEMBLY__ */
3462306a36Sopenharmony_ci
3562306a36Sopenharmony_ci#if !defined(CONFIG_AMIGA)
3662306a36Sopenharmony_ci#  define MACH_IS_AMIGA (0)
3762306a36Sopenharmony_ci#elif defined(CONFIG_ATARI) || defined(CONFIG_MAC) || defined(CONFIG_APOLLO) \
3862306a36Sopenharmony_ci	|| defined(CONFIG_MVME16x) || defined(CONFIG_BVME6000)               \
3962306a36Sopenharmony_ci	|| defined(CONFIG_HP300) || defined(CONFIG_Q40)                      \
4062306a36Sopenharmony_ci	|| defined(CONFIG_SUN3X) || defined(CONFIG_MVME147)                  \
4162306a36Sopenharmony_ci	|| defined(CONFIG_VIRT)
4262306a36Sopenharmony_ci#  define MACH_IS_AMIGA (m68k_machtype == MACH_AMIGA)
4362306a36Sopenharmony_ci#else
4462306a36Sopenharmony_ci#  define MACH_AMIGA_ONLY
4562306a36Sopenharmony_ci#  define MACH_IS_AMIGA (1)
4662306a36Sopenharmony_ci#  define MACH_TYPE (MACH_AMIGA)
4762306a36Sopenharmony_ci#endif
4862306a36Sopenharmony_ci
4962306a36Sopenharmony_ci#if !defined(CONFIG_ATARI)
5062306a36Sopenharmony_ci#  define MACH_IS_ATARI (0)
5162306a36Sopenharmony_ci#elif defined(CONFIG_AMIGA) || defined(CONFIG_MAC) || defined(CONFIG_APOLLO) \
5262306a36Sopenharmony_ci	|| defined(CONFIG_MVME16x) || defined(CONFIG_BVME6000)               \
5362306a36Sopenharmony_ci	|| defined(CONFIG_HP300) || defined(CONFIG_Q40)                      \
5462306a36Sopenharmony_ci	|| defined(CONFIG_SUN3X) || defined(CONFIG_MVME147)                  \
5562306a36Sopenharmony_ci	|| defined(CONFIG_VIRT)
5662306a36Sopenharmony_ci#  define MACH_IS_ATARI (m68k_machtype == MACH_ATARI)
5762306a36Sopenharmony_ci#else
5862306a36Sopenharmony_ci#  define MACH_ATARI_ONLY
5962306a36Sopenharmony_ci#  define MACH_IS_ATARI (1)
6062306a36Sopenharmony_ci#  define MACH_TYPE (MACH_ATARI)
6162306a36Sopenharmony_ci#endif
6262306a36Sopenharmony_ci
6362306a36Sopenharmony_ci#if !defined(CONFIG_MAC)
6462306a36Sopenharmony_ci#  define MACH_IS_MAC (0)
6562306a36Sopenharmony_ci#elif defined(CONFIG_AMIGA) || defined(CONFIG_ATARI) || defined(CONFIG_APOLLO) \
6662306a36Sopenharmony_ci	|| defined(CONFIG_MVME16x) || defined(CONFIG_BVME6000)                 \
6762306a36Sopenharmony_ci	|| defined(CONFIG_HP300) || defined(CONFIG_Q40)                        \
6862306a36Sopenharmony_ci	|| defined(CONFIG_SUN3X) || defined(CONFIG_MVME147)                    \
6962306a36Sopenharmony_ci	|| defined(CONFIG_VIRT)
7062306a36Sopenharmony_ci#  define MACH_IS_MAC (m68k_machtype == MACH_MAC)
7162306a36Sopenharmony_ci#else
7262306a36Sopenharmony_ci#  define MACH_MAC_ONLY
7362306a36Sopenharmony_ci#  define MACH_IS_MAC (1)
7462306a36Sopenharmony_ci#  define MACH_TYPE (MACH_MAC)
7562306a36Sopenharmony_ci#endif
7662306a36Sopenharmony_ci
7762306a36Sopenharmony_ci#if defined(CONFIG_SUN3)
7862306a36Sopenharmony_ci#define MACH_IS_SUN3 (1)
7962306a36Sopenharmony_ci#define MACH_SUN3_ONLY (1)
8062306a36Sopenharmony_ci#define MACH_TYPE (MACH_SUN3)
8162306a36Sopenharmony_ci#else
8262306a36Sopenharmony_ci#define MACH_IS_SUN3 (0)
8362306a36Sopenharmony_ci#endif
8462306a36Sopenharmony_ci
8562306a36Sopenharmony_ci#if !defined (CONFIG_APOLLO)
8662306a36Sopenharmony_ci#  define MACH_IS_APOLLO (0)
8762306a36Sopenharmony_ci#elif defined(CONFIG_AMIGA) || defined(CONFIG_MAC) || defined(CONFIG_ATARI) \
8862306a36Sopenharmony_ci	|| defined(CONFIG_MVME16x) || defined(CONFIG_BVME6000)              \
8962306a36Sopenharmony_ci	|| defined(CONFIG_HP300) || defined(CONFIG_Q40)                     \
9062306a36Sopenharmony_ci	|| defined(CONFIG_SUN3X) || defined(CONFIG_MVME147)                 \
9162306a36Sopenharmony_ci	|| defined(CONFIG_VIRT)
9262306a36Sopenharmony_ci#  define MACH_IS_APOLLO (m68k_machtype == MACH_APOLLO)
9362306a36Sopenharmony_ci#else
9462306a36Sopenharmony_ci#  define MACH_APOLLO_ONLY
9562306a36Sopenharmony_ci#  define MACH_IS_APOLLO (1)
9662306a36Sopenharmony_ci#  define MACH_TYPE (MACH_APOLLO)
9762306a36Sopenharmony_ci#endif
9862306a36Sopenharmony_ci
9962306a36Sopenharmony_ci#if !defined (CONFIG_MVME147)
10062306a36Sopenharmony_ci#  define MACH_IS_MVME147 (0)
10162306a36Sopenharmony_ci#elif defined(CONFIG_AMIGA) || defined(CONFIG_MAC) || defined(CONFIG_ATARI) \
10262306a36Sopenharmony_ci	|| defined(CONFIG_APOLLO) || defined(CONFIG_BVME6000)               \
10362306a36Sopenharmony_ci	|| defined(CONFIG_HP300) || defined(CONFIG_Q40)                     \
10462306a36Sopenharmony_ci	|| defined(CONFIG_SUN3X) || defined(CONFIG_MVME16x)                 \
10562306a36Sopenharmony_ci	|| defined(CONFIG_VIRT)
10662306a36Sopenharmony_ci#  define MACH_IS_MVME147 (m68k_machtype == MACH_MVME147)
10762306a36Sopenharmony_ci#else
10862306a36Sopenharmony_ci#  define MACH_MVME147_ONLY
10962306a36Sopenharmony_ci#  define MACH_IS_MVME147 (1)
11062306a36Sopenharmony_ci#  define MACH_TYPE (MACH_MVME147)
11162306a36Sopenharmony_ci#endif
11262306a36Sopenharmony_ci
11362306a36Sopenharmony_ci#if !defined (CONFIG_MVME16x)
11462306a36Sopenharmony_ci#  define MACH_IS_MVME16x (0)
11562306a36Sopenharmony_ci#elif defined(CONFIG_AMIGA) || defined(CONFIG_MAC) || defined(CONFIG_ATARI) \
11662306a36Sopenharmony_ci	|| defined(CONFIG_APOLLO) || defined(CONFIG_BVME6000)               \
11762306a36Sopenharmony_ci	|| defined(CONFIG_HP300) || defined(CONFIG_Q40)                     \
11862306a36Sopenharmony_ci	|| defined(CONFIG_SUN3X) || defined(CONFIG_MVME147)                 \
11962306a36Sopenharmony_ci	|| defined(CONFIG_VIRT)
12062306a36Sopenharmony_ci#  define MACH_IS_MVME16x (m68k_machtype == MACH_MVME16x)
12162306a36Sopenharmony_ci#else
12262306a36Sopenharmony_ci#  define MACH_MVME16x_ONLY
12362306a36Sopenharmony_ci#  define MACH_IS_MVME16x (1)
12462306a36Sopenharmony_ci#  define MACH_TYPE (MACH_MVME16x)
12562306a36Sopenharmony_ci#endif
12662306a36Sopenharmony_ci
12762306a36Sopenharmony_ci#if !defined (CONFIG_BVME6000)
12862306a36Sopenharmony_ci#  define MACH_IS_BVME6000 (0)
12962306a36Sopenharmony_ci#elif defined(CONFIG_AMIGA) || defined(CONFIG_MAC) || defined(CONFIG_ATARI) \
13062306a36Sopenharmony_ci	|| defined(CONFIG_APOLLO) || defined(CONFIG_MVME16x)                \
13162306a36Sopenharmony_ci	|| defined(CONFIG_HP300) || defined(CONFIG_Q40)                     \
13262306a36Sopenharmony_ci	|| defined(CONFIG_SUN3X) || defined(CONFIG_MVME147)                 \
13362306a36Sopenharmony_ci	|| defined(CONFIG_VIRT)
13462306a36Sopenharmony_ci#  define MACH_IS_BVME6000 (m68k_machtype == MACH_BVME6000)
13562306a36Sopenharmony_ci#else
13662306a36Sopenharmony_ci#  define MACH_BVME6000_ONLY
13762306a36Sopenharmony_ci#  define MACH_IS_BVME6000 (1)
13862306a36Sopenharmony_ci#  define MACH_TYPE (MACH_BVME6000)
13962306a36Sopenharmony_ci#endif
14062306a36Sopenharmony_ci
14162306a36Sopenharmony_ci#if !defined (CONFIG_HP300)
14262306a36Sopenharmony_ci#  define MACH_IS_HP300 (0)
14362306a36Sopenharmony_ci#elif defined(CONFIG_AMIGA) || defined(CONFIG_MAC) || defined(CONFIG_ATARI) \
14462306a36Sopenharmony_ci	|| defined(CONFIG_APOLLO) || defined(CONFIG_MVME16x) \
14562306a36Sopenharmony_ci	|| defined(CONFIG_BVME6000) || defined(CONFIG_Q40) \
14662306a36Sopenharmony_ci	|| defined(CONFIG_SUN3X) || defined(CONFIG_MVME147) \
14762306a36Sopenharmony_ci	|| defined(CONFIG_VIRT)
14862306a36Sopenharmony_ci#  define MACH_IS_HP300 (m68k_machtype == MACH_HP300)
14962306a36Sopenharmony_ci#else
15062306a36Sopenharmony_ci#  define MACH_HP300_ONLY
15162306a36Sopenharmony_ci#  define MACH_IS_HP300 (1)
15262306a36Sopenharmony_ci#  define MACH_TYPE (MACH_HP300)
15362306a36Sopenharmony_ci#endif
15462306a36Sopenharmony_ci
15562306a36Sopenharmony_ci#if !defined (CONFIG_Q40)
15662306a36Sopenharmony_ci#  define MACH_IS_Q40 (0)
15762306a36Sopenharmony_ci#elif defined(CONFIG_AMIGA) || defined(CONFIG_MAC) || defined(CONFIG_ATARI) \
15862306a36Sopenharmony_ci	|| defined(CONFIG_APOLLO) || defined(CONFIG_MVME16x)                \
15962306a36Sopenharmony_ci	|| defined(CONFIG_BVME6000) || defined(CONFIG_HP300)                \
16062306a36Sopenharmony_ci	|| defined(CONFIG_SUN3X) || defined(CONFIG_MVME147)                 \
16162306a36Sopenharmony_ci	|| defined(CONFIG_VIRT)
16262306a36Sopenharmony_ci#  define MACH_IS_Q40 (m68k_machtype == MACH_Q40)
16362306a36Sopenharmony_ci#else
16462306a36Sopenharmony_ci#  define MACH_Q40_ONLY
16562306a36Sopenharmony_ci#  define MACH_IS_Q40 (1)
16662306a36Sopenharmony_ci#  define MACH_TYPE (MACH_Q40)
16762306a36Sopenharmony_ci#endif
16862306a36Sopenharmony_ci
16962306a36Sopenharmony_ci#if !defined (CONFIG_SUN3X)
17062306a36Sopenharmony_ci#  define MACH_IS_SUN3X (0)
17162306a36Sopenharmony_ci#elif defined(CONFIG_AMIGA) || defined(CONFIG_MAC) || defined(CONFIG_ATARI) \
17262306a36Sopenharmony_ci	|| defined(CONFIG_APOLLO) || defined(CONFIG_MVME16x)                \
17362306a36Sopenharmony_ci	|| defined(CONFIG_BVME6000) || defined(CONFIG_HP300)                \
17462306a36Sopenharmony_ci	|| defined(CONFIG_Q40) || defined(CONFIG_MVME147)                   \
17562306a36Sopenharmony_ci	|| defined(CONFIG_VIRT)
17662306a36Sopenharmony_ci#  define MACH_IS_SUN3X (m68k_machtype == MACH_SUN3X)
17762306a36Sopenharmony_ci#else
17862306a36Sopenharmony_ci#  define CONFIG_SUN3X_ONLY
17962306a36Sopenharmony_ci#  define MACH_IS_SUN3X (1)
18062306a36Sopenharmony_ci#  define MACH_TYPE (MACH_SUN3X)
18162306a36Sopenharmony_ci#endif
18262306a36Sopenharmony_ci
18362306a36Sopenharmony_ci#if !defined(CONFIG_VIRT)
18462306a36Sopenharmony_ci#  define MACH_IS_VIRT (0)
18562306a36Sopenharmony_ci#elif defined(CONFIG_AMIGA) || defined(CONFIG_MAC) || defined(CONFIG_ATARI) \
18662306a36Sopenharmony_ci	|| defined(CONFIG_APOLLO) || defined(CONFIG_MVME16x)                \
18762306a36Sopenharmony_ci	|| defined(CONFIG_BVME6000) || defined(CONFIG_HP300)                \
18862306a36Sopenharmony_ci	|| defined(CONFIG_Q40) || defined(CONFIG_SUN3X)                     \
18962306a36Sopenharmony_ci	|| defined(CONFIG_MVME147)
19062306a36Sopenharmony_ci#  define MACH_IS_VIRT (m68k_machtype == MACH_VIRT)
19162306a36Sopenharmony_ci#else
19262306a36Sopenharmony_ci#  define MACH_VIRT_ONLY
19362306a36Sopenharmony_ci#  define MACH_IS_VIRT (1)
19462306a36Sopenharmony_ci#  define MACH_TYPE (MACH_VIRT)
19562306a36Sopenharmony_ci#endif
19662306a36Sopenharmony_ci
19762306a36Sopenharmony_ci#ifndef MACH_TYPE
19862306a36Sopenharmony_ci#  define MACH_TYPE (m68k_machtype)
19962306a36Sopenharmony_ci#endif
20062306a36Sopenharmony_ci
20162306a36Sopenharmony_ci
20262306a36Sopenharmony_ci#ifndef __ASSEMBLY__
20362306a36Sopenharmony_ciextern unsigned long m68k_cputype;
20462306a36Sopenharmony_ciextern unsigned long m68k_fputype;
20562306a36Sopenharmony_ciextern unsigned long m68k_mmutype;
20662306a36Sopenharmony_ci#ifdef CONFIG_VME
20762306a36Sopenharmony_ciextern unsigned long vme_brdtype;
20862306a36Sopenharmony_ci#endif
20962306a36Sopenharmony_ci
21062306a36Sopenharmony_ci    /*
21162306a36Sopenharmony_ci     *  m68k_is040or060 is != 0 for a '040 or higher;
21262306a36Sopenharmony_ci     *  used numbers are 4 for 68040 and 6 for 68060.
21362306a36Sopenharmony_ci     */
21462306a36Sopenharmony_ci
21562306a36Sopenharmony_ciextern int m68k_is040or060;
21662306a36Sopenharmony_ci#endif /* !__ASSEMBLY__ */
21762306a36Sopenharmony_ci
21862306a36Sopenharmony_ci#if !defined(CONFIG_M68020)
21962306a36Sopenharmony_ci#  define CPU_IS_020 (0)
22062306a36Sopenharmony_ci#  define MMU_IS_851 (0)
22162306a36Sopenharmony_ci#  define MMU_IS_SUN3 (0)
22262306a36Sopenharmony_ci#elif defined(CONFIG_M68030) || defined(CONFIG_M68040) || defined(CONFIG_M68060)
22362306a36Sopenharmony_ci#  define CPU_IS_020 (m68k_cputype & CPU_68020)
22462306a36Sopenharmony_ci#  define MMU_IS_851 (m68k_mmutype & MMU_68851)
22562306a36Sopenharmony_ci#  define MMU_IS_SUN3 (0)	/* Sun3 not supported with other CPU enabled */
22662306a36Sopenharmony_ci#else
22762306a36Sopenharmony_ci#  define CPU_M68020_ONLY
22862306a36Sopenharmony_ci#  define CPU_IS_020 (1)
22962306a36Sopenharmony_ci#ifdef MACH_SUN3_ONLY
23062306a36Sopenharmony_ci#  define MMU_IS_SUN3 (1)
23162306a36Sopenharmony_ci#  define MMU_IS_851 (0)
23262306a36Sopenharmony_ci#else
23362306a36Sopenharmony_ci#  define MMU_IS_SUN3 (0)
23462306a36Sopenharmony_ci#  define MMU_IS_851 (1)
23562306a36Sopenharmony_ci#endif
23662306a36Sopenharmony_ci#endif
23762306a36Sopenharmony_ci
23862306a36Sopenharmony_ci#if !defined(CONFIG_M68030)
23962306a36Sopenharmony_ci#  define CPU_IS_030 (0)
24062306a36Sopenharmony_ci#  define MMU_IS_030 (0)
24162306a36Sopenharmony_ci#elif defined(CONFIG_M68020) || defined(CONFIG_M68040) || defined(CONFIG_M68060)
24262306a36Sopenharmony_ci#  define CPU_IS_030 (m68k_cputype & CPU_68030)
24362306a36Sopenharmony_ci#  define MMU_IS_030 (m68k_mmutype & MMU_68030)
24462306a36Sopenharmony_ci#else
24562306a36Sopenharmony_ci#  define CPU_M68030_ONLY
24662306a36Sopenharmony_ci#  define CPU_IS_030 (1)
24762306a36Sopenharmony_ci#  define MMU_IS_030 (1)
24862306a36Sopenharmony_ci#endif
24962306a36Sopenharmony_ci
25062306a36Sopenharmony_ci#if !defined(CONFIG_M68040)
25162306a36Sopenharmony_ci#  define CPU_IS_040 (0)
25262306a36Sopenharmony_ci#  define MMU_IS_040 (0)
25362306a36Sopenharmony_ci#elif defined(CONFIG_M68020) || defined(CONFIG_M68030) || defined(CONFIG_M68060)
25462306a36Sopenharmony_ci#  define CPU_IS_040 (m68k_cputype & CPU_68040)
25562306a36Sopenharmony_ci#  define MMU_IS_040 (m68k_mmutype & MMU_68040)
25662306a36Sopenharmony_ci#else
25762306a36Sopenharmony_ci#  define CPU_M68040_ONLY
25862306a36Sopenharmony_ci#  define CPU_IS_040 (1)
25962306a36Sopenharmony_ci#  define MMU_IS_040 (1)
26062306a36Sopenharmony_ci#endif
26162306a36Sopenharmony_ci
26262306a36Sopenharmony_ci#if !defined(CONFIG_M68060)
26362306a36Sopenharmony_ci#  define CPU_IS_060 (0)
26462306a36Sopenharmony_ci#  define MMU_IS_060 (0)
26562306a36Sopenharmony_ci#elif defined(CONFIG_M68020) || defined(CONFIG_M68030) || defined(CONFIG_M68040)
26662306a36Sopenharmony_ci#  define CPU_IS_060 (m68k_cputype & CPU_68060)
26762306a36Sopenharmony_ci#  define MMU_IS_060 (m68k_mmutype & MMU_68060)
26862306a36Sopenharmony_ci#else
26962306a36Sopenharmony_ci#  define CPU_M68060_ONLY
27062306a36Sopenharmony_ci#  define CPU_IS_060 (1)
27162306a36Sopenharmony_ci#  define MMU_IS_060 (1)
27262306a36Sopenharmony_ci#endif
27362306a36Sopenharmony_ci
27462306a36Sopenharmony_ci#if !defined(CONFIG_M68020) && !defined(CONFIG_M68030)
27562306a36Sopenharmony_ci#  define CPU_IS_020_OR_030 (0)
27662306a36Sopenharmony_ci#else
27762306a36Sopenharmony_ci#  define CPU_M68020_OR_M68030
27862306a36Sopenharmony_ci#  if defined(CONFIG_M68040) || defined(CONFIG_M68060)
27962306a36Sopenharmony_ci#    define CPU_IS_020_OR_030 (!m68k_is040or060)
28062306a36Sopenharmony_ci#  else
28162306a36Sopenharmony_ci#    define CPU_M68020_OR_M68030_ONLY
28262306a36Sopenharmony_ci#    define CPU_IS_020_OR_030 (1)
28362306a36Sopenharmony_ci#  endif
28462306a36Sopenharmony_ci#endif
28562306a36Sopenharmony_ci
28662306a36Sopenharmony_ci#if !defined(CONFIG_M68040) && !defined(CONFIG_M68060)
28762306a36Sopenharmony_ci#  define CPU_IS_040_OR_060 (0)
28862306a36Sopenharmony_ci#else
28962306a36Sopenharmony_ci#  define CPU_M68040_OR_M68060
29062306a36Sopenharmony_ci#  if defined(CONFIG_M68020) || defined(CONFIG_M68030)
29162306a36Sopenharmony_ci#    define CPU_IS_040_OR_060 (m68k_is040or060)
29262306a36Sopenharmony_ci#  else
29362306a36Sopenharmony_ci#    define CPU_M68040_OR_M68060_ONLY
29462306a36Sopenharmony_ci#    define CPU_IS_040_OR_060 (1)
29562306a36Sopenharmony_ci#  endif
29662306a36Sopenharmony_ci#endif
29762306a36Sopenharmony_ci
29862306a36Sopenharmony_ci#if !defined(CONFIG_COLDFIRE)
29962306a36Sopenharmony_ci#  define CPU_IS_COLDFIRE (0)
30062306a36Sopenharmony_ci#else
30162306a36Sopenharmony_ci#  define CPU_IS_COLDFIRE (1)
30262306a36Sopenharmony_ci#  define MMU_IS_COLDFIRE (1)
30362306a36Sopenharmony_ci#endif
30462306a36Sopenharmony_ci
30562306a36Sopenharmony_ci#define CPU_TYPE (m68k_cputype)
30662306a36Sopenharmony_ci
30762306a36Sopenharmony_ci#ifdef CONFIG_M68KFPU_EMU
30862306a36Sopenharmony_ci#  ifdef CONFIG_M68KFPU_EMU_ONLY
30962306a36Sopenharmony_ci#    define FPU_IS_EMU (1)
31062306a36Sopenharmony_ci#  else
31162306a36Sopenharmony_ci#    define FPU_IS_EMU (!m68k_fputype)
31262306a36Sopenharmony_ci#  endif
31362306a36Sopenharmony_ci#else
31462306a36Sopenharmony_ci#  define FPU_IS_EMU (0)
31562306a36Sopenharmony_ci#endif
31662306a36Sopenharmony_ci
31762306a36Sopenharmony_ci
31862306a36Sopenharmony_ci    /*
31962306a36Sopenharmony_ci     *  Miscellaneous
32062306a36Sopenharmony_ci     */
32162306a36Sopenharmony_ci
32262306a36Sopenharmony_ci#define NUM_MEMINFO	4
32362306a36Sopenharmony_ci
32462306a36Sopenharmony_ci#ifndef __ASSEMBLY__
32562306a36Sopenharmony_cistruct m68k_mem_info {
32662306a36Sopenharmony_ci	unsigned long addr;		/* physical address of memory chunk */
32762306a36Sopenharmony_ci	unsigned long size;		/* length of memory chunk (in bytes) */
32862306a36Sopenharmony_ci};
32962306a36Sopenharmony_ci
33062306a36Sopenharmony_ciextern int m68k_num_memory;		/* # of memory blocks found (and used) */
33162306a36Sopenharmony_ciextern int m68k_realnum_memory;		/* real # of memory blocks found */
33262306a36Sopenharmony_ciextern struct m68k_mem_info m68k_memory[NUM_MEMINFO];/* memory description */
33362306a36Sopenharmony_ci#endif
33462306a36Sopenharmony_ci
33562306a36Sopenharmony_ci#endif /* _M68K_SETUP_H */
336