if_ep.c (148887) | if_ep.c (150306) |
---|---|
1/*- 2 * Copyright (c) 1994 Herb Peyerl <hpeyerl@novatel.ca> 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 --- 15 unchanged lines hidden (view full) --- 24 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 */ 30 31#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1994 Herb Peyerl <hpeyerl@novatel.ca> 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 --- 15 unchanged lines hidden (view full) --- 24 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 */ 30 31#include <sys/cdefs.h> |
32__FBSDID("$FreeBSD: head/sys/dev/ep/if_ep.c 148887 2005-08-09 10:20:02Z rwatson $"); | 32__FBSDID("$FreeBSD: head/sys/dev/ep/if_ep.c 150306 2005-09-19 03:10:21Z imp $"); |
33 34/* 35 * Modified from the FreeBSD 1.1.5.1 version by: 36 * Andres Vega Garcia 37 * INRIA - Sophia Antipolis, France 38 * avega@sophia.inria.fr 39 */ 40 --- 314 unchanged lines hidden (view full) --- 355 356 if (sc->gone) 357 return (0); 358 if (bus_child_present(dev)) 359 epstop(sc); 360 361 ifp->if_drv_flags &= ~IFF_DRV_RUNNING; 362 ether_ifdetach(ifp); | 33 34/* 35 * Modified from the FreeBSD 1.1.5.1 version by: 36 * Andres Vega Garcia 37 * INRIA - Sophia Antipolis, France 38 * avega@sophia.inria.fr 39 */ 40 --- 314 unchanged lines hidden (view full) --- 355 356 if (sc->gone) 357 return (0); 358 if (bus_child_present(dev)) 359 epstop(sc); 360 361 ifp->if_drv_flags &= ~IFF_DRV_RUNNING; 362 ether_ifdetach(ifp); |
363 if_free(ifp); | |
364 365 sc->gone = 1; 366 ep_free(dev); | 363 364 sc->gone = 1; 365 ep_free(dev); |
366 if_free(ifp); |
|
367 EP_LOCK_DESTROY(sc); 368 369 return (0); 370} 371 372static void 373epinit(void *xsc) 374{ --- 612 unchanged lines hidden --- | 367 EP_LOCK_DESTROY(sc); 368 369 return (0); 370} 371 372static void 373epinit(void *xsc) 374{ --- 612 unchanged lines hidden --- |