pdq_ifsubr.c (93383) | pdq_ifsubr.c (93818) |
---|---|
1/* $NetBSD: pdq_ifsubr.c,v 1.38 2001/12/21 23:21:47 matt Exp $ */ 2 3/*- 4 * Copyright (c) 1995, 1996 Matt Thomas <matt@3am-software.com> 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 10 unchanged lines hidden (view full) --- 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * 26 * $NetBSD: pdq_ifsubr.c,v 1.12 1997/06/05 01:56:35 thomas Exp$ | 1/* $NetBSD: pdq_ifsubr.c,v 1.38 2001/12/21 23:21:47 matt Exp $ */ 2 3/*- 4 * Copyright (c) 1995, 1996 Matt Thomas <matt@3am-software.com> 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 10 unchanged lines hidden (view full) --- 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * 26 * $NetBSD: pdq_ifsubr.c,v 1.12 1997/06/05 01:56:35 thomas Exp$ |
27 * $FreeBSD: head/sys/dev/pdq/pdq_ifsubr.c 93383 2002-03-29 11:22:22Z mdodd $ | 27 * $FreeBSD: head/sys/dev/pdq/pdq_ifsubr.c 93818 2002-04-04 21:03:38Z jhb $ |
28 */ 29 30/* 31 * DEC PDQ FDDI Controller; code for BSD derived operating systems 32 * 33 * This module provide bus independent BSD specific O/S functions. 34 * (ie. it provides an ifnet interface to the rest of the system) 35 */ --- 385 unchanged lines hidden (view full) --- 421#define IFF_NOTRAILERS 0 422#endif 423 424void 425pdq_ifattach(pdq_softc_t *sc) 426{ 427 struct ifnet *ifp = &sc->sc_if; 428 | 28 */ 29 30/* 31 * DEC PDQ FDDI Controller; code for BSD derived operating systems 32 * 33 * This module provide bus independent BSD specific O/S functions. 34 * (ie. it provides an ifnet interface to the rest of the system) 35 */ --- 385 unchanged lines hidden (view full) --- 421#define IFF_NOTRAILERS 0 422#endif 423 424void 425pdq_ifattach(pdq_softc_t *sc) 426{ 427 struct ifnet *ifp = &sc->sc_if; 428 |
429 mtx_init(&sc->mtx, device_get_nameunit(sc->dev), MTX_DEF | MTX_RECURSE); | 429 mtx_init(&sc->mtx, device_get_nameunit(sc->dev), MTX_NETWORK_LOCK, 430 MTX_DEF | MTX_RECURSE); |
430 431 ifp->if_softc = sc; 432 ifp->if_init = (if_init_f_t *)pdq_ifinit; 433 ifp->if_snd.ifq_maxlen = IFQ_MAXLEN; 434 ifp->if_flags = IFF_BROADCAST|IFF_SIMPLEX|IFF_NOTRAILERS|IFF_MULTICAST; 435 436#if (defined(__FreeBSD__) && BSD >= 199506) || defined(__NetBSD__) 437 ifp->if_watchdog = pdq_ifwatchdog; --- 298 unchanged lines hidden --- | 431 432 ifp->if_softc = sc; 433 ifp->if_init = (if_init_f_t *)pdq_ifinit; 434 ifp->if_snd.ifq_maxlen = IFQ_MAXLEN; 435 ifp->if_flags = IFF_BROADCAST|IFF_SIMPLEX|IFF_NOTRAILERS|IFF_MULTICAST; 436 437#if (defined(__FreeBSD__) && BSD >= 199506) || defined(__NetBSD__) 438 ifp->if_watchdog = pdq_ifwatchdog; --- 298 unchanged lines hidden --- |