summaryrefslogtreecommitdiffstats
path: root/sys/dev/mii/xmphy.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2005-09-30 19:39:27 +0000
committerimp <imp@FreeBSD.org>2005-09-30 19:39:27 +0000
commit3c83a9762a1de398e272a7b7f41727b46006549d (patch)
treec545b1567d7ceed1e0dd597b18504c02fe5cec82 /sys/dev/mii/xmphy.c
parent6d33aff6dae5c484c4e00cb127bfca95ca2aeeaa (diff)
downloadFreeBSD-src-3c83a9762a1de398e272a7b7f41727b46006549d.zip
FreeBSD-src-3c83a9762a1de398e272a7b7f41727b46006549d.tar.gz
Use ansi function definitions in preference to K&R to reduce diffs
with NetBSD (and cause it looks cooler).
Diffstat (limited to 'sys/dev/mii/xmphy.c')
-rw-r--r--sys/dev/mii/xmphy.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/sys/dev/mii/xmphy.c b/sys/dev/mii/xmphy.c
index c6d2ee9..b6bf7f1 100644
--- a/sys/dev/mii/xmphy.c
+++ b/sys/dev/mii/xmphy.c
@@ -84,8 +84,7 @@ static void xmphy_status(struct mii_softc *);
static int xmphy_mii_phy_auto(struct mii_softc *);
static int
-xmphy_probe(dev)
- device_t dev;
+xmphy_probe(device_t dev)
{
struct mii_attach_args *ma;
@@ -107,8 +106,7 @@ xmphy_probe(dev)
}
static int
-xmphy_attach(dev)
- device_t dev;
+xmphy_attach(device_t dev)
{
struct mii_softc *sc;
struct mii_attach_args *ma;
@@ -159,10 +157,7 @@ xmphy_attach(dev)
}
static int
-xmphy_service(sc, mii, cmd)
- struct mii_softc *sc;
- struct mii_data *mii;
- int cmd;
+xmphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd)
{
struct ifmedia_entry *ife = mii->mii_media.ifm_cur;
int reg;
@@ -272,8 +267,7 @@ xmphy_service(sc, mii, cmd)
}
static void
-xmphy_status(sc)
- struct mii_softc *sc;
+xmphy_status(struct mii_softc *sc)
{
struct mii_data *mii = sc->mii_pdata;
int bmsr, bmcr, anlpar;
@@ -327,8 +321,7 @@ xmphy_status(sc)
static int
-xmphy_mii_phy_auto(mii)
- struct mii_softc *mii;
+xmphy_mii_phy_auto(struct mii_softc *mii)
{
int anar = 0;
OpenPOWER on IntegriCloud