From 399b0e0f681aabb3f771ae1fde015f0481a8b3a1 Mon Sep 17 00:00:00 2001 From: thorpej Date: Thu, 12 Sep 1996 05:26:37 +0000 Subject: [PATCH] - Use MVME "machine options" to associate MVME models with CPU options (a'la the hp300 port). - Declare a "machineid" extern. - Define constants for machineid, which match the Bug's idea of MVME model numbers. --- sys/arch/mvme68k/include/cpu.h | 41 +++++++++++++++++++++++++++++++--- 1 file changed, 38 insertions(+), 3 deletions(-) diff --git a/sys/arch/mvme68k/include/cpu.h b/sys/arch/mvme68k/include/cpu.h index 5c373094645a..1a85754acc63 100644 --- a/sys/arch/mvme68k/include/cpu.h +++ b/sys/arch/mvme68k/include/cpu.h @@ -1,4 +1,4 @@ -/* $NetBSD: cpu.h,v 1.5 1996/09/12 05:01:47 thorpej Exp $ */ +/* $NetBSD: cpu.h,v 1.6 1996/09/12 05:26:37 thorpej Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -133,10 +133,45 @@ extern unsigned long allocate_sir(); { "console_device", CTLTYPE_STRUCT }, \ } -#define MHZ_16 2 /* XXX kill */ +#ifdef _KERNEL +/* + * Associate MVME models with CPU types. + */ + +/* + * MVME-147; 68030 CPU + */ +#if defined(MVME147) && !defined(M68030) +#define M68030 +#endif + +/* + * MVME-162/166/167; 68040 CPU + */ +#if (defined(MVME162) || defined(MVME167)) && !defined(M68040) +#define M68040 +#endif + +/* + * MVME-177 (what about 172?); 68060 CPU + */ +#if defined(MVME177) && !defined(M68060) +#define M68060 +#endif +#endif /* _KERNEL */ + +/* + * Values for machineid; these match the Bug's values. + */ +#define MVME_147 0x147 +#define MVME_162 0x162 +#define MVME_166 0x166 +#define MVME_167 0x167 +#define MVME_172 0x172 +#define MVME_177 0x177 #ifdef _KERNEL -extern int cpuspeed; /* XXX kill */ +extern int machineid; extern char *intiobase, *intiolimit; struct frame;