Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch add missing protos.
details: https://anonhg.NetBSD.org/src/rev/6d3efb503e3f
branches: trunk
changeset: 537777:6d3efb503e3f
user: chs <chs%NetBSD.org@localhost>
date: Sat Oct 05 17:12:09 2002 +0000
description:
add missing protos.
diffstat:
sys/arch/arm/sa11x0/sa11x0_com.c | 9 ++++++++-
sys/arch/arm/sa11x0/sa11x0_irqhandler.c | 13 +++++++++----
sys/arch/hpcarm/conf/Makefile.hpcarm | 3 +--
sys/arch/hpcarm/dev/j720ssp.c | 5 +++--
sys/arch/hpcarm/hpcarm/hpc_machdep.c | 7 +++----
sys/arch/hpcarm/hpcarm/intr.c | 6 +++++-
sys/arch/hpcarm/hpcarm/softintr.c | 3 ++-
sys/arch/hpcarm/hpcarm/stubs.c | 8 +++++++-
8 files changed, 38 insertions(+), 16 deletions(-)
diffs (199 lines):
diff -r 62bd5006e1bf -r 6d3efb503e3f sys/arch/arm/sa11x0/sa11x0_com.c
--- a/sys/arch/arm/sa11x0/sa11x0_com.c Sat Oct 05 17:12:07 2002 +0000
+++ b/sys/arch/arm/sa11x0/sa11x0_com.c Sat Oct 05 17:12:09 2002 +0000
@@ -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 @@
#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 @@
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
diff -r 62bd5006e1bf -r 6d3efb503e3f sys/arch/arm/sa11x0/sa11x0_irqhandler.c
--- a/sys/arch/arm/sa11x0/sa11x0_irqhandler.c Sat Oct 05 17:12:07 2002 +0000
+++ b/sys/arch/arm/sa11x0/sa11x0_irqhandler.c Sat Oct 05 17:12:09 2002 +0000
@@ -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 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 @@
* happen very much anyway.
*/
void
-intr_calculatemasks()
+intr_calculatemasks(void)
{
int irq, level;
struct irqhandler *q;
diff -r 62bd5006e1bf -r 6d3efb503e3f sys/arch/hpcarm/conf/Makefile.hpcarm
--- a/sys/arch/hpcarm/conf/Makefile.hpcarm Sat Oct 05 17:12:07 2002 +0000
+++ b/sys/arch/hpcarm/conf/Makefile.hpcarm Sat Oct 05 17:12:09 2002 +0000
@@ -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 @@
##
CPPFLAGS+= -Dhpcarm -Darm32
CWARNFLAGS+= -Wcomment
-LOOSE_PROTOTYPES= yes
AFLAGS+= -x assembler-with-cpp
##
diff -r 62bd5006e1bf -r 6d3efb503e3f sys/arch/hpcarm/dev/j720ssp.c
--- a/sys/arch/hpcarm/dev/j720ssp.c Sat Oct 05 17:12:07 2002 +0000
+++ b/sys/arch/hpcarm/dev/j720ssp.c Sat Oct 05 17:12:09 2002 +0000
@@ -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 @@
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 @@
#ifdef DEBUG
int j720sspwaitcnt;
int j720sspwaittime;
-extern int gettick();
+extern int gettick(void);
#endif
#define BIT_INVERT(x) do { \
diff -r 62bd5006e1bf -r 6d3efb503e3f sys/arch/hpcarm/hpcarm/hpc_machdep.c
--- a/sys/arch/hpcarm/hpcarm/hpc_machdep.c Sat Oct 05 17:12:07 2002 +0000
+++ b/sys/arch/hpcarm/hpcarm/hpc_machdep.c Sat Oct 05 17:12:09 2002 +0000
@@ -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 @@
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));
/*
diff -r 62bd5006e1bf -r 6d3efb503e3f sys/arch/hpcarm/hpcarm/intr.c
--- a/sys/arch/hpcarm/hpcarm/intr.c Sat Oct 05 17:12:07 2002 +0000
+++ b/sys/arch/hpcarm/hpcarm/intr.c Sat Oct 05 17:12:09 2002 +0000
@@ -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 @@
/* Eventually these will become macros */
+void setsoftintr(u_int);
+void clearsoftintr(u_int);
+void dosoftints(void);
+
void
setsoftintr(intrmask)
u_int intrmask;
diff -r 62bd5006e1bf -r 6d3efb503e3f sys/arch/hpcarm/hpcarm/softintr.c
--- a/sys/arch/hpcarm/hpcarm/softintr.c Sat Oct 05 17:12:07 2002 +0000
+++ b/sys/arch/hpcarm/hpcarm/softintr.c Sat Oct 05 17:12:09 2002 +0000
@@ -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 */
diff -r 62bd5006e1bf -r 6d3efb503e3f sys/arch/hpcarm/hpcarm/stubs.c
--- a/sys/arch/hpcarm/hpcarm/stubs.c Sat Oct 05 17:12:07 2002 +0000
+++ b/sys/arch/hpcarm/hpcarm/stubs.c Sat Oct 05 17:12:09 2002 +0000
@@ -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 @@
}
#ifdef DIAGNOSTIC
+void dump_spl_masks(void);
+
void
dump_spl_masks()
{
Home |
Main Index |
Thread Index |
Old Index