lance.c (4e27d36d38f4c3b12bcc1855c5d41527d08d1ce0) | lance.c (c8dfaf382fa6df9dc6fd1e1c3356e0c8bf607e6a) |
---|---|
1/* $NetBSD: lance.c,v 1.34 2005/12/24 20:27:30 perry Exp $ */ 2 3/*- 4 * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc. 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to The NetBSD Foundation 8 * by Charles M. Hannum and by Jason R. Thorpe of the Numerical Aerospace --- 432 unchanged lines hidden (view full) --- 441 LE_LOCK_ASSERT(sc, MA_OWNED); 442 443 if (sc->sc_wdog_timer == 0 || --sc->sc_wdog_timer != 0) { 444 callout_reset(&sc->sc_wdog_ch, hz, lance_watchdog, sc); 445 return; 446 } 447 448 if_printf(ifp, "device timeout\n"); | 1/* $NetBSD: lance.c,v 1.34 2005/12/24 20:27:30 perry Exp $ */ 2 3/*- 4 * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc. 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to The NetBSD Foundation 8 * by Charles M. Hannum and by Jason R. Thorpe of the Numerical Aerospace --- 432 unchanged lines hidden (view full) --- 441 LE_LOCK_ASSERT(sc, MA_OWNED); 442 443 if (sc->sc_wdog_timer == 0 || --sc->sc_wdog_timer != 0) { 444 callout_reset(&sc->sc_wdog_ch, hz, lance_watchdog, sc); 445 return; 446 } 447 448 if_printf(ifp, "device timeout\n"); |
449 ++ifp->if_oerrors; | 449 if_inc_counter(ifp, IFCOUNTER_OERRORS, 1); |
450 lance_init_locked(sc); 451} 452 453static int 454lance_mediachange(struct ifnet *ifp) 455{ 456 struct lance_softc *sc = ifp->if_softc; 457 --- 360 unchanged lines hidden --- | 450 lance_init_locked(sc); 451} 452 453static int 454lance_mediachange(struct ifnet *ifp) 455{ 456 struct lance_softc *sc = ifp->if_softc; 457 --- 360 unchanged lines hidden --- |