Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/sa11x0 Use ANSI function decls.



details:   https://anonhg.NetBSD.org/src/rev/79afb38b2985
branches:  trunk
changeset: 588815:79afb38b2985
user:      peter <peter%NetBSD.org@localhost>
date:      Sat Mar 04 17:22:06 2006 +0000

description:
Use ANSI function decls.

diffstat:

 sys/arch/arm/sa11x0/sa1111.c            |   39 ++-----
 sys/arch/arm/sa11x0/sa11x0.c            |   25 +---
 sys/arch/arm/sa11x0/sa11x0_com.c        |  171 ++++++++-----------------------
 sys/arch/arm/sa11x0/sa11x0_io.c         |   59 ++--------
 sys/arch/arm/sa11x0/sa11x0_irqhandler.c |    8 +-
 sys/arch/arm/sa11x0/sa11x0_ost.c        |   38 ++----
 sys/arch/arm/sa11x0/sa11x1_pcic.c       |   21 +--
 sys/arch/arm/sa11x0/sa11xx_pcic.c       |   89 ++++-----------
 8 files changed, 129 insertions(+), 321 deletions(-)

diffs (truncated from 1202 to 300 lines):

diff -r 7992d3921a1f -r 79afb38b2985 sys/arch/arm/sa11x0/sa1111.c
--- a/sys/arch/arm/sa11x0/sa1111.c      Sat Mar 04 16:54:04 2006 +0000
+++ b/sys/arch/arm/sa11x0/sa1111.c      Sat Mar 04 17:22:06 2006 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: sa1111.c,v 1.15 2006/01/03 23:14:23 peter Exp $       */
+/*      $NetBSD: sa1111.c,v 1.16 2006/03/04 17:22:06 peter Exp $       */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sa1111.c,v 1.15 2006/01/03 23:14:23 peter Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sa1111.c,v 1.16 2006/03/04 17:22:06 peter Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -81,10 +81,7 @@
 #endif
 
 int
-sacc_probe(parent, match, aux)
-       struct device *parent;
-       struct cfdata *match;
-       void *aux;
+sacc_probe(struct device *parent, struct cfdata *match, void *aux)
 {
        struct sa11x0_attach_args *sa = aux;
        bus_space_handle_t ioh;
@@ -104,11 +101,8 @@
 
 
 int
-sa1111_search(parent, cf, ldesc, aux)
-       struct device *parent;
-       struct cfdata *cf;
-       const int *ldesc;
-       void *aux;
+sa1111_search(struct device *parent, struct cfdata *cf, const int *ldesc,
+    void *aux)
 {
        struct sa1111_attach_args aa;
 
@@ -127,20 +121,15 @@
 }
 
 static int
-sa1111_print(aux, name)
-       void *aux;
-       const char *name;
+sa1111_print(void *aux, const char *name)
 {
        return (UNCONF);
 }
 
 
 void *
-sacc_intr_establish(ic, irq, type, level, ih_fun, ih_arg)
-       sacc_chipset_tag_t *ic;
-       int irq, type, level;
-       int (*ih_fun)(void *);
-       void *ih_arg;
+sacc_intr_establish(sacc_chipset_tag_t *ic, int irq, int type, int level,
+    int (*ih_fun)(void *), void *ih_arg)
 {
        int s;
        struct sacc_softc *sc = (struct sacc_softc *)ic;
@@ -194,9 +183,7 @@
 }
 
 void
-sacc_intr_disestablish(ic, arg)
-       sacc_chipset_tag_t *ic;
-       void *arg;
+sacc_intr_disestablish(sacc_chipset_tag_t *ic, void *arg)
 {
        int irq, s;
        struct sacc_softc *sc = (struct sacc_softc *)ic;
@@ -227,10 +214,7 @@
 }
 
 void
-sacc_intr_setpolarity(ic, irq, type)
-       sacc_chipset_tag_t *ic;
-       int irq;
-       int type;
+sacc_intr_setpolarity(sacc_chipset_tag_t *ic, int irq, int type)
 {
        struct sacc_softc *sc = (struct sacc_softc *)ic;
        int s;
@@ -256,8 +240,7 @@
 }
 
 void
-sacc_intr_calculatemasks(sc)
-       struct sacc_softc *sc;
+sacc_intr_calculatemasks(struct sacc_softc *sc)
 {
        int irq;
 
diff -r 7992d3921a1f -r 79afb38b2985 sys/arch/arm/sa11x0/sa11x0.c
--- a/sys/arch/arm/sa11x0/sa11x0.c      Sat Mar 04 16:54:04 2006 +0000
+++ b/sys/arch/arm/sa11x0/sa11x0.c      Sat Mar 04 17:22:06 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sa11x0.c,v 1.18 2006/01/03 23:14:23 peter Exp $        */
+/*     $NetBSD: sa11x0.c,v 1.19 2006/03/04 17:22:06 peter Exp $        */
 
 /*-
  * Copyright (c) 2001, The NetBSD Foundation, Inc.  All rights reserved.
@@ -57,7 +57,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sa11x0.c,v 1.18 2006/01/03 23:14:23 peter Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sa11x0.c,v 1.19 2006/03/04 17:22:06 peter Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -99,9 +99,7 @@
  */
 
 static int
-sa11x0_print(aux, name)
-       void *aux;
-       const char *name;
+sa11x0_print(void *aux, const char *name)
 {
        struct sa11x0_attach_args *sa = (struct sa11x0_attach_args*)aux;
 
@@ -118,19 +116,13 @@
 }
 
 int
-sa11x0_match(parent, match, aux)
-       struct device *parent;
-       struct cfdata *match;
-       void *aux;
+sa11x0_match(struct device *parent, struct cfdata *match, void *aux)
 {
        return 1;
 }
 
 void
-sa11x0_attach(parent, self, aux)
-       struct device *parent;
-       struct device *self;
-       void *aux;
+sa11x0_attach(struct device *parent, struct device *self, void *aux)
 {
        struct sa11x0_softc *sc = (struct sa11x0_softc*)self;
 
@@ -199,11 +191,8 @@
 }
 
 int
-sa11x0_search(parent, cf, ldesc, aux)
-       struct device *parent;
-       struct cfdata *cf;
-       const int *ldesc;
-       void *aux;
+sa11x0_search(struct device *parent, struct cfdata *cf, const int *ldesc,
+    void *aux)
 {
        struct sa11x0_softc *sc = (struct sa11x0_softc *)parent;
        struct sa11x0_attach_args sa;
diff -r 7992d3921a1f -r 79afb38b2985 sys/arch/arm/sa11x0/sa11x0_com.c
--- a/sys/arch/arm/sa11x0/sa11x0_com.c  Sat Mar 04 16:54:04 2006 +0000
+++ b/sys/arch/arm/sa11x0/sa11x0_com.c  Sat Mar 04 17:22:06 2006 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: sa11x0_com.c,v 1.27 2006/03/04 13:54:08 peter Exp $        */
+/*      $NetBSD: sa11x0_com.c,v 1.28 2006/03/04 17:22:06 peter Exp $        */
 
 /*-
  * Copyright (c) 1998, 1999, 2001 The NetBSD Foundation, Inc.
@@ -71,7 +71,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sa11x0_com.c,v 1.27 2006/03/04 13:54:08 peter Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sa11x0_com.c,v 1.28 2006/03/04 17:22:06 peter Exp $");
 
 #include "opt_com.h"
 #include "opt_ddb.h"
@@ -234,19 +234,13 @@
 #endif
 
 static int
-sacom_match(parent, match, aux)
-       struct device *parent;
-       struct cfdata *match;
-       void *aux;
+sacom_match(struct device *parent, struct cfdata *match, void *aux)
 {
        return (1);
 }
 
 void
-sacom_attach(parent, self, aux)
-       struct device *parent;
-       struct device *self;
-       void *aux;
+sacom_attach(struct device *parent, struct device *self, void *aux)
 {
        struct sacom_softc *sc = (struct sacom_softc*)self;
        struct sa11x0_attach_args *sa = aux;
@@ -297,8 +291,7 @@
 }
 
 void
-sacom_attach_subr(sc)
-       struct sacom_softc *sc;
+sacom_attach_subr(struct sacom_softc *sc)
 {
        bus_addr_t iobase = sc->sc_baseaddr;
        bus_space_tag_t iot = sc->sc_iot;
@@ -370,9 +363,7 @@
 
 /* This is necessary when dynamically changing SAIP configuration. */
 int
-sacom_detach(self, flags)
-       struct device *self;
-       int flags;
+sacom_detach(struct device *self, int flags)
 {
        struct sacom_softc *sc = (struct sacom_softc *)self;
        int maj, mn;
@@ -408,8 +399,7 @@
 }
 
 void
-sacom_config(sc)
-       struct sacom_softc *sc;
+sacom_config(struct sacom_softc *sc)
 {
        bus_space_tag_t iot = sc->sc_iot;
        bus_space_handle_t ioh = sc->sc_ioh;
@@ -426,8 +416,7 @@
 
 #ifdef DDB
 static void
-sacom_enable_debugport(sc)
-       struct sacom_softc *sc;
+sacom_enable_debugport(struct sacom_softc *sc)
 {
        bus_space_tag_t iot = sc->sc_iot;
        bus_space_handle_t ioh = sc->sc_ioh;
@@ -443,9 +432,7 @@
 #endif
 
 int
-sacom_activate(self, act)
-       struct device *self;
-       enum devact act;
+sacom_activate(struct device *self, enum devact act)
 {
        struct sacom_softc *sc = (struct sacom_softc *)self;
        int s, rv = 0;
@@ -476,8 +463,7 @@
 }
 
 void
-sacom_shutdown(sc)
-       struct sacom_softc *sc;
+sacom_shutdown(struct sacom_softc *sc)
 {
        struct tty *tp = sc->sc_tty;
        int s;
@@ -520,10 +506,7 @@
 }
 
 int
-sacomopen(dev, flag, mode, l)
-       dev_t dev;
-       int flag, mode;
-       struct lwp *l;
+sacomopen(dev_t dev, int flag, int mode, struct lwp *l)
 {
        struct sacom_softc *sc;
        struct tty *tp;
@@ -660,10 +643,7 @@
 }
  
 int
-sacomclose(dev, flag, mode, l)
-       dev_t dev;
-       int flag, mode;
-       struct lwp *l;
+sacomclose(dev_t dev, int flag, int mode, struct lwp *l)
 {
        struct sacom_softc *sc = device_lookup(&sacom_cd, COMUNIT(dev));
        struct tty *tp = sc->sc_tty;
@@ -691,10 +671,7 @@
 }
  
 int
-sacomread(dev, uio, flag)
-       dev_t dev;
-       struct uio *uio;
-       int flag;



Home | Main Index | Thread Index | Old Index