lance.c (270856) | lance.c (271849) |
---|---|
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 --- 51 unchanged lines hidden (view full) --- 60 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 61 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 62 * SUCH DAMAGE. 63 * 64 * @(#)if_le.c 8.2 (Berkeley) 11/16/93 65 */ 66 67#include <sys/cdefs.h> | 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 --- 51 unchanged lines hidden (view full) --- 60 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 61 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 62 * SUCH DAMAGE. 63 * 64 * @(#)if_le.c 8.2 (Berkeley) 11/16/93 65 */ 66 67#include <sys/cdefs.h> |
68__FBSDID("$FreeBSD: head/sys/dev/le/lance.c 270856 2014-08-30 19:55:54Z glebius $"); | 68__FBSDID("$FreeBSD: head/sys/dev/le/lance.c 271849 2014-09-19 03:51:26Z glebius $"); |
69 70#include <sys/param.h> 71#include <sys/bus.h> 72#include <sys/endian.h> 73#include <sys/lock.h> 74#include <sys/kernel.h> 75#include <sys/mbuf.h> 76#include <sys/mutex.h> --- 364 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"); | 69 70#include <sys/param.h> 71#include <sys/bus.h> 72#include <sys/endian.h> 73#include <sys/lock.h> 74#include <sys/kernel.h> 75#include <sys/mbuf.h> 76#include <sys/mutex.h> --- 364 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 --- |