Cleanup rambling codes.

This commit is contained in:
nisimura 1999-12-03 03:06:11 +00:00
parent 6944e3acfe
commit d782dfb5f7
6 changed files with 16 additions and 19 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: dec_3100.c,v 1.17 1999/11/25 01:40:22 simonb Exp $ */
/* $NetBSD: dec_3100.c,v 1.18 1999/12/03 03:06:11 nisimura Exp $ */
/*
* Copyright (c) 1998 Jonathan Stone. All rights reserved.
@ -132,8 +132,7 @@ dec_3100_init()
splvec.splstatclock = MIPS_SPL_0_1_2_3;
/* calibrate cpu_mhz value */
mc_cpuspeed(
(void *)MIPS_PHYS_TO_KSEG1(KN01_SYS_CLOCK), MIPS_INT_MASK_3);
mc_cpuspeed(MIPS_PHYS_TO_KSEG1(KN01_SYS_CLOCK), MIPS_INT_MASK_3);
sprintf(cpu_model, "DECstation %d100 (PMAX)", cpu_mhz < 15 ? 3 : 2);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: dec_3max.c,v 1.17 1999/11/25 01:40:22 simonb Exp $ */
/* $NetBSD: dec_3max.c,v 1.18 1999/12/03 03:06:11 nisimura Exp $ */
/*
* Copyright (c) 1998 Jonathan Stone. All rights reserved.
@ -73,7 +73,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: dec_3max.c,v 1.17 1999/11/25 01:40:22 simonb Exp $");
__KERNEL_RCSID(0, "$NetBSD: dec_3max.c,v 1.18 1999/12/03 03:06:11 nisimura Exp $");
#include <sys/types.h>
#include <sys/systm.h>
@ -138,8 +138,7 @@ dec_3max_init()
splvec.splstatclock = MIPS_SPL_0_1;
/* calibrate cpu_mhz value */
mc_cpuspeed(
(void *)MIPS_PHYS_TO_KSEG1(KN02_SYS_CLOCK), MIPS_INT_MASK_1);
mc_cpuspeed(MIPS_PHYS_TO_KSEG1(KN02_SYS_CLOCK), MIPS_INT_MASK_1);
/*
* Enable ECC memory correction, turn off LEDs, and

View File

@ -1,4 +1,4 @@
/* $NetBSD: dec_3maxplus.c,v 1.29 1999/11/25 01:40:22 simonb Exp $ */
/* $NetBSD: dec_3maxplus.c,v 1.30 1999/12/03 03:06:11 nisimura Exp $ */
/*
* Copyright (c) 1998 Jonathan Stone. All rights reserved.
@ -73,7 +73,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: dec_3maxplus.c,v 1.29 1999/11/25 01:40:22 simonb Exp $");
__KERNEL_RCSID(0, "$NetBSD: dec_3maxplus.c,v 1.30 1999/12/03 03:06:11 nisimura Exp $");
#include <sys/types.h>
#include <sys/systm.h>
@ -157,7 +157,7 @@ dec_3maxplus_init()
splvec.splstatclock = MIPS_SPL_0_1;
/* calibrate cpu_mhz value */
mc_cpuspeed((void *)(ioasic_base+IOASIC_SLOT_8_START), MIPS_INT_MASK_1);
mc_cpuspeed(ioasic_base+IOASIC_SLOT_8_START, MIPS_INT_MASK_1);
*(u_int32_t *)(ioasic_base + IOASIC_LANCE_DECODE) = 0x3;
*(u_int32_t *)(ioasic_base + IOASIC_SCSI_DECODE) = 0xe;

View File

@ -1,4 +1,4 @@
/* $NetBSD: dec_3min.c,v 1.28 1999/12/01 08:35:27 nisimura Exp $ */
/* $NetBSD: dec_3min.c,v 1.29 1999/12/03 03:06:11 nisimura Exp $ */
/*
* Copyright (c) 1998 Jonathan Stone. All rights reserved.
@ -73,7 +73,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: dec_3min.c,v 1.28 1999/12/01 08:35:27 nisimura Exp $");
__KERNEL_RCSID(0, "$NetBSD: dec_3min.c,v 1.29 1999/12/03 03:06:11 nisimura Exp $");
#include <sys/types.h>
@ -166,7 +166,7 @@ dec_3min_init()
/* enable posting of MIPS_INT_MASK_3 to CAUSE register */
*(u_int32_t *)(ioasic_base + IOASIC_IMSK) = KMIN_INTR_CLOCK;
/* calibrate cpu_mhz value */
mc_cpuspeed((void *)(ioasic_base+IOASIC_SLOT_8_START), MIPS_INT_MASK_3);
mc_cpuspeed(ioasic_base+IOASIC_SLOT_8_START, MIPS_INT_MASK_3);
*(u_int32_t *)(ioasic_base + IOASIC_LANCE_DECODE) = 0x3;
*(u_int32_t *)(ioasic_base + IOASIC_SCSI_DECODE) = 0xe;

View File

@ -1,4 +1,4 @@
/* $NetBSD: dec_5100.c,v 1.13 1999/11/25 01:40:22 simonb Exp $ */
/* $NetBSD: dec_5100.c,v 1.14 1999/12/03 03:06:11 nisimura Exp $ */
/*
* Copyright (c) 1998 Jonathan Stone. All rights reserved.
@ -103,8 +103,7 @@ dec_5100_init()
splvec.splstatclock = MIPS_SPL_0_1_2;
/* calibrate cpu_mhz value */
mc_cpuspeed(
(void *)MIPS_PHYS_TO_KSEG1(KN01_SYS_CLOCK), MIPS_INT_MASK_2);
mc_cpuspeed(MIPS_PHYS_TO_KSEG1(KN01_SYS_CLOCK), MIPS_INT_MASK_2);
sprintf(cpu_model, "DECsystem 5100 (MIPSMATE)");
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: dec_maxine.c,v 1.20 1999/11/28 08:29:00 simonb Exp $ */
/* $NetBSD: dec_maxine.c,v 1.21 1999/12/03 03:06:11 nisimura Exp $ */
/*
* Copyright (c) 1998 Jonathan Stone. All rights reserved.
@ -73,7 +73,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: dec_maxine.c,v 1.20 1999/11/28 08:29:00 simonb Exp $");
__KERNEL_RCSID(0, "$NetBSD: dec_maxine.c,v 1.21 1999/12/03 03:06:11 nisimura Exp $");
#include <sys/types.h>
#include <sys/systm.h>
@ -154,7 +154,7 @@ dec_maxine_init()
splvec.splstatclock = MIPS_SPL_0_1_3;
/* calibrate cpu_mhz value */
mc_cpuspeed((void *)(ioasic_base+IOASIC_SLOT_8_START), MIPS_INT_MASK_1);
mc_cpuspeed(ioasic_base+IOASIC_SLOT_8_START, MIPS_INT_MASK_1);
*(u_int32_t *)(ioasic_base + IOASIC_LANCE_DECODE) = 0x3;
*(u_int32_t *)(ioasic_base + IOASIC_SCSI_DECODE) = 0xe;