summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/dc/dcphy.c10
-rw-r--r--sys/dev/dc/pnphy.c10
-rw-r--r--sys/dev/mii/acphy.c10
-rw-r--r--sys/dev/mii/amphy.c10
-rw-r--r--sys/dev/mii/brgphy.c10
-rw-r--r--sys/dev/mii/dcphy.c10
-rw-r--r--sys/dev/mii/exphy.c10
-rw-r--r--sys/dev/mii/lxtphy.c10
-rw-r--r--sys/dev/mii/mii.c34
-rw-r--r--sys/dev/mii/mlphy.c16
-rw-r--r--sys/dev/mii/nsgphy.c4
-rw-r--r--sys/dev/mii/nsphy.c10
-rw-r--r--sys/dev/mii/pnaphy.c4
-rw-r--r--sys/dev/mii/pnphy.c10
-rw-r--r--sys/dev/mii/qsphy.c10
-rw-r--r--sys/dev/mii/rlphy.c10
-rw-r--r--sys/dev/mii/tdkphy.c4
-rw-r--r--sys/dev/mii/tlphy.c10
-rw-r--r--sys/dev/mii/ukphy.c4
-rw-r--r--sys/dev/mii/xmphy.c10
20 files changed, 123 insertions, 83 deletions
diff --git a/sys/dev/dc/dcphy.c b/sys/dev/dc/dcphy.c
index bf040e8..9081ff2 100644
--- a/sys/dev/dc/dcphy.c
+++ b/sys/dev/dc/dcphy.c
@@ -93,8 +93,8 @@ static const char rcsid[] =
*/
#define COMPAQ_PRESARIO_ID 0xb0bb0e11
-static int dcphy_probe (device_t);
-static int dcphy_attach (device_t);
+static int dcphy_probe(device_t);
+static int dcphy_attach(device_t);
static device_method_t dcphy_methods[] = {
/* device interface */
@@ -120,7 +120,8 @@ static void dcphy_status(struct mii_softc *);
static void dcphy_reset(struct mii_softc *);
static int dcphy_auto(struct mii_softc *);
-static int dcphy_probe(dev)
+static int
+dcphy_probe(dev)
device_t dev;
{
struct mii_attach_args *ma;
@@ -140,7 +141,8 @@ static int dcphy_probe(dev)
return (0);
}
-static int dcphy_attach(dev)
+static int
+dcphy_attach(dev)
device_t dev;
{
struct mii_softc *sc;
diff --git a/sys/dev/dc/pnphy.c b/sys/dev/dc/pnphy.c
index 9b1ec55..4a38b46 100644
--- a/sys/dev/dc/pnphy.c
+++ b/sys/dev/dc/pnphy.c
@@ -80,8 +80,8 @@ static const char rcsid[] =
CSR_WRITE_4(sc, reg, \
CSR_READ_4(sc, reg) & ~x)
-static int pnphy_probe (device_t);
-static int pnphy_attach (device_t);
+static int pnphy_probe(device_t);
+static int pnphy_attach(device_t);
static device_method_t pnphy_methods[] = {
/* device interface */
@@ -105,7 +105,8 @@ DRIVER_MODULE(pnphy, miibus, pnphy_driver, pnphy_devclass, 0, 0);
static int pnphy_service(struct mii_softc *, struct mii_data *, int);
static void pnphy_status(struct mii_softc *);
-static int pnphy_probe(dev)
+static int
+pnphy_probe(dev)
device_t dev;
{
struct mii_attach_args *ma;
@@ -125,7 +126,8 @@ static int pnphy_probe(dev)
return (0);
}
-static int pnphy_attach(dev)
+static int
+pnphy_attach(dev)
device_t dev;
{
struct mii_softc *sc;
diff --git a/sys/dev/mii/acphy.c b/sys/dev/mii/acphy.c
index 5d6ba64..731209a 100644
--- a/sys/dev/mii/acphy.c
+++ b/sys/dev/mii/acphy.c
@@ -92,8 +92,8 @@ static const char rcsid[] =
"$FreeBSD$";
#endif
-static int acphy_probe (device_t);
-static int acphy_attach (device_t);
+static int acphy_probe(device_t);
+static int acphy_attach(device_t);
static device_method_t acphy_methods[] = {
/* device interface */
@@ -118,7 +118,8 @@ static int acphy_service(struct mii_softc *, struct mii_data *, int);
static void acphy_reset(struct mii_softc *);
static void acphy_status(struct mii_softc *);
-static int acphy_probe(dev)
+static int
+acphy_probe(dev)
device_t dev;
{
struct mii_attach_args *ma;
@@ -134,7 +135,8 @@ static int acphy_probe(dev)
return (0);
}
-static int acphy_attach(dev)
+static int
+acphy_attach(dev)
device_t dev;
{
struct mii_softc *sc;
diff --git a/sys/dev/mii/amphy.c b/sys/dev/mii/amphy.c
index 70462f4..83d9616 100644
--- a/sys/dev/mii/amphy.c
+++ b/sys/dev/mii/amphy.c
@@ -60,8 +60,8 @@ static const char rcsid[] =
"$FreeBSD$";
#endif
-static int amphy_probe (device_t);
-static int amphy_attach (device_t);
+static int amphy_probe(device_t);
+static int amphy_attach(device_t);
static device_method_t amphy_methods[] = {
/* device interface */
@@ -85,7 +85,8 @@ DRIVER_MODULE(amphy, miibus, amphy_driver, amphy_devclass, 0, 0);
static int amphy_service(struct mii_softc *, struct mii_data *, int);
static void amphy_status(struct mii_softc *);
-static int amphy_probe(dev)
+static int
+amphy_probe(dev)
device_t dev;
{
struct mii_attach_args *ma;
@@ -106,7 +107,8 @@ static int amphy_probe(dev)
return(0);
}
-static int amphy_attach(dev)
+static int
+amphy_attach(dev)
device_t dev;
{
struct mii_softc *sc;
diff --git a/sys/dev/mii/brgphy.c b/sys/dev/mii/brgphy.c
index 3f534d5..0938e06 100644
--- a/sys/dev/mii/brgphy.c
+++ b/sys/dev/mii/brgphy.c
@@ -62,8 +62,8 @@ static const char rcsid[] =
"$FreeBSD$";
#endif
-static int brgphy_probe (device_t);
-static int brgphy_attach (device_t);
+static int brgphy_probe(device_t);
+static int brgphy_attach(device_t);
static device_method_t brgphy_methods[] = {
/* device interface */
@@ -88,7 +88,8 @@ static int brgphy_service(struct mii_softc *, struct mii_data *, int);
static void brgphy_status(struct mii_softc *);
static int brgphy_mii_phy_auto(struct mii_softc *);
-static int brgphy_probe(dev)
+static int
+brgphy_probe(dev)
device_t dev;
{
struct mii_attach_args *ma;
@@ -128,7 +129,8 @@ static int brgphy_probe(dev)
return(ENXIO);
}
-static int brgphy_attach(dev)
+static int
+brgphy_attach(dev)
device_t dev;
{
struct mii_softc *sc;
diff --git a/sys/dev/mii/dcphy.c b/sys/dev/mii/dcphy.c
index bf040e8..9081ff2 100644
--- a/sys/dev/mii/dcphy.c
+++ b/sys/dev/mii/dcphy.c
@@ -93,8 +93,8 @@ static const char rcsid[] =
*/
#define COMPAQ_PRESARIO_ID 0xb0bb0e11
-static int dcphy_probe (device_t);
-static int dcphy_attach (device_t);
+static int dcphy_probe(device_t);
+static int dcphy_attach(device_t);
static device_method_t dcphy_methods[] = {
/* device interface */
@@ -120,7 +120,8 @@ static void dcphy_status(struct mii_softc *);
static void dcphy_reset(struct mii_softc *);
static int dcphy_auto(struct mii_softc *);
-static int dcphy_probe(dev)
+static int
+dcphy_probe(dev)
device_t dev;
{
struct mii_attach_args *ma;
@@ -140,7 +141,8 @@ static int dcphy_probe(dev)
return (0);
}
-static int dcphy_attach(dev)
+static int
+dcphy_attach(dev)
device_t dev;
{
struct mii_softc *sc;
diff --git a/sys/dev/mii/exphy.c b/sys/dev/mii/exphy.c
index 70f66e8..ea2bbdd 100644
--- a/sys/dev/mii/exphy.c
+++ b/sys/dev/mii/exphy.c
@@ -91,8 +91,8 @@ static const char rcsid[] =
"$FreeBSD$";
#endif
-static int exphy_probe (device_t);
-static int exphy_attach (device_t);
+static int exphy_probe(device_t);
+static int exphy_attach(device_t);
static device_method_t exphy_methods[] = {
/* device interface */
@@ -116,7 +116,8 @@ DRIVER_MODULE(xlphy, miibus, exphy_driver, exphy_devclass, 0, 0);
static int exphy_service(struct mii_softc *, struct mii_data *, int);
static void exphy_reset(struct mii_softc *);
-static int exphy_probe(dev)
+static int
+exphy_probe(dev)
device_t dev;
{
struct mii_attach_args *ma;
@@ -148,7 +149,8 @@ static int exphy_probe(dev)
return (0);
}
-static int exphy_attach(dev)
+static int
+exphy_attach(dev)
device_t dev;
{
struct mii_softc *sc;
diff --git a/sys/dev/mii/lxtphy.c b/sys/dev/mii/lxtphy.c
index 1969860..71b97e0 100644
--- a/sys/dev/mii/lxtphy.c
+++ b/sys/dev/mii/lxtphy.c
@@ -96,8 +96,8 @@ static const char rcsid[] =
"$FreeBSD$";
#endif
-static int lxtphy_probe (device_t);
-static int lxtphy_attach (device_t);
+static int lxtphy_probe(device_t);
+static int lxtphy_attach(device_t);
static device_method_t lxtphy_methods[] = {
/* device interface */
@@ -123,7 +123,8 @@ static void lxtphy_status(struct mii_softc *);
static void lxtphy_set_tp(struct mii_softc *);
static void lxtphy_set_fx(struct mii_softc *);
-static int lxtphy_probe(dev)
+static int
+lxtphy_probe(dev)
device_t dev;
{
struct mii_attach_args *ma;
@@ -139,7 +140,8 @@ static int lxtphy_probe(dev)
return (0);
}
-static int lxtphy_attach(dev)
+static int
+lxtphy_attach(dev)
device_t dev;
{
struct mii_softc *sc;
diff --git a/sys/dev/mii/mii.c b/sys/dev/mii/mii.c
index 9a63276..b75b423 100644
--- a/sys/dev/mii/mii.c
+++ b/sys/dev/mii/mii.c
@@ -65,11 +65,11 @@ static const char rcsid[] =
"$FreeBSD$";
#endif
-static int miibus_readreg (device_t, int, int);
-static int miibus_writereg (device_t, int, int, int);
-static void miibus_statchg (device_t);
-static void miibus_linkchg (device_t);
-static void miibus_mediainit (device_t);
+static int miibus_readreg(device_t, int, int);
+static int miibus_writereg(device_t, int, int, int);
+static void miibus_statchg(device_t);
+static void miibus_linkchg(device_t);
+static void miibus_mediainit(device_t);
static device_method_t miibus_methods[] = {
/* device interface */
@@ -105,7 +105,8 @@ driver_t miibus_driver = {
* to the network interface driver parent.
*/
-int miibus_probe(dev)
+int
+miibus_probe(dev)
device_t dev;
{
struct mii_attach_args ma, *args;
@@ -158,7 +159,8 @@ int miibus_probe(dev)
return(0);
}
-int miibus_attach(dev)
+int
+miibus_attach(dev)
device_t dev;
{
void **v;
@@ -180,7 +182,8 @@ int miibus_attach(dev)
return(0);
}
-int miibus_detach(dev)
+int
+miibus_detach(dev)
device_t dev;
{
struct mii_data *mii;
@@ -193,7 +196,8 @@ int miibus_detach(dev)
return(0);
}
-static int miibus_readreg(dev, phy, reg)
+static int
+miibus_readreg(dev, phy, reg)
device_t dev;
int phy, reg;
{
@@ -203,7 +207,8 @@ static int miibus_readreg(dev, phy, reg)
return(MIIBUS_READREG(parent, phy, reg));
}
-static int miibus_writereg(dev, phy, reg, data)
+static int
+miibus_writereg(dev, phy, reg, data)
device_t dev;
int phy, reg, data;
{
@@ -213,7 +218,8 @@ static int miibus_writereg(dev, phy, reg, data)
return(MIIBUS_WRITEREG(parent, phy, reg, data));
}
-static void miibus_statchg(dev)
+static void
+miibus_statchg(dev)
device_t dev;
{
device_t parent;
@@ -253,7 +259,8 @@ miibus_linkchg(dev)
KNOTE(&ifp->if_klist, link);
}
-static void miibus_mediainit(dev)
+static void
+miibus_mediainit(dev)
device_t dev;
{
struct mii_data *mii;
@@ -275,7 +282,8 @@ static void miibus_mediainit(dev)
return;
}
-int mii_phy_probe(dev, child, ifmedia_upd, ifmedia_sts)
+int
+mii_phy_probe(dev, child, ifmedia_upd, ifmedia_sts)
device_t dev;
device_t *child;
ifm_change_cb_t ifmedia_upd;
diff --git a/sys/dev/mii/mlphy.c b/sys/dev/mii/mlphy.c
index d600455..0be644a 100644
--- a/sys/dev/mii/mlphy.c
+++ b/sys/dev/mii/mlphy.c
@@ -72,8 +72,8 @@ struct mlphy_softc {
int ml_linked;
};
-static int mlphy_probe (device_t);
-static int mlphy_attach (device_t);
+static int mlphy_probe(device_t);
+static int mlphy_attach(device_t);
static device_method_t mlphy_methods[] = {
/* device interface */
@@ -98,7 +98,8 @@ static int mlphy_service(struct mii_softc *, struct mii_data *, int);
static void mlphy_reset(struct mii_softc *);
static void mlphy_status(struct mii_softc *);
-static int mlphy_probe(dev)
+static int
+mlphy_probe(dev)
device_t dev;
{
struct mii_attach_args *ma;
@@ -127,7 +128,8 @@ static int mlphy_probe(dev)
return (0);
}
-static int mlphy_attach(dev)
+static int
+mlphy_attach(dev)
device_t dev;
{
struct mlphy_softc *msc;
@@ -372,7 +374,8 @@ mlphy_service(xsc, mii, cmd)
* The Micro Linear PHY comes out of reset with the 'autoneg
* enable' bit set, which we don't want.
*/
-static void mlphy_reset(sc)
+static void
+mlphy_reset(sc)
struct mii_softc *sc;
{
int reg;
@@ -389,7 +392,8 @@ static void mlphy_reset(sc)
* If we negotiate a 10Mbps mode, we need to check for an alternate
* PHY and make sure it's enabled and set correctly.
*/
-static void mlphy_status(sc)
+static void
+mlphy_status(sc)
struct mii_softc *sc;
{
struct mlphy_softc *msc = (struct mlphy_softc *)sc;
diff --git a/sys/dev/mii/nsgphy.c b/sys/dev/mii/nsgphy.c
index 07c695c..e68f171 100644
--- a/sys/dev/mii/nsgphy.c
+++ b/sys/dev/mii/nsgphy.c
@@ -78,8 +78,8 @@ static const char rcsid[] =
"$FreeBSD$";
#endif
-static int nsgphy_probe (device_t);
-static int nsgphy_attach (device_t);
+static int nsgphy_probe(device_t);
+static int nsgphy_attach(device_t);
static device_method_t nsgphy_methods[] = {
/* device interface */
diff --git a/sys/dev/mii/nsphy.c b/sys/dev/mii/nsphy.c
index e297619..02997b4 100644
--- a/sys/dev/mii/nsphy.c
+++ b/sys/dev/mii/nsphy.c
@@ -95,8 +95,8 @@ static const char rcsid[] =
"$FreeBSD$";
#endif
-static int nsphy_probe (device_t);
-static int nsphy_attach (device_t);
+static int nsphy_probe(device_t);
+static int nsphy_attach(device_t);
static device_method_t nsphy_methods[] = {
/* device interface */
@@ -120,7 +120,8 @@ DRIVER_MODULE(nsphy, miibus, nsphy_driver, nsphy_devclass, 0, 0);
static int nsphy_service(struct mii_softc *, struct mii_data *, int);
static void nsphy_status(struct mii_softc *);
-static int nsphy_probe(dev)
+static int
+nsphy_probe(dev)
device_t dev;
{
struct mii_attach_args *ma;
@@ -136,7 +137,8 @@ static int nsphy_probe(dev)
return (0);
}
-static int nsphy_attach(dev)
+static int
+nsphy_attach(dev)
device_t dev;
{
struct mii_softc *sc;
diff --git a/sys/dev/mii/pnaphy.c b/sys/dev/mii/pnaphy.c
index d29d6a5..eb44771 100644
--- a/sys/dev/mii/pnaphy.c
+++ b/sys/dev/mii/pnaphy.c
@@ -66,8 +66,8 @@ static const char rcsid[] =
"$FreeBSD$";
#endif
-static int pnaphy_probe (device_t);
-static int pnaphy_attach (device_t);
+static int pnaphy_probe(device_t);
+static int pnaphy_attach(device_t);
static device_method_t pnaphy_methods[] = {
/* device interface */
diff --git a/sys/dev/mii/pnphy.c b/sys/dev/mii/pnphy.c
index 9b1ec55..4a38b46 100644
--- a/sys/dev/mii/pnphy.c
+++ b/sys/dev/mii/pnphy.c
@@ -80,8 +80,8 @@ static const char rcsid[] =
CSR_WRITE_4(sc, reg, \
CSR_READ_4(sc, reg) & ~x)
-static int pnphy_probe (device_t);
-static int pnphy_attach (device_t);
+static int pnphy_probe(device_t);
+static int pnphy_attach(device_t);
static device_method_t pnphy_methods[] = {
/* device interface */
@@ -105,7 +105,8 @@ DRIVER_MODULE(pnphy, miibus, pnphy_driver, pnphy_devclass, 0, 0);
static int pnphy_service(struct mii_softc *, struct mii_data *, int);
static void pnphy_status(struct mii_softc *);
-static int pnphy_probe(dev)
+static int
+pnphy_probe(dev)
device_t dev;
{
struct mii_attach_args *ma;
@@ -125,7 +126,8 @@ static int pnphy_probe(dev)
return (0);
}
-static int pnphy_attach(dev)
+static int
+pnphy_attach(dev)
device_t dev;
{
struct mii_softc *sc;
diff --git a/sys/dev/mii/qsphy.c b/sys/dev/mii/qsphy.c
index c40161f..f9bc897 100644
--- a/sys/dev/mii/qsphy.c
+++ b/sys/dev/mii/qsphy.c
@@ -96,8 +96,8 @@ static const char rcsid[] =
"$FreeBSD$";
#endif
-static int qsphy_probe (device_t);
-static int qsphy_attach (device_t);
+static int qsphy_probe(device_t);
+static int qsphy_attach(device_t);
static device_method_t qsphy_methods[] = {
/* device interface */
@@ -122,7 +122,8 @@ static int qsphy_service(struct mii_softc *, struct mii_data *, int);
static void qsphy_reset(struct mii_softc *);
static void qsphy_status(struct mii_softc *);
-static int qsphy_probe(dev)
+static int
+qsphy_probe(dev)
device_t dev;
{
struct mii_attach_args *ma;
@@ -138,7 +139,8 @@ static int qsphy_probe(dev)
return (0);
}
-static int qsphy_attach(dev)
+static int
+qsphy_attach(dev)
device_t dev;
{
struct mii_softc *sc;
diff --git a/sys/dev/mii/rlphy.c b/sys/dev/mii/rlphy.c
index 7a18a96..9df26eb 100644
--- a/sys/dev/mii/rlphy.c
+++ b/sys/dev/mii/rlphy.c
@@ -60,8 +60,8 @@ static const char rcsid[] =
"$FreeBSD$";
#endif
-static int rlphy_probe (device_t);
-static int rlphy_attach (device_t);
+static int rlphy_probe(device_t);
+static int rlphy_attach(device_t);
static device_method_t rlphy_methods[] = {
/* device interface */
@@ -85,7 +85,8 @@ DRIVER_MODULE(rlphy, miibus, rlphy_driver, rlphy_devclass, 0, 0);
static int rlphy_service(struct mii_softc *, struct mii_data *, int);
static void rlphy_status(struct mii_softc *);
-static int rlphy_probe(dev)
+static int
+rlphy_probe(dev)
device_t dev;
{
struct mii_attach_args *ma;
@@ -120,7 +121,8 @@ static int rlphy_probe(dev)
return (0);
}
-static int rlphy_attach(dev)
+static int
+rlphy_attach(dev)
device_t dev;
{
struct mii_softc *sc;
diff --git a/sys/dev/mii/tdkphy.c b/sys/dev/mii/tdkphy.c
index 833c499..f7af539 100644
--- a/sys/dev/mii/tdkphy.c
+++ b/sys/dev/mii/tdkphy.c
@@ -69,8 +69,8 @@ static const char rcsid[] =
"$Id: tdkphy.c,v 1.3 2000/10/14 06:20:56 jon Exp $";
#endif
-static int tdkphy_probe (device_t);
-static int tdkphy_attach (device_t);
+static int tdkphy_probe(device_t);
+static int tdkphy_attach(device_t);
static device_method_t tdkphy_methods[] = {
/* device interface */
diff --git a/sys/dev/mii/tlphy.c b/sys/dev/mii/tlphy.c
index cbd14d7..2625571 100644
--- a/sys/dev/mii/tlphy.c
+++ b/sys/dev/mii/tlphy.c
@@ -102,8 +102,8 @@ struct tlphy_softc {
int sc_need_acomp;
};
-static int tlphy_probe (device_t);
-static int tlphy_attach (device_t);
+static int tlphy_probe(device_t);
+static int tlphy_attach(device_t);
static device_method_t tlphy_methods[] = {
/* device interface */
@@ -129,7 +129,8 @@ static int tlphy_auto(struct tlphy_softc *);
static void tlphy_acomp(struct tlphy_softc *);
static void tlphy_status(struct tlphy_softc *);
-static int tlphy_probe(dev)
+static int
+tlphy_probe(dev)
device_t dev;
{
struct mii_attach_args *ma;
@@ -145,7 +146,8 @@ static int tlphy_probe(dev)
return (0);
}
-static int tlphy_attach(dev)
+static int
+tlphy_attach(dev)
device_t dev;
{
struct tlphy_softc *sc;
diff --git a/sys/dev/mii/ukphy.c b/sys/dev/mii/ukphy.c
index 629f637..6dff42e 100644
--- a/sys/dev/mii/ukphy.c
+++ b/sys/dev/mii/ukphy.c
@@ -92,8 +92,8 @@ static const char rcsid[] =
"$FreeBSD$";
#endif
-static int ukphy_probe (device_t);
-static int ukphy_attach (device_t);
+static int ukphy_probe(device_t);
+static int ukphy_attach(device_t);
static device_method_t ukphy_methods[] = {
/* device interface */
diff --git a/sys/dev/mii/xmphy.c b/sys/dev/mii/xmphy.c
index a67933c..b1ddc24 100644
--- a/sys/dev/mii/xmphy.c
+++ b/sys/dev/mii/xmphy.c
@@ -62,8 +62,8 @@ static const char rcsid[] =
"$FreeBSD$";
#endif
-static int xmphy_probe (device_t);
-static int xmphy_attach (device_t);
+static int xmphy_probe(device_t);
+static int xmphy_attach(device_t);
static device_method_t xmphy_methods[] = {
/* device interface */
@@ -88,7 +88,8 @@ static int xmphy_service(struct mii_softc *, struct mii_data *, int);
static void xmphy_status(struct mii_softc *);
static int xmphy_mii_phy_auto(struct mii_softc *);
-static int xmphy_probe(dev)
+static int
+xmphy_probe(dev)
device_t dev;
{
struct mii_attach_args *ma;
@@ -110,7 +111,8 @@ static int xmphy_probe(dev)
return(ENXIO);
}
-static int xmphy_attach(dev)
+static int
+xmphy_attach(dev)
device_t dev;
{
struct mii_softc *sc;
OpenPOWER on IntegriCloud