aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/wl/if_wl.c
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1997-06-14 14:54:55 +0000
committerBruce Evans <bde@FreeBSD.org>1997-06-14 14:54:55 +0000
commit9edc7ccf773bb8b576fc53c8bd4e5c4effb27161 (patch)
tree44015352975b2181ce3ee8dc074acb2e8d5e5757 /sys/dev/wl/if_wl.c
parent6789b801d1059c2b4641f8f1d75b14e1f92fbd32 (diff)
Notes
Diffstat (limited to 'sys/dev/wl/if_wl.c')
-rw-r--r--sys/dev/wl/if_wl.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/wl/if_wl.c b/sys/dev/wl/if_wl.c
index 08ed5cbe89cd..e6b049ba3bbe 100644
--- a/sys/dev/wl/if_wl.c
+++ b/sys/dev/wl/if_wl.c
@@ -265,7 +265,7 @@ SYSCTL_INT(_machdep, OID_AUTO, wl_gather_snr, CTLFLAG_RW, &gathersnr, 0, "");
static void wlstart(struct ifnet *ifp);
static void wlinit(void *xsc);
static int wlioctl(struct ifnet *ifp, int cmd, caddr_t data);
-static void wlwatchdog(struct wl_softc *sc);
+static timeout_t wlwatchdog;
static void wlxmt(int unt, struct mbuf *m);
static int wldiag(int unt);
static int wlconfig(int unit);
@@ -607,7 +607,7 @@ wlinit(void *xsc)
sc->flags |= DSF_RUNNING;
sc->tbusy = 0;
- untimeout((timeout_func_t)wlwatchdog, sc);
+ untimeout(wlwatchdog, sc);
wlstart(ifp);
} else {
@@ -778,7 +778,7 @@ wlstart(struct ifnet *ifp)
if((scb_status & 0x0700) == SCB_CUS_IDLE &&
(cu_status & AC_SW_B) == 0){
sc->tbusy = 0;
- untimeout((timeout_func_t)wlwatchdog, sc);
+ untimeout(wlwatchdog, sc);
sc->wl_ac.ac_if.if_flags &= ~IFF_OACTIVE;
/*
* This is probably just a race. The xmt'r is just
@@ -817,7 +817,7 @@ wlstart(struct ifnet *ifp)
* fails to interrupt we will restart
*/
/* try 10 ticks, not very long */
- timeout((timeout_func_t)wlwatchdog, sc, 10);
+ timeout(wlwatchdog, sc, 10);
sc->wl_ac.ac_if.if_flags |= IFF_OACTIVE;
sc->wl_if.if_opackets++;
wlxmt(unit, m);
@@ -1264,8 +1264,9 @@ wlioctl(struct ifnet *ifp, int cmd, caddr_t data)
*
*/
static void
-wlwatchdog(struct wl_softc *sc)
+wlwatchdog(void *vsc)
{
+ struct wl_softc *sc = vsc;
int unit = sc->unit;
log(LOG_ERR, "wl%d: wavelan device timeout on xmit\n", unit);
@@ -1412,7 +1413,7 @@ int unit;
}
}
sc->tbusy = 0;
- untimeout((timeout_func_t)wlwatchdog, sc);
+ untimeout(wlwatchdog, sc);
sc->wl_ac.ac_if.if_flags &= ~IFF_OACTIVE;
wlstart(&(sc->wl_if));
}
@@ -2299,4 +2300,3 @@ wlpsacrc(u_char *buf)
}
return(crc);
}
-