summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2021-03-05 09:37:20 +0000
committerjsg <jsg@openbsd.org>2021-03-05 09:37:20 +0000
commitd068c15b9bc72b14fd58de67542552c4c9cf9cfc (patch)
tree525e294f2af7984cca7b48cbfaefcc74c4497849
parentansi (diff)
downloadwireguard-openbsd-d068c15b9bc72b14fd58de67542552c4c9cf9cfc.tar.xz
wireguard-openbsd-d068c15b9bc72b14fd58de67542552c4c9cf9cfc.zip
ansi
-rw-r--r--sys/dev/mii/icsphy.c13
-rw-r--r--sys/dev/mii/inphy.c19
-rw-r--r--sys/dev/mii/iophy.c19
-rw-r--r--sys/dev/mii/lxtphy.c22
4 files changed, 20 insertions, 53 deletions
diff --git a/sys/dev/mii/icsphy.c b/sys/dev/mii/icsphy.c
index 37147929b3a..2c72405c7c9 100644
--- a/sys/dev/mii/icsphy.c
+++ b/sys/dev/mii/icsphy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: icsphy.c,v 1.23 2015/03/14 03:38:48 jsg Exp $ */
+/* $OpenBSD: icsphy.c,v 1.24 2021/03/05 09:37:20 jsg Exp $ */
/* $NetBSD: icsphy.c,v 1.17 2000/02/02 23:34:56 thorpej Exp $ */
/*-
@@ -145,10 +145,7 @@ icsphyattach(struct device *parent, struct device *self, void *aux)
}
int
-icsphy_service(sc, mii, cmd)
- struct mii_softc *sc;
- struct mii_data *mii;
- int cmd;
+icsphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd)
{
struct ifmedia_entry *ife = mii->mii_media.ifm_cur;
int reg;
@@ -210,8 +207,7 @@ icsphy_service(sc, mii, cmd)
}
void
-icsphy_status(sc)
- struct mii_softc *sc;
+icsphy_status(struct mii_softc *sc)
{
struct mii_data *mii = sc->mii_pdata;
struct ifmedia_entry *ife = mii->mii_media.ifm_cur;
@@ -262,8 +258,7 @@ icsphy_status(sc)
}
void
-icsphy_reset(sc)
- struct mii_softc *sc;
+icsphy_reset(struct mii_softc *sc)
{
mii_phy_reset(sc);
diff --git a/sys/dev/mii/inphy.c b/sys/dev/mii/inphy.c
index 70e52fe8206..025c3771aa2 100644
--- a/sys/dev/mii/inphy.c
+++ b/sys/dev/mii/inphy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: inphy.c,v 1.21 2015/03/14 03:38:48 jsg Exp $ */
+/* $OpenBSD: inphy.c,v 1.22 2021/03/05 09:37:20 jsg Exp $ */
/* $NetBSD: inphy.c,v 1.18 2000/02/02 23:34:56 thorpej Exp $ */
/*-
@@ -109,10 +109,7 @@ static const struct mii_phydesc inphys[] = {
};
int
-inphymatch(parent, match, aux)
- struct device *parent;
- void *match;
- void *aux;
+inphymatch(struct device *parent, void *match, void *aux)
{
struct mii_attach_args *ma = aux;
@@ -123,9 +120,7 @@ inphymatch(parent, match, aux)
}
void
-inphyattach(parent, self, aux)
- struct device *parent, *self;
- void *aux;
+inphyattach(struct device *parent, struct device *self, void *aux)
{
struct mii_softc *sc = (struct mii_softc *)self;
struct mii_attach_args *ma = aux;
@@ -150,10 +145,7 @@ inphyattach(parent, self, aux)
}
int
-inphy_service(sc, mii, cmd)
- struct mii_softc *sc;
- struct mii_data *mii;
- int cmd;
+inphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd)
{
struct ifmedia_entry *ife = mii->mii_media.ifm_cur;
int reg;
@@ -215,8 +207,7 @@ inphy_service(sc, mii, cmd)
}
void
-inphy_status(sc)
- struct mii_softc *sc;
+inphy_status(struct mii_softc *sc)
{
struct mii_data *mii = sc->mii_pdata;
struct ifmedia_entry *ife = mii->mii_media.ifm_cur;
diff --git a/sys/dev/mii/iophy.c b/sys/dev/mii/iophy.c
index 70aa69adf3d..8c8ad975923 100644
--- a/sys/dev/mii/iophy.c
+++ b/sys/dev/mii/iophy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: iophy.c,v 1.20 2015/03/14 03:38:48 jsg Exp $ */
+/* $OpenBSD: iophy.c,v 1.21 2021/03/05 09:37:20 jsg Exp $ */
/* $NetBSD: iophy.c,v 1.8 2000/02/02 23:34:56 thorpej Exp $ */
/*
@@ -104,10 +104,7 @@ static const struct mii_phydesc iophys[] = {
};
int
-iophymatch(parent, match, aux)
- struct device *parent;
- void *match;
- void *aux;
+iophymatch(struct device *parent, void *match, void *aux)
{
struct mii_attach_args *ma = aux;
@@ -118,9 +115,7 @@ iophymatch(parent, match, aux)
}
void
-iophyattach(parent, self, aux)
- struct device *parent, *self;
- void *aux;
+iophyattach(struct device *parent, struct device *self, void *aux)
{
struct mii_softc *sc = (struct mii_softc *)self;
struct mii_attach_args *ma = aux;
@@ -145,10 +140,7 @@ iophyattach(parent, self, aux)
}
int
-iophy_service(sc, mii, cmd)
- struct mii_softc *sc;
- struct mii_data *mii;
- int cmd;
+iophy_service(struct mii_softc *sc, struct mii_data *mii, int cmd)
{
struct ifmedia_entry *ife = mii->mii_media.ifm_cur;
int reg;
@@ -210,8 +202,7 @@ iophy_service(sc, mii, cmd)
}
void
-iophy_status(sc)
- struct mii_softc *sc;
+iophy_status(struct mii_softc *sc)
{
struct mii_data *mii = sc->mii_pdata;
struct ifmedia_entry *ife = mii->mii_media.ifm_cur;
diff --git a/sys/dev/mii/lxtphy.c b/sys/dev/mii/lxtphy.c
index 89e6b0732cd..979503fd2cb 100644
--- a/sys/dev/mii/lxtphy.c
+++ b/sys/dev/mii/lxtphy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lxtphy.c,v 1.20 2015/03/14 03:38:48 jsg Exp $ */
+/* $OpenBSD: lxtphy.c,v 1.21 2021/03/05 09:37:20 jsg Exp $ */
/* $NetBSD: lxtphy.c,v 1.19 2000/02/02 23:34:57 thorpej Exp $ */
/*-
@@ -110,10 +110,7 @@ static const struct mii_phydesc lxtphys[] = {
};
int
-lxtphymatch(parent, match, aux)
- struct device *parent;
- void *match;
- void *aux;
+lxtphymatch(struct device *parent, void *match, void *aux)
{
struct mii_attach_args *ma = aux;
@@ -124,9 +121,7 @@ lxtphymatch(parent, match, aux)
}
void
-lxtphyattach(parent, self, aux)
- struct device *parent, *self;
- void *aux;
+lxtphyattach(struct device *parent, struct device *self, void *aux)
{
struct mii_softc *sc = (struct mii_softc *)self;
struct mii_attach_args *ma = aux;
@@ -159,10 +154,7 @@ lxtphyattach(parent, self, aux)
}
int
-lxtphy_service(sc, mii, cmd)
- struct mii_softc *sc;
- struct mii_data *mii;
- int cmd;
+lxtphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd)
{
struct ifmedia_entry *ife = mii->mii_media.ifm_cur;
int reg;
@@ -224,8 +216,7 @@ lxtphy_service(sc, mii, cmd)
}
void
-lxtphy_status(sc)
- struct mii_softc *sc;
+lxtphy_status(struct mii_softc *sc)
{
struct mii_data *mii = sc->mii_pdata;
struct ifmedia_entry *ife = mii->mii_media.ifm_cur;
@@ -274,8 +265,7 @@ lxtphy_status(sc)
}
void
-lxtphy_reset(sc)
- struct mii_softc *sc;
+lxtphy_reset(struct mii_softc *sc)
{
mii_phy_reset(sc);
PHY_WRITE(sc, MII_LXTPHY_IER,