Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/mii ANSI'ify.



details:   https://anonhg.NetBSD.org/src/rev/2e75047ea0eb
branches:  trunk
changeset: 514201:2e75047ea0eb
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sat Aug 25 18:04:01 2001 +0000

description:
ANSI'ify.

diffstat:

 sys/dev/mii/acphy.c       |  19 +++++--------------
 sys/dev/mii/amhphy.c      |  19 +++++--------------
 sys/dev/mii/bmtphy.c      |  27 +++++++++------------------
 sys/dev/mii/brgphy.c      |  27 +++++++++------------------
 sys/dev/mii/dmphy.c       |  27 +++++++++------------------
 sys/dev/mii/exphy.c       |  27 +++++++++------------------
 sys/dev/mii/gentbi.c      |  27 +++++++++------------------
 sys/dev/mii/glxtphy.c     |  27 +++++++++------------------
 sys/dev/mii/gphyter.c     |  27 +++++++++------------------
 sys/dev/mii/icsphy.c      |  29 ++++++++++-------------------
 sys/dev/mii/inphy.c       |  27 +++++++++------------------
 sys/dev/mii/iophy.c       |  27 +++++++++------------------
 sys/dev/mii/lxtphy.c      |  43 ++++++++++++++++---------------------------
 sys/dev/mii/makphy.c      |  27 +++++++++------------------
 sys/dev/mii/mii.c         |  45 ++++++++++++++-------------------------------
 sys/dev/mii/mii_bitbang.c |  30 ++++++++++--------------------
 sys/dev/mii/mii_physubr.c |  47 +++++++++++++++--------------------------------
 sys/dev/mii/nsphy.c       |  27 +++++++++------------------
 sys/dev/mii/nsphyter.c    |  27 +++++++++------------------
 sys/dev/mii/pnaphy.c      |  19 +++++--------------
 sys/dev/mii/qsphy.c       |  32 +++++++++++---------------------
 sys/dev/mii/sqphy.c       |  27 +++++++++------------------
 sys/dev/mii/tlphy.c       |  38 +++++++++++++-------------------------
 sys/dev/mii/tqphy.c       |  27 +++++++++------------------
 sys/dev/mii/ukphy.c       |  22 +++++++---------------
 sys/dev/mii/ukphy_subr.c  |   5 ++---
 26 files changed, 239 insertions(+), 487 deletions(-)

diffs (truncated from 2013 to 300 lines):

diff -r 56d77d297c8d -r 2e75047ea0eb sys/dev/mii/acphy.c
--- a/sys/dev/mii/acphy.c       Sat Aug 25 17:59:38 2001 +0000
+++ b/sys/dev/mii/acphy.c       Sat Aug 25 18:04:01 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: acphy.c,v 1.1 2001/08/24 17:54:33 thorpej Exp $        */
+/*     $NetBSD: acphy.c,v 1.2 2001/08/25 18:04:01 thorpej Exp $        */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -80,10 +80,7 @@
 };
 
 int
-acphymatch(parent, match, aux)
-       struct device *parent;
-       struct cfdata *match;
-       void *aux;
+acphymatch(struct device *parent, struct cfdata *match, void *aux)
 {
        struct mii_attach_args *ma = aux;
 
@@ -94,9 +91,7 @@
 }
 
 void
-acphyattach(parent, self, aux)
-       struct device *parent, *self;
-       void *aux;
+acphyattach(struct device *parent, struct device *self, void *aux)
 {
        struct mii_softc *sc = (struct mii_softc *)self;
        struct mii_attach_args *ma = aux;
@@ -130,10 +125,7 @@
 }
 
 int
-acphy_service(sc, mii, cmd)
-       struct mii_softc *sc;
-       struct mii_data *mii;
-       int cmd;
+acphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd)
 {
        struct ifmedia_entry *ife = mii->mii_media.ifm_cur;
        int reg;
@@ -192,8 +184,7 @@
 }
 
 void
-acphy_status(sc)
-       struct mii_softc *sc;
+acphy_status(struct mii_softc *sc)
 {
        struct mii_data *mii = sc->mii_pdata;
        struct ifmedia_entry *ife = mii->mii_media.ifm_cur;
diff -r 56d77d297c8d -r 2e75047ea0eb sys/dev/mii/amhphy.c
--- a/sys/dev/mii/amhphy.c      Sat Aug 25 17:59:38 2001 +0000
+++ b/sys/dev/mii/amhphy.c      Sat Aug 25 18:04:01 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: amhphy.c,v 1.1 2001/08/25 04:06:26 thorpej Exp $       */
+/*     $NetBSD: amhphy.c,v 1.2 2001/08/25 18:04:01 thorpej Exp $       */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -80,10 +80,7 @@
 };
 
 int
-amhphymatch(parent, match, aux)
-       struct device *parent;
-       struct cfdata *match;
-       void *aux;
+amhphymatch(struct device *parent, struct cfdata *match, void *aux)
 {
        struct mii_attach_args *ma = aux;
 
@@ -94,9 +91,7 @@
 }
 
 void
-amhphyattach(parent, self, aux)
-       struct device *parent, *self;
-       void *aux;
+amhphyattach(struct device *parent, struct device *self, void *aux)
 {
        struct mii_softc *sc = (struct mii_softc *)self;
        struct mii_attach_args *ma = aux;
@@ -126,10 +121,7 @@
 }
 
 int
-amhphy_service(sc, mii, cmd)
-       struct mii_softc *sc;
-       struct mii_data *mii;
-       int cmd;
+amhphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd)
 {
        struct ifmedia_entry *ife = mii->mii_media.ifm_cur;
        int reg;
@@ -188,8 +180,7 @@
 }
 
 void
-amhphy_status(sc)
-       struct mii_softc *sc;
+amhphy_status(struct mii_softc *sc)
 {
        struct mii_data *mii = sc->mii_pdata;
        struct ifmedia_entry *ife = mii->mii_media.ifm_cur;
diff -r 56d77d297c8d -r 2e75047ea0eb sys/dev/mii/bmtphy.c
--- a/sys/dev/mii/bmtphy.c      Sat Aug 25 17:59:38 2001 +0000
+++ b/sys/dev/mii/bmtphy.c      Sat Aug 25 18:04:01 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bmtphy.c,v 1.4 2001/07/27 17:58:20 thorpej Exp $       */
+/*     $NetBSD: bmtphy.c,v 1.5 2001/08/25 18:04:01 thorpej Exp $       */
 
 /*-
  * Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -89,16 +89,16 @@
 
 #include <dev/mii/bmtphyreg.h>
 
-int    bmtphymatch __P((struct device *, struct cfdata *, void *));
-void   bmtphyattach __P((struct device *, struct device *, void *));
+int    bmtphymatch(struct device *, struct cfdata *, void *);
+void   bmtphyattach(struct device *, struct device *, void *);
 
 struct cfattach bmtphy_ca = {
        sizeof(struct mii_softc), bmtphymatch, bmtphyattach,
            mii_phy_detach, mii_phy_activate
 };
 
-int    bmtphy_service __P((struct mii_softc *, struct mii_data *, int));
-void   bmtphy_status __P((struct mii_softc *));
+int    bmtphy_service(struct mii_softc *, struct mii_data *, int);
+void   bmtphy_status(struct mii_softc *);
 
 const struct mii_phy_funcs bmtphy_funcs = {
        bmtphy_service, bmtphy_status, mii_phy_reset,
@@ -119,10 +119,7 @@
 };
 
 int
-bmtphymatch(parent, match, aux)
-       struct device *parent;
-       struct cfdata *match;
-       void *aux;
+bmtphymatch(struct device *parent, struct cfdata *match, void *aux)
 {
        struct mii_attach_args *ma = aux;
 
@@ -133,9 +130,7 @@
 }
 
 void
-bmtphyattach(parent, self, aux)
-       struct device *parent, *self;
-       void *aux;
+bmtphyattach(struct device *parent, struct device *self, void *aux)
 {
        struct mii_softc *sc = (struct mii_softc *)self;
        struct mii_attach_args *ma = aux;
@@ -169,10 +164,7 @@
 }
 
 int
-bmtphy_service(sc, mii, cmd)
-       struct mii_softc *sc;
-       struct mii_data *mii;
-       int cmd;
+bmtphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd)
 {
        struct ifmedia_entry *ife = mii->mii_media.ifm_cur;
        int reg;
@@ -231,8 +223,7 @@
 }
 
 void
-bmtphy_status(sc)
-       struct mii_softc *sc;
+bmtphy_status(struct mii_softc *sc)
 {
        struct mii_data *mii = sc->mii_pdata;
        struct ifmedia_entry *ife = mii->mii_media.ifm_cur;
diff -r 56d77d297c8d -r 2e75047ea0eb sys/dev/mii/brgphy.c
--- a/sys/dev/mii/brgphy.c      Sat Aug 25 17:59:38 2001 +0000
+++ b/sys/dev/mii/brgphy.c      Sat Aug 25 18:04:01 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: brgphy.c,v 1.3 2001/06/30 17:53:58 bjh21 Exp $ */
+/*     $NetBSD: brgphy.c,v 1.4 2001/08/25 18:04:01 thorpej Exp $       */
 
 /*-
  * Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -90,16 +90,16 @@
 
 #include <dev/mii/brgphyreg.h>
 
-int    brgphymatch __P((struct device *, struct cfdata *, void *));
-void   brgphyattach __P((struct device *, struct device *, void *));
+int    brgphymatch(struct device *, struct cfdata *, void *);
+void   brgphyattach(struct device *, struct device *, void *);
 
 struct cfattach brgphy_ca = {
        sizeof(struct mii_softc), brgphymatch, brgphyattach,
            mii_phy_detach, mii_phy_activate
 };
 
-int    brgphy_service __P((struct mii_softc *, struct mii_data *, int));
-void   brgphy_status __P((struct mii_softc *));
+int    brgphy_service(struct mii_softc *, struct mii_data *, int);
+void   brgphy_status(struct mii_softc *);
 
 const struct mii_phy_funcs brgphy_funcs = {
        brgphy_service, brgphy_status, mii_phy_reset,
@@ -120,10 +120,7 @@
 };
 
 int
-brgphymatch(parent, match, aux)
-       struct device *parent;
-       struct cfdata *match;
-       void *aux;
+brgphymatch(struct device *parent, struct cfdata *match, void *aux)
 {
        struct mii_attach_args *ma = aux;
 
@@ -134,9 +131,7 @@
 }
 
 void
-brgphyattach(parent, self, aux)
-       struct device *parent, *self;
-       void *aux;
+brgphyattach(struct device *parent, struct device *self, void *aux)
 {
        struct mii_softc *sc = (struct mii_softc *)self;
        struct mii_attach_args *ma = aux;
@@ -170,10 +165,7 @@
 }
 
 int
-brgphy_service(sc, mii, cmd)
-       struct mii_softc *sc;
-       struct mii_data *mii;
-       int cmd;
+brgphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd)
 {
        struct ifmedia_entry *ife = mii->mii_media.ifm_cur;
        int reg;
@@ -232,8 +224,7 @@
 }
 
 void
-brgphy_status(sc)
-       struct mii_softc *sc;
+brgphy_status(struct mii_softc *sc)
 {
        struct mii_data *mii = sc->mii_pdata;
        struct ifmedia_entry *ife = mii->mii_media.ifm_cur;
diff -r 56d77d297c8d -r 2e75047ea0eb sys/dev/mii/dmphy.c
--- a/sys/dev/mii/dmphy.c       Sat Aug 25 17:59:38 2001 +0000
+++ b/sys/dev/mii/dmphy.c       Sat Aug 25 18:04:01 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dmphy.c,v 1.10 2001/06/02 21:39:38 thorpej Exp $       */
+/*     $NetBSD: dmphy.c,v 1.11 2001/08/25 18:04:01 thorpej Exp $       */
 
 /*-
  * Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
@@ -88,16 +88,16 @@
 
 #include <dev/mii/dmphyreg.h>
 
-int    dmphymatch __P((struct device *, struct cfdata *, void *));
-void   dmphyattach __P((struct device *, struct device *, void *));
+int    dmphymatch(struct device *, struct cfdata *, void *);
+void   dmphyattach(struct device *, struct device *, void *);
 
 struct cfattach dmphy_ca = {
        sizeof(struct mii_softc), dmphymatch, dmphyattach, mii_phy_detach,
            mii_phy_activate
 };
 
-int    dmphy_service __P((struct mii_softc *, struct mii_data *, int));
-void   dmphy_status __P((struct mii_softc *));
+int    dmphy_service(struct mii_softc *, struct mii_data *, int);
+void   dmphy_status(struct mii_softc *);
 
 const struct mii_phy_funcs dmphy_funcs = {
        dmphy_service, dmphy_status, mii_phy_reset,
@@ -115,10 +115,7 @@
 };
 
 int
-dmphymatch(parent, match, aux)
-       struct device *parent;
-       struct cfdata *match;
-       void *aux;
+dmphymatch(struct device *parent, struct cfdata *match, void *aux)
 {
        struct mii_attach_args *ma = aux;
 



Home | Main Index | Thread Index | Old Index