summaryrefslogtreecommitdiff
path: root/sys/dev/fxp
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2001-12-04 08:16:44 +0000
committerPeter Wemm <peter@FreeBSD.org>2001-12-04 08:16:44 +0000
commitf91cda6938fe73cff1c41c5137426b720abbc7be (patch)
tree0bb954887ebadf942a196837691776c8f3712579 /sys/dev/fxp
parent017a2ae9d26bcb9cdc93d7883f4f7d23979d29ca (diff)
Notes
Diffstat (limited to 'sys/dev/fxp')
-rw-r--r--sys/dev/fxp/if_fxp.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/sys/dev/fxp/if_fxp.c b/sys/dev/fxp/if_fxp.c
index 61a75f7a46dd..de34b2fb26c3 100644
--- a/sys/dev/fxp/if_fxp.c
+++ b/sys/dev/fxp/if_fxp.c
@@ -1166,24 +1166,25 @@ void
fxp_poll(struct ifnet *ifp, int cmd, int count)
{
struct fxp_softc *sc = ifp->if_softc;
- u_int8_t statack ;
+ u_int8_t statack;
if (cmd == 2) { /* final call, enable interrupts */
CSR_WRITE_1(sc, FXP_CSR_SCB_INTRCNTL, 0);
return;
}
statack = FXP_SCB_STATACK_CXTNO | FXP_SCB_STATACK_CNA |
- FXP_SCB_STATACK_FR ;
+ FXP_SCB_STATACK_FR;
if (cmd == 1) {
- u_int8_t tmp ;
+ u_int8_t tmp;
+
tmp = CSR_READ_1(sc, FXP_CSR_SCB_STATACK);
if (tmp == 0xff || tmp == 0)
- return ; /* nothing to do */
- tmp &= ~statack ;
+ return; /* nothing to do */
+ tmp &= ~statack;
/* ack what we can */
if (tmp != 0)
CSR_WRITE_1(sc, FXP_CSR_SCB_STATACK, tmp);
- statack |= tmp ;
+ statack |= tmp;
}
fxp_intr_body(sc, statack, count);
}
@@ -1202,12 +1203,12 @@ fxp_intr(void *xsc)
struct ifnet *ifp = &sc->sc_if;
if (ifp->if_ipending & IFF_POLLING)
- return ;
+ return;
if (ether_poll_register(fxp_poll, ifp)) {
/* disable interrupts */
CSR_WRITE_1(sc, FXP_CSR_SCB_INTRCNTL, FXP_SCB_INTR_DISABLE);
fxp_poll(ifp, 0, poll_burst);
- return ;
+ return;
}
#endif