if_sn.c (150183) | if_sn.c (150306) |
---|---|
1/*- 2 * Copyright (c) 1996 Gardner Buchanan <gbuchanan@shl.com> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 16 unchanged lines hidden (view full) --- 25 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 29 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 */ 31 32#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1996 Gardner Buchanan <gbuchanan@shl.com> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 16 unchanged lines hidden (view full) --- 25 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 29 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 */ 31 32#include <sys/cdefs.h> |
33__FBSDID("$FreeBSD: head/sys/dev/sn/if_sn.c 150183 2005-09-15 19:34:12Z ru $"); | 33__FBSDID("$FreeBSD: head/sys/dev/sn/if_sn.c 150306 2005-09-19 03:10:21Z imp $"); |
34 35/* 36 * This is a driver for SMC's 9000 series of Ethernet adapters. 37 * 38 * This FreeBSD driver is derived from the smc9194 Linux driver by 39 * Erik Stahlman and is Copyright (C) 1996 by Erik Stahlman. 40 * This driver also shamelessly borrows from the FreeBSD ep driver 41 * which is Copyright (C) 1994 Herb Peyerl <hpeyerl@novatel.ca> --- 186 unchanged lines hidden (view full) --- 228sn_detach(device_t dev) 229{ 230 struct sn_softc *sc = device_get_softc(dev); 231 struct ifnet *ifp = sc->ifp; 232 233 snstop(sc); 234 ifp->if_drv_flags &= ~IFF_DRV_RUNNING; 235 ether_ifdetach(ifp); | 34 35/* 36 * This is a driver for SMC's 9000 series of Ethernet adapters. 37 * 38 * This FreeBSD driver is derived from the smc9194 Linux driver by 39 * Erik Stahlman and is Copyright (C) 1996 by Erik Stahlman. 40 * This driver also shamelessly borrows from the FreeBSD ep driver 41 * which is Copyright (C) 1994 Herb Peyerl <hpeyerl@novatel.ca> --- 186 unchanged lines hidden (view full) --- 228sn_detach(device_t dev) 229{ 230 struct sn_softc *sc = device_get_softc(dev); 231 struct ifnet *ifp = sc->ifp; 232 233 snstop(sc); 234 ifp->if_drv_flags &= ~IFF_DRV_RUNNING; 235 ether_ifdetach(ifp); |
236 if_free(ifp); | |
237 sn_deactivate(dev); | 236 sn_deactivate(dev); |
237 if_free(ifp); |
|
238 SN_LOCK_DESTROY(sc); 239 return 0; 240} 241 242static void 243sninit(void *xsc) 244{ 245 struct sn_softc *sc = xsc; --- 1191 unchanged lines hidden --- | 238 SN_LOCK_DESTROY(sc); 239 return 0; 240} 241 242static void 243sninit(void *xsc) 244{ 245 struct sn_softc *sc = xsc; --- 1191 unchanged lines hidden --- |