summaryrefslogtreecommitdiffstats
path: root/sys/dev/mii/tlphy.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/tlphy.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/tlphy.c')
-rw-r--r--sys/dev/mii/tlphy.c20
1 files changed, 6 insertions, 14 deletions
diff --git a/sys/dev/mii/tlphy.c b/sys/dev/mii/tlphy.c
index f07e33e1..7baf700 100644
--- a/sys/dev/mii/tlphy.c
+++ b/sys/dev/mii/tlphy.c
@@ -128,8 +128,7 @@ static void tlphy_acomp(struct tlphy_softc *);
static void tlphy_status(struct tlphy_softc *);
static int
-tlphy_probe(dev)
- device_t dev;
+tlphy_probe(device_t dev)
{
struct mii_attach_args *ma;
@@ -145,8 +144,7 @@ tlphy_probe(dev)
}
static int
-tlphy_attach(dev)
- device_t dev;
+tlphy_attach(device_t dev)
{
struct tlphy_softc *sc;
struct mii_attach_args *ma;
@@ -226,10 +224,7 @@ tlphy_attach(dev)
}
static int
-tlphy_service(self, mii, cmd)
- struct mii_softc *self;
- struct mii_data *mii;
- int cmd;
+tlphy_service(struct mii_softc *self, struct mii_data *mii, int cmd)
{
struct tlphy_softc *sc = (struct tlphy_softc *)self;
struct ifmedia_entry *ife = mii->mii_media.ifm_cur;
@@ -340,8 +335,7 @@ tlphy_service(self, mii, cmd)
}
static void
-tlphy_status(sc)
- struct tlphy_softc *sc;
+tlphy_status(struct tlphy_softc *sc)
{
struct mii_data *mii = sc->sc_mii.mii_pdata;
int bmsr, bmcr, tlctrl;
@@ -383,8 +377,7 @@ tlphy_status(sc)
}
static int
-tlphy_auto(sc)
- struct tlphy_softc *sc;
+tlphy_auto(struct tlphy_softc *sc)
{
int error;
@@ -410,8 +403,7 @@ tlphy_auto(sc)
}
static void
-tlphy_acomp(sc)
- struct tlphy_softc *sc;
+tlphy_acomp(struct tlphy_softc *sc)
{
int aner, anlpar;
OpenPOWER on IntegriCloud