Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/next68k/dev de-__P, remove register, ansify.



details:   https://anonhg.NetBSD.org/src/rev/305d787634b2
branches:  trunk
changeset: 572702:305d787634b2
user:      chs <chs%NetBSD.org@localhost>
date:      Mon Jan 10 17:01:55 2005 +0000

description:
de-__P, remove register, ansify.

diffstat:

 sys/arch/next68k/dev/zs_cons.h |  15 +++++++--------
 sys/arch/next68k/dev/zs_kgdb.c |  37 +++++++++++++------------------------
 2 files changed, 20 insertions(+), 32 deletions(-)

diffs (139 lines):

diff -r 87f2d3a183e7 -r 305d787634b2 sys/arch/next68k/dev/zs_cons.h
--- a/sys/arch/next68k/dev/zs_cons.h    Mon Jan 10 17:01:22 2005 +0000
+++ b/sys/arch/next68k/dev/zs_cons.h    Mon Jan 10 17:01:55 2005 +0000
@@ -1,19 +1,18 @@
-/*     $NetBSD: zs_cons.h,v 1.1 1999/03/27 02:59:41 dbj Exp $  */
+/*     $NetBSD: zs_cons.h,v 1.2 2005/01/10 17:01:55 chs Exp $  */
 
 struct consdev;
 struct zs_chanstate;
 
 extern void *zs_conschan;
 
-extern void nullcnprobe __P((struct consdev *));
+extern void nullcnprobe(struct consdev *);
 
-extern int  zs_getc __P((void *arg));
-extern void zs_putc __P((void *arg, int c));
+extern int  zs_getc(void *);
+extern void zs_putc(void *, int);
 
-struct zschan *
-zs_get_chan_addr __P((int zsc_unit, int channel));
+struct zschan *zs_get_chan_addr(int, int);
 
 #ifdef KGDB
-void zs_kgdb_init __P((void));
-void zskgdb __P((struct zs_chanstate *));
+void zs_kgdb_init(void);
+void zskgdb(struct zs_chanstate *);
 #endif
diff -r 87f2d3a183e7 -r 305d787634b2 sys/arch/next68k/dev/zs_kgdb.c
--- a/sys/arch/next68k/dev/zs_kgdb.c    Mon Jan 10 17:01:22 2005 +0000
+++ b/sys/arch/next68k/dev/zs_kgdb.c    Mon Jan 10 17:01:55 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: zs_kgdb.c,v 1.4 2003/07/15 02:59:32 lukem Exp $        */
+/*     $NetBSD: zs_kgdb.c,v 1.5 2005/01/10 17:01:55 chs Exp $  */
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -48,7 +48,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: zs_kgdb.c,v 1.4 2003/07/15 02:59:32 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: zs_kgdb.c,v 1.5 2005/01/10 17:01:55 chs Exp $");
 
 #include "opt_kgdb.h"
 
@@ -107,10 +107,7 @@
  * This replaces "zs_reset()" in the sparc driver.
  */
 static void
-zs_setparam(cs, iena, rate)
-       struct zs_chanstate *cs;
-       int iena;
-       int rate;
+zs_setparam(struct zs_chanstate *cs, int iena, int rate)
 {
        int s, tconst;
 
@@ -137,7 +134,7 @@
  * Called after cninit(), so printf() etc. works.
  */
 void
-zs_kgdb_init()
+zs_kgdb_init(void)
 {
        struct zs_chanstate cs;
        volatile struct zschan *zc;
@@ -184,9 +181,7 @@
  * Set the speed to kgdb_rate, CS8, etc.
  */
 int
-zs_check_kgdb(cs, dev)
-       struct zs_chanstate *cs;
-       int dev;
+zs_check_kgdb(struct zs_chanstate *cs, int dev)
 {
 
        if (dev != kgdb_dev)
@@ -209,8 +204,7 @@
  * should time out after a few seconds to avoid hanging on spurious input.
  */
 void
-zskgdb(cs)
-       struct zs_chanstate *cs;
+zskgdb(struct zs_chanstate *cs)
 {
        int unit = minor(kgdb_dev);
 
@@ -232,10 +226,9 @@
 int kgdb_input_lost;
 
 static void
-zs_kgdb_rxint(cs)
-       struct zs_chanstate *cs;
+zs_kgdb_rxint(struct zs_chanstate *cs)
 {
-       register u_char c, rr1;
+       u_char c, rr1;
 
        /*
         * First read the status, because reading the received char
@@ -257,21 +250,18 @@
 }
 
 static void
-zs_kgdb_txint(cs)
-       register struct zs_chanstate *cs;
+zs_kgdb_txint(struct zs_chanstate *cs)
 {
-       register int rr0;
+       int rr0;
 
        rr0 = zs_read_csr(cs);
        zs_write_csr(cs, ZSWR0_RESET_TXINT);
 }
 
 static void
-zs_kgdb_stint(cs, force)
-       register struct zs_chanstate *cs;
-       int force;
+zs_kgdb_stint(struct zs_chanstate *cs, int force)
 {
-       register int rr0;
+       int rr0;
 
        rr0 = zs_read_csr(cs);
        zs_write_csr(cs, ZSWR0_RESET_STATUS);
@@ -286,8 +276,7 @@
 }
 
 static void
-zs_kgdb_softint(cs)
-       struct zs_chanstate *cs;
+zs_kgdb_softint(struct zs_chanstate *cs)
 {
        printf("zs_kgdb_softint?\n");
 }



Home | Main Index | Thread Index | Old Index