/* ** asm/setup.h -- Definition of the Linux/m68k setup information ** ** Copyright 1992 by Greg Harp ** ** This file is subject to the terms and conditions of the GNU General Public ** License. See the file COPYING in the main directory of this archive ** for more details. ** ** Created 09/29/92 by Greg Harp ** ** 5/2/94 Roman Hodek: ** Added bi_atari part of the machine dependent union bi_un; for now it ** contains just a model field to distinguish between TT and Falcon. ** 26/7/96 Roman Zippel: ** Renamed to setup.h; added some useful macros to allow gcc some ** optimizations if possible. ** 5/10/96 Geert Uytterhoeven: ** Redesign of the boot information structure; moved boot information ** structure to bootinfo.h */ #ifndef _M68K_SETUP_H #define _M68K_SETUP_H #include /* * Linux/m68k Architectures */ #define MACH_AMIGA 1 #define MACH_ATARI 2 #define MACH_MAC 3 #define MACH_APOLLO 4 #define MACH_SUN3 5 /* MVME 166/167/162/147?? */ #ifdef __KERNEL__ #ifndef __ASSEMBLY__ extern u_long m68k_machtype; #endif /* !__ASSEMBLY__ */ #if !defined(CONFIG_AMIGA) # define MACH_IS_AMIGA (0) #elif defined(CONFIG_ATARI) || defined(CONFIG_MAC) # define MACH_IS_AMIGA (m68k_machtype == MACH_AMIGA) #else # define MACH_AMIGA_ONLY # define MACH_IS_AMIGA (1) # define MACH_TYPE (MACH_AMIGA) #endif #if !defined(CONFIG_ATARI) # define MACH_IS_ATARI (0) #elif defined(CONFIG_AMIGA) || defined(CONFIG_MAC) # define MACH_IS_ATARI (m68k_machtype == MACH_ATARI) #else # define MACH_ATARI_ONLY # define MACH_IS_ATARI (1) # define MACH_TYPE (MACH_ATARI) #endif #if defined(CONFIG_MAC) # error Currently no Mac support! #endif #if defined(CONFIG_SUN3) # error Currently no Sun-3 support! #endif #if defined(CONFIG_APOLLO) # error Currently no Apollo support! #endif #ifndef MACH_TYPE # define MACH_TYPE (m68k_machtype) #endif #endif /* __KERNEL__ */ /* * CPU, FPU and MMU types * * Note: we may rely on the following equalities: * * CPU_68020 == MMU_68851 * CPU_68030 == MMU_68030 * CPU_68040 == FPU_68040 == MMU_68040 * CPU_68060 == FPU_68060 == MMU_68060 */ #define CPUB_68020 0 #define CPUB_68030 1 #define CPUB_68040 2 #define CPUB_68060 3 #define CPU_68020 (1<