Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hpcmips ANSIfy, KNF.



details:   https://anonhg.NetBSD.org/src/rev/6ba17ea937ee
branches:  trunk
changeset: 515056:6ba17ea937ee
user:      uch <uch%NetBSD.org@localhost>
date:      Sun Sep 16 05:32:18 2001 +0000

description:
ANSIfy, KNF.

diffstat:

 sys/arch/hpcmips/dev/apm/apmdev.c      |  103 +---
 sys/arch/hpcmips/dev/apm/apmvar.h      |   34 +-
 sys/arch/hpcmips/dev/hpcapm.c          |   66 +--
 sys/arch/hpcmips/dev/ite8181.c         |  411 ++++++++++----------
 sys/arch/hpcmips/dev/ite8181var.h      |    6 +-
 sys/arch/hpcmips/dev/mq200.c           |  193 ++++-----
 sys/arch/hpcmips/dev/mq200var.h        |    6 +-
 sys/arch/hpcmips/hpcmips/bus_space.c   |   29 +-
 sys/arch/hpcmips/include/autoconf.h    |   45 +-
 sys/arch/hpcmips/include/isa_machdep.h |   45 +-
 sys/arch/hpcmips/isa/isa_machdep.c     |  204 +++++-----
 sys/arch/hpcmips/isa/plumisa_machdep.c |  107 ++---
 sys/arch/hpcmips/vr/bcu_vrip.c         |  172 ++++----
 sys/arch/hpcmips/vr/bcuvar.h           |   12 +-
 sys/arch/hpcmips/vr/cmu.c              |   35 +-
 sys/arch/hpcmips/vr/cmuvar.h           |   48 +-
 sys/arch/hpcmips/vr/com_vrip.c         |   39 +-
 sys/arch/hpcmips/vr/com_vripvar.h      |    4 +-
 sys/arch/hpcmips/vr/ite8181_vrip.c     |   17 +-
 sys/arch/hpcmips/vr/mq200_vrip.c       |   17 +-
 sys/arch/hpcmips/vr/rtc.c              |  107 ++---
 sys/arch/hpcmips/vr/vr.c               |   72 +--
 sys/arch/hpcmips/vr/vr.h               |    6 +-
 sys/arch/hpcmips/vr/vrc4172pwm.c       |  236 +++++------
 sys/arch/hpcmips/vr/vrdsu.c            |   39 +-
 sys/arch/hpcmips/vr/vrdsuvar.h         |    4 +-
 sys/arch/hpcmips/vr/vrgiu.c            |  133 ++----
 sys/arch/hpcmips/vr/vrgiuvar.h         |    6 +-
 sys/arch/hpcmips/vr/vrip.c             |  144 +++----
 sys/arch/hpcmips/vr/vripvar.h          |   23 +-
 sys/arch/hpcmips/vr/vrkiu.c            |  211 ++++------
 sys/arch/hpcmips/vr/vrkiuvar.h         |    6 +-
 sys/arch/hpcmips/vr/vrled.c            |   95 +---
 sys/arch/hpcmips/vr/vrledvar.h         |    4 +-
 sys/arch/hpcmips/vr/vrpiu.c            |  635 +++++++++++++++-----------------
 sys/arch/hpcmips/vr/vrpmu.c            |   81 +--
 36 files changed, 1545 insertions(+), 1850 deletions(-)

diffs (truncated from 6810 to 300 lines):

diff -r f5f0921e9f7e -r 6ba17ea937ee sys/arch/hpcmips/dev/apm/apmdev.c
--- a/sys/arch/hpcmips/dev/apm/apmdev.c Sun Sep 16 04:25:39 2001 +0000
+++ b/sys/arch/hpcmips/dev/apm/apmdev.c Sun Sep 16 05:32:18 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: apmdev.c,v 1.5 2001/01/24 09:29:25 sato Exp $ */
+/*     $NetBSD: apmdev.c,v 1.6 2001/09/16 05:32:19 uch Exp $ */
 
 /*-
  * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -127,24 +127,24 @@
 #define        APM_UNLOCK(apmsc)                                               \
        (void) lockmgr(&(apmsc)->sc_lock, LK_RELEASE, NULL)
 
-static void    apmattach __P((struct device *, struct device *, void *));
-static int     apmmatch __P((struct device *, struct cfdata *, void *));
+static void    apmattach(struct device *, struct device *, void *);
+static int     apmmatch(struct device *, struct cfdata *, void *);
 
-static void    apm_event_handle __P((struct apm_softc *, u_int, u_int));
-static void    apm_periodic_check __P((struct apm_softc *));
-static void    apm_create_thread __P((void *));
-static void    apm_thread __P((void *));
-static void    apm_perror __P((const char *, int, ...))
+static void    apm_event_handle(struct apm_softc *, u_int, u_int);
+static void    apm_periodic_check(struct apm_softc *);
+static void    apm_create_thread(void *);
+static void    apm_thread(void *);
+static void    apm_perror(const char *, int, ...)
                    __attribute__((__format__(__printf__,1,3)));
 #ifdef APM_POWER_PRINT
-static void    apm_power_print __P((struct apm_softc *, struct apm_power_info *));
+static void    apm_power_print(struct apm_softc *, struct apm_power_info *);
 #endif
-static int     apm_record_event __P((struct apm_softc *, u_int));
-static void    apm_set_ver __P((struct apm_softc *, u_long));
-static void    apm_standby __P((struct apm_softc *));
-static const char *apm_strerror __P((int));
-static void    apm_suspend __P((struct apm_softc *));
-static void    apm_resume __P((struct apm_softc *, u_int, u_int));
+static int     apm_record_event(struct apm_softc *, u_int);
+static void    apm_set_ver(struct apm_softc *, u_long);
+static void    apm_standby(struct apm_softc *);
+static const char *apm_strerror(int);
+static void    apm_suspend(struct apm_softc *);
+static void    apm_resume(struct apm_softc *, u_int, u_int);
 
 cdev_decl(apmdev);
 
@@ -192,8 +192,7 @@
 static int apm_spl;            /* saved spl while suspended */
 
 static const char *
-apm_strerror(code)
-       int code;
+apm_strerror(int code)
 {
        switch (code) {
        case APM_ERR_PM_DISABLED:
@@ -243,9 +242,7 @@
 
 #ifdef APM_POWER_PRINT
 static void
-apm_power_print(sc, pi)
-       struct apm_softc *sc;
-       struct apm_power_info *pi;
+apm_power_print(struct apm_softc *sc, struct apm_power_info *pi)
 {
 
        if (pi->battery_life != APM_BATT_LIFE_UNKNOWN) {
@@ -312,8 +309,7 @@
 #endif
 
 static void
-apm_suspend(sc)
-       struct apm_softc *sc;
+apm_suspend(struct apm_softc *sc)
 {
 
        if (sc->sc_power_state == PWR_SUSPEND) {
@@ -337,8 +333,7 @@
 }
 
 static void
-apm_standby(sc)
-       struct apm_softc *sc;
+apm_standby(struct apm_softc *sc)
 {
 
        if (sc->sc_power_state == PWR_STANDBY) {
@@ -361,9 +356,7 @@
 }
 
 static void
-apm_resume(sc, event_type, event_info)
-       struct apm_softc *sc;
-       u_int event_type, event_info;
+apm_resume(struct apm_softc *sc, u_int event_type, u_int event_info)
 {
 
        if (sc->sc_power_state == PWR_RESUME) {
@@ -397,9 +390,7 @@
  * return 1 if the kernel driver should do so.
  */
 static int
-apm_record_event(sc, event_type)
-       struct apm_softc *sc;
-       u_int event_type;
+apm_record_event(struct apm_softc *sc, u_int event_type)
 {
        struct apm_event_info *evp;
 
@@ -418,9 +409,7 @@
 }
 
 static void
-apm_event_handle(sc, event_code, event_info)
-       struct apm_softc *sc;
-       u_int event_code, event_info;
+apm_event_handle(struct apm_softc *sc, u_int event_code, u_int event_info)
 {
        int error;
        char *code;
@@ -571,8 +560,7 @@
 }
 
 static void
-apm_periodic_check(sc)
-       struct apm_softc *sc;
+apm_periodic_check(struct apm_softc *sc)
 {
        int error;
        u_int event_code, event_info;
@@ -605,9 +593,7 @@
 }
 
 static void
-apm_set_ver(self, detail)
-       struct apm_softc *self;
-       u_long detail;
+apm_set_ver(struct apm_softc *self, u_long detail)
 {
 
        if (apm_v12_enabled &&
@@ -647,10 +633,7 @@
 }
 
 static int
-apmmatch(parent, match, aux)
-       struct device *parent;
-       struct cfdata *match;
-       void *aux;
+apmmatch(struct device *parent, struct cfdata *match, void *aux)
 {
 
        /* There can be only one! */
@@ -661,9 +644,7 @@
 }
 
 static void
-apmattach(parent, self, aux)
-       struct device *parent, *self;
-       void *aux;
+apmattach(struct device *parent, struct device *self, void *aux)
 {
        struct apm_softc *sc = (void *)self;
        struct apmdev_attach_args *aaa = aux;
@@ -730,9 +711,7 @@
  * Print function (for parent devices).
  */
 int
-apmprint(aux, pnp)
-       void *aux;
-       const char *pnp;
+apmprint(void *aux, const char *pnp)
 {
        if (pnp)
                printf("apm at %s", pnp);
@@ -741,8 +720,7 @@
 }
 
 void
-apm_create_thread(arg)
-       void *arg;
+apm_create_thread(void *arg)
 {
        struct apm_softc *sc = arg;
 
@@ -759,8 +737,7 @@
 }
 
 void
-apm_thread(arg)
-       void *arg;
+apm_thread(void *arg)
 {
        struct apm_softc *apmsc = arg;
 
@@ -776,10 +753,7 @@
 }
 
 int
-apmdevopen(dev, flag, mode, p)
-       dev_t dev;
-       int flag, mode;
-       struct proc *p;
+apmdevopen(dev_t dev, int flag, int mode, struct proc *p)
 {
        int unit = APMUNIT(dev);
        int ctl = APMDEV(dev);
@@ -828,10 +802,7 @@
 }
 
 int
-apmdevclose(dev, flag, mode, p)
-       dev_t dev;
-       int flag, mode;
-       struct proc *p;
+apmdevclose(dev_t dev, int flag, int mode, struct proc *p)
 {
        struct apm_softc *sc = apmdev_cd.cd_devs[APMUNIT(dev)];
        int ctl = APMDEV(dev);
@@ -857,12 +828,7 @@
 }
 
 int
-apmdevioctl(dev, cmd, data, flag, p)
-       dev_t dev;
-       u_long cmd;
-       caddr_t data;
-       int flag;
-       struct proc *p;
+apmdevioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p)
 {
        struct apm_softc *sc = apmdev_cd.cd_devs[APMUNIT(dev)];
        struct apm_power_info *powerp;
@@ -924,10 +890,7 @@
 }
 
 int
-apmdevpoll(dev, events, p)
-       dev_t dev;
-       int events;
-       struct proc *p;
+apmdevpoll(dev_t dev, int events, struct proc *p)
 {
        struct apm_softc *sc = apmdev_cd.cd_devs[APMUNIT(dev)];
        int revents = 0;
diff -r f5f0921e9f7e -r 6ba17ea937ee sys/arch/hpcmips/dev/apm/apmvar.h
--- a/sys/arch/hpcmips/dev/apm/apmvar.h Sun Sep 16 04:25:39 2001 +0000
+++ b/sys/arch/hpcmips/dev/apm/apmvar.h Sun Sep 16 05:32:18 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: apmvar.h,v 1.1 2000/07/30 04:29:22 takemura Exp $      */
+/*     $NetBSD: apmvar.h,v 1.2 2001/09/16 05:32:19 uch Exp $   */
 /*-
  * Copyright (c) 1995 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -309,24 +309,24 @@
 
 extern struct apm_connect_info apminfo;        /* in locore */
 extern int apmpresent;
-extern int apmcall __P((int function, struct bioscallregs *regs));
-extern void bioscall __P((int function, struct bioscallregs *regs));
-extern void apm_cpu_busy __P((void));
-extern void apm_cpu_idle __P((void));
-extern void apminit __P((void));
-int apm_set_powstate __P((u_int devid, u_int powstate));
-extern int apm_busprobe __P((void));
-extern int apmprint __P((void *, const char *));
+extern int apmcall(int, struct bioscallregs *);
+extern void bioscall(int, struct bioscallregs *);
+extern void apm_cpu_busy(void);
+extern void apm_cpu_idle(void);
+extern void apminit(void);
+int apm_set_powstate(u_int, u_int);
+extern int apm_busprobe(void);
+extern int apmprint(void *, const char *);
 
 struct apm_accessops {
-       void    (*disconnect) __P((void *));
-       void    (*enable) __P((void *, int));
-       int     (*set_powstate) __P((void *, u_int, u_int));
-       int     (*get_powstat) __P((void *, struct apm_power_info *));
-       int     (*get_event) __P((void *, u_int *, u_int *));
-       void    (*cpu_busy) __P((void *));
-       void    (*cpu_idle) __P((void *));
-       void    (*get_capabilities) __P((void *, u_int *, u_int *));
+       void    (*disconnect)(void *);
+       void    (*enable)(void *, int);
+       int     (*set_powstate)(void *, u_int, u_int);
+       int     (*get_powstat)(void *, struct apm_power_info *);
+       int     (*get_event)(void *, u_int *, u_int *);
+       void    (*cpu_busy)(void *);
+       void    (*cpu_idle)(void *);
+       void    (*get_capabilities)(void *, u_int *, u_int *);
 };
 
 struct apmdev_attach_args {
diff -r f5f0921e9f7e -r 6ba17ea937ee sys/arch/hpcmips/dev/hpcapm.c
--- a/sys/arch/hpcmips/dev/hpcapm.c     Sun Sep 16 04:25:39 2001 +0000
+++ b/sys/arch/hpcmips/dev/hpcapm.c     Sun Sep 16 05:32:18 2001 +0000



Home | Main Index | Thread Index | Old Index