Use the badaddr() prototype in mips/include/cpu.h by including

<machine/cpu.h> in mips/include/mips_param.h.  Remove duplicate
badaddr() prototypes from some pmax header files.
This commit is contained in:
simonb 2000-01-09 13:24:14 +00:00
parent 1bfa7f6fec
commit 24ddcc3162
6 changed files with 30 additions and 31 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: cpu.h,v 1.32 1999/08/10 21:08:08 thorpej Exp $ */
/* $NetBSD: cpu.h,v 1.33 2000/01/09 13:24:14 simonb Exp $ */
/*-
* Copyright (c) 1992, 1993
@ -45,6 +45,24 @@
* Exported definitions unique to NetBSD/mips cpu support.
*/
/*
* CTL_MACHDEP definitions.
*/
#define CPU_CONSDEV 1 /* dev_t: console terminal device */
#define CPU_BOOTED_KERNEL 2 /* string: booted kernel name */
#define CPU_ROOT_DEVICE 3 /* string: root device name */
#define CPU_MAXID 4 /* number of valid machdep ids */
#define CTL_MACHDEP_NAMES { \
{ 0, 0 }, \
{ "console_device", CTLTYPE_STRUCT }, \
{ "booted_kernel", CTLTYPE_STRING }, \
{ "root_device", CTLTYPE_STRING }, \
}
#ifdef _KERNEL
#ifndef _LOCORE
/*
* Macros to find the CPU architecture we're on at run-time,
* or if possible, at compile-time.
@ -120,7 +138,6 @@ struct clockframe {
#endif
/*
* Preempt the current process if in interrupt from user mode,
* or after the current trap/syscall if in system mode.
@ -153,22 +170,7 @@ extern int mips_L2CacheMixed;
extern u_int32_t mips3_intr_cycle_count;
extern u_int32_t mips3_timer_delta;
#endif
#endif
/*
* CTL_MACHDEP definitions.
*/
#define CPU_CONSDEV 1 /* dev_t: console terminal device */
#define CPU_BOOTED_KERNEL 2 /* string: booted kernel name */
#define CPU_MAXID 3 /* number of valid machdep ids */
#define CTL_MACHDEP_NAMES { \
{ 0, 0 }, \
{ "console_device", CTLTYPE_STRUCT }, \
{ "booted_kernel", CTLTYPE_STRING }, \
}
#ifdef _KERNEL
#endif /* MIPS3 */
/*
* Misc prototypes.
@ -194,6 +196,7 @@ int badaddr __P((void *, size_t));
void cpu_identify __P((void));
void mips_vector_init __P((void));
#endif /* ! _LOCORE */
#endif /* _KERNEL */
#endif /* _CPU_H_ */

View File

@ -1,4 +1,6 @@
/* $NetBSD: mips_param.h,v 1.15 1999/12/04 21:20:48 ragge Exp $ */
/* $NetBSD: mips_param.h,v 1.16 2000/01/09 13:24:15 simonb Exp $ */
#include <machine/cpu.h>
/*
* On mips, UPAGES is fixed by sys/arch/mips/mips/locore code

View File

@ -1,4 +1,4 @@
/* $NetBSD: ibusvar.h,v 1.12 2000/01/08 01:02:37 simonb Exp $ */
/* $NetBSD: ibusvar.h,v 1.13 2000/01/09 13:24:16 simonb Exp $ */
#ifndef _IBUSVAR_H_
#define _IBUSVAR_H_ 1
@ -45,8 +45,6 @@ void ibus_intr_establish __P((struct device *, void * cookie, int level,
int (*handler)(void *), void *arg));
void ibus_intr_disestablish __P((struct device *, void *));
int badaddr __P((void *, u_int));
void dec_3100_intr_establish __P((struct device *, void *,
int, int (*)(void *), void *));
void dec_3100_intr_disestablish __P((struct device *, void *));

View File

@ -1,4 +1,4 @@
/* $NetBSD: autoconf.h,v 1.15 2000/01/08 01:02:38 simonb Exp $ */
/* $NetBSD: autoconf.h,v 1.16 2000/01/09 13:24:16 simonb Exp $ */
/*
* Copyright (c) 1994, 1995 Carnegie-Mellon University.
@ -37,5 +37,4 @@ struct mainbus_attach_args {
when attaching CPUs */
};
int badaddr __P((void *, u_int));
void makebootdev __P((char *));

View File

@ -1,4 +1,4 @@
/* $NetBSD: tc_machdep.h,v 1.14 2000/01/08 01:02:38 simonb Exp $ */
/* $NetBSD: tc_machdep.h,v 1.15 2000/01/09 13:24:16 simonb Exp $ */
/*
* Copyright (c) 1994, 1995 Carnegie-Mellon University.
@ -82,8 +82,6 @@ typedef int32_t tc_offset_t;
#define TC_BUS_MATCHNAME(ta, name) \
(strncmp( (ta)->ta_modname, (name), TC_ROM_LLEN+1) == 0)
int badaddr __P((void *, u_int));
#define TC_KV(x) ((tc_addr_t)MIPS_PHYS_TO_KSEG1(x))
#define TC_C(x) ((void *)(u_long)(x))

View File

@ -1,4 +1,4 @@
/* $NetBSD: mcclock_ioasic.c,v 1.11 2000/01/09 03:56:06 simonb Exp $ */
/* $NetBSD: mcclock_ioasic.c,v 1.12 2000/01/09 13:24:16 simonb Exp $ */
/*
* Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University.
@ -29,7 +29,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: mcclock_ioasic.c,v 1.11 2000/01/09 03:56:06 simonb Exp $");
__KERNEL_RCSID(0, "$NetBSD: mcclock_ioasic.c,v 1.12 2000/01/09 13:24:16 simonb Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@ -38,14 +38,13 @@ __KERNEL_RCSID(0, "$NetBSD: mcclock_ioasic.c,v 1.11 2000/01/09 03:56:06 simonb E
#include <dev/dec/clockvar.h>
#include <dev/dec/mcclockvar.h>
#include <dev/dec/mcclock_pad32.h>
#include <dev/ic/mc146818reg.h>
#include <dev/tc/tcreg.h>
#include <dev/tc/tcvar.h>
#include <dev/tc/ioasicvar.h>
#include <dev/dec/mcclock_pad32.h>
static int mcclock_ioasic_match __P((struct device *, struct cfdata *,
void *));
static void mcclock_ioasic_attach __P((struct device *, struct device *,