add missing protos.

This commit is contained in:
chs 2002-10-05 17:12:09 +00:00
parent a872fd9419
commit 038d3a7684
8 changed files with 38 additions and 16 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: sa11x0_com.c,v 1.10 2002/10/02 05:02:31 thorpej Exp $ */
/* $NetBSD: sa11x0_com.c,v 1.11 2002/10/05 17:12:10 chs Exp $ */
/*-
* Copyright (c) 1998, 1999, 2001 The NetBSD Foundation, Inc.
@ -132,7 +132,9 @@ static void sacom_attach_subr(struct sacom_softc *);
#if defined(DDB) || defined(KGDB)
static void sacom_enable_debugport(struct sacom_softc *);
#endif
int sacom_detach(struct device *, int);
void sacom_config(struct sacom_softc *);
int sacom_activate(struct device *, enum devact);
void sacom_shutdown(struct sacom_softc *);
static u_int cflag2cr0(tcflag_t);
int sacomparam(struct tty *, struct termios *);
@ -147,6 +149,11 @@ void tiocm_to_sacom(struct sacom_softc *, u_long, int);
int sacom_to_tiocm(struct sacom_softc *);
void sacom_iflush(struct sacom_softc *);
int sacominit(bus_space_tag_t, bus_addr_t, int, tcflag_t,
bus_space_handle_t *);
int sacom_is_console(bus_space_tag_t, bus_addr_t,
bus_space_handle_t *);
#ifdef __HAVE_GENERIC_SOFT_INTERRUPTS
void sacomsoft(void *);
#else

View File

@ -1,4 +1,4 @@
/* $NetBSD: sa11x0_irqhandler.c,v 1.2 2002/04/12 18:50:32 thorpej Exp $ */
/* $NetBSD: sa11x0_irqhandler.c,v 1.3 2002/10/05 17:12:10 chs Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2001 The NetBSD Foundation, Inc.
@ -108,11 +108,16 @@ u_int irqmasks[IPL_LEVELS];
u_int irqblock[NIRQS];
extern void set_spl_masks();
extern void set_spl_masks(void);
static int fakeintr(void *);
#ifdef DEBUG
static int dumpirqhandlers();
static int dumpirqhandlers(void);
#endif
void intr_calculatemasks(void);
const struct evcnt *sa11x0_intr_evcnt(sa11x0_chipset_tag_t, int);
void stray_irqhandler(void *);
/*
* Recalculate the interrupt masks from scratch.
* We could code special registry and deregistry versions of this function that
@ -120,7 +125,7 @@ static int dumpirqhandlers();
* happen very much anyway.
*/
void
intr_calculatemasks()
intr_calculatemasks(void)
{
int irq, level;
struct irqhandler *q;

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.hpcarm,v 1.13 2001/12/19 17:43:54 thorpej Exp $
# $NetBSD: Makefile.hpcarm,v 1.14 2002/10/05 17:12:09 chs Exp $
# Makefile for NetBSD
#
@ -34,7 +34,6 @@ GENASSYM_EXTRAS+= ${HPCARM}/hpcarm/genassym.cf
##
CPPFLAGS+= -Dhpcarm -Darm32
CWARNFLAGS+= -Wcomment
LOOSE_PROTOTYPES= yes
AFLAGS+= -x assembler-with-cpp
##

View File

@ -1,4 +1,4 @@
/* $NetBSD: j720ssp.c,v 1.14 2002/10/02 05:18:52 thorpej Exp $ */
/* $NetBSD: j720ssp.c,v 1.15 2002/10/05 17:12:09 chs Exp $ */
/*-
* Copyright (c) 1998, 2001 The NetBSD Foundation, Inc.
@ -153,6 +153,7 @@ int j720kbd_enable __P((void *, int));
void j720kbd_set_leds __P((void *, int));
int j720kbd_ioctl __P((void *, u_long, caddr_t, int, struct proc *));
int j720lcdpower(void *, int, long, void *);
int hpcarm_apm_getpower __P((struct apm_power_info *, void *));
CFATTACH_DECL(j720ssp, sizeof(struct j720ssp_softc),
@ -202,7 +203,7 @@ static int j720kbdcons_initstate = 0;
#ifdef DEBUG
int j720sspwaitcnt;
int j720sspwaittime;
extern int gettick();
extern int gettick(void);
#endif
#define BIT_INVERT(x) do { \

View File

@ -1,4 +1,4 @@
/* $NetBSD: hpc_machdep.c,v 1.54 2002/08/24 02:16:34 thorpej Exp $ */
/* $NetBSD: hpc_machdep.c,v 1.55 2002/10/05 17:12:09 chs Exp $ */
/*
* Copyright (c) 1994-1998 Mark Brinicombe.
@ -201,10 +201,9 @@ static void fakecninit();
void dumppages(char *, int);
#endif
extern int db_trapper();
u_int initarm(int, char **, struct bootinfo *);
extern int db_trapper(u_int, u_int, trapframe_t *, int);
extern void dump_spl_masks __P((void));
extern void dumpsys __P((void));
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: intr.c,v 1.5 2001/11/27 01:12:55 thorpej Exp $ */
/* $NetBSD: intr.c,v 1.6 2002/10/05 17:12:10 chs Exp $ */
/*
* Copyright (c) 1994-1998 Mark Brinicombe.
@ -78,6 +78,10 @@ extern void sacomsoft __P((void));
/* Eventually these will become macros */
void setsoftintr(u_int);
void clearsoftintr(u_int);
void dosoftints(void);
void
setsoftintr(intrmask)
u_int intrmask;

View File

@ -1,4 +1,4 @@
/* $NetBSD: softintr.c,v 1.6 2001/11/27 01:12:55 thorpej Exp $ */
/* $NetBSD: softintr.c,v 1.7 2002/10/05 17:12:10 chs Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -47,6 +47,7 @@
extern int ipl_to_spl(int);
void softintr_free(void *);
void softintr_dispatch(int);
struct softintr_handler {
struct softintr_handler *sh_vlink; /* vertical link */

View File

@ -1,4 +1,4 @@
/* $NetBSD: stubs.c,v 1.12 2002/09/27 15:36:04 provos Exp $ */
/* $NetBSD: stubs.c,v 1.13 2002/10/05 17:12:10 chs Exp $ */
/*
* Copyright (c) 1994-1998 Mark Brinicombe.
@ -52,6 +52,10 @@
#include <machine/bootconfig.h>
#include <machine/pcb.h>
void dumpsys(void);
void set_spl_masks(void);
int ipl_to_spl(int);
extern dev_t dumpdev;
extern BootConfig bootconfig;
@ -276,6 +280,8 @@ ipl_to_spl(ipl)
}
#ifdef DIAGNOSTIC
void dump_spl_masks(void);
void
dump_spl_masks()
{