if_xe_pccard.c (150109) | if_xe_pccard.c (150306) |
---|---|
1/*- 2 * Copyright (c) 2002 Takeshi Shibagaki 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 --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2002 Takeshi Shibagaki 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 --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sys/dev/xe/if_xe_pccard.c 150109 2005-09-13 19:54:14Z imp $"); | 28__FBSDID("$FreeBSD: head/sys/dev/xe/if_xe_pccard.c 150306 2005-09-19 03:10:21Z imp $"); |
29 30/* xe pccard interface driver */ 31 32#include <sys/param.h> 33#include <sys/bus.h> 34#include <sys/kernel.h> 35#include <sys/module.h> 36#include <sys/socket.h> --- 286 unchanged lines hidden (view full) --- 323xe_pccard_detach(device_t dev) 324{ 325 struct xe_softc *sc = device_get_softc(dev); 326 327 DEVPRINTF(2, (dev, "pccard_detach\n")); 328 329 sc->ifp->if_drv_flags &= ~IFF_DRV_RUNNING; 330 ether_ifdetach(sc->ifp); | 29 30/* xe pccard interface driver */ 31 32#include <sys/param.h> 33#include <sys/bus.h> 34#include <sys/kernel.h> 35#include <sys/module.h> 36#include <sys/socket.h> --- 286 unchanged lines hidden (view full) --- 323xe_pccard_detach(device_t dev) 324{ 325 struct xe_softc *sc = device_get_softc(dev); 326 327 DEVPRINTF(2, (dev, "pccard_detach\n")); 328 329 sc->ifp->if_drv_flags &= ~IFF_DRV_RUNNING; 330 ether_ifdetach(sc->ifp); |
331 if_free(sc->ifp); | |
332 xe_deactivate(dev); | 331 xe_deactivate(dev); |
332 if_free(sc->ifp); |
|
333 return (0); 334} 335 336static int 337xe_pccard_probe(device_t dev) 338{ 339 const struct xe_pccard_product *xpp; 340 --- 43 unchanged lines hidden --- | 333 return (0); 334} 335 336static int 337xe_pccard_probe(device_t dev) 338{ 339 const struct xe_pccard_product *xpp; 340 --- 43 unchanged lines hidden --- |