if_ipw.c (149336) | if_ipw.c (150306) |
---|---|
1/* $FreeBSD: head/sys/dev/ipw/if_ipw.c 149336 2005-08-20 15:03:41Z damien $ */ | 1/* $FreeBSD: head/sys/dev/ipw/if_ipw.c 150306 2005-09-19 03:10:21Z imp $ */ |
2 3/*- 4 * Copyright (c) 2004, 2005 5 * Damien Bergamini <damien.bergamini@free.fr>. 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 9 * are met: --- 13 unchanged lines hidden (view full) --- 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> | 2 3/*- 4 * Copyright (c) 2004, 2005 5 * Damien Bergamini <damien.bergamini@free.fr>. 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 9 * are met: --- 13 unchanged lines hidden (view full) --- 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: head/sys/dev/ipw/if_ipw.c 149336 2005-08-20 15:03:41Z damien $"); | 31__FBSDID("$FreeBSD: head/sys/dev/ipw/if_ipw.c 150306 2005-09-19 03:10:21Z imp $"); |
32 33/*- 34 * Intel(R) PRO/Wireless 2100 MiniPCI driver 35 * http://www.intel.com/network/connectivity/products/wireless/prowireless_mobile.htm 36 */ 37 38#include <sys/param.h> 39#include <sys/sysctl.h> --- 346 unchanged lines hidden (view full) --- 386 ipw_stop(sc); 387 ipw_free_firmware(sc); 388 389 IPW_UNLOCK(sc); 390 391 if (ifp != NULL) { 392 bpfdetach(ifp); 393 ieee80211_ifdetach(ic); | 32 33/*- 34 * Intel(R) PRO/Wireless 2100 MiniPCI driver 35 * http://www.intel.com/network/connectivity/products/wireless/prowireless_mobile.htm 36 */ 37 38#include <sys/param.h> 39#include <sys/sysctl.h> --- 346 unchanged lines hidden (view full) --- 386 ipw_stop(sc); 387 ipw_free_firmware(sc); 388 389 IPW_UNLOCK(sc); 390 391 if (ifp != NULL) { 392 bpfdetach(ifp); 393 ieee80211_ifdetach(ic); |
394 if_free(ifp); | |
395 } 396 397 ipw_release(sc); 398 399 if (sc->irq != NULL) { 400 bus_teardown_intr(dev, sc->irq, sc->sc_ih); 401 bus_release_resource(dev, SYS_RES_IRQ, sc->irq_rid, sc->irq); 402 } 403 404 if (sc->mem != NULL) 405 bus_release_resource(dev, SYS_RES_MEMORY, sc->mem_rid, sc->mem); | 394 } 395 396 ipw_release(sc); 397 398 if (sc->irq != NULL) { 399 bus_teardown_intr(dev, sc->irq, sc->sc_ih); 400 bus_release_resource(dev, SYS_RES_IRQ, sc->irq_rid, sc->irq); 401 } 402 403 if (sc->mem != NULL) 404 bus_release_resource(dev, SYS_RES_MEMORY, sc->mem_rid, sc->mem); |
405 if (ifp != NULL) 406 if_free(ifp); |
|
406 407 mtx_destroy(&sc->sc_mtx); 408 409 return 0; 410} 411 412static int 413ipw_dma_alloc(struct ipw_softc *sc) --- 1797 unchanged lines hidden --- | 407 408 mtx_destroy(&sc->sc_mtx); 409 410 return 0; 411} 412 413static int 414ipw_dma_alloc(struct ipw_softc *sc) --- 1797 unchanged lines hidden --- |