if_wi.c (149601) | if_wi.c (150306) |
---|---|
1/* $NetBSD: wi.c,v 1.109 2003/01/09 08:52:19 dyoung Exp $ */ 2 3/*- 4 * Copyright (c) 1997, 1998, 1999 5 * Bill Paul <wpaul@ctr.columbia.edu>. 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 --- 48 unchanged lines hidden (view full) --- 57 * from the HCF Light code and corresponding documentation. 58 * 59 * This driver supports the ISA, PCMCIA and PCI versions of the Lucent 60 * WaveLan cards (based on the Hermes chipset), as well as the newer 61 * Prism 2 chipsets with firmware from Intersil and Symbol. 62 */ 63 64#include <sys/cdefs.h> | 1/* $NetBSD: wi.c,v 1.109 2003/01/09 08:52:19 dyoung Exp $ */ 2 3/*- 4 * Copyright (c) 1997, 1998, 1999 5 * Bill Paul <wpaul@ctr.columbia.edu>. 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 --- 48 unchanged lines hidden (view full) --- 57 * from the HCF Light code and corresponding documentation. 58 * 59 * This driver supports the ISA, PCMCIA and PCI versions of the Lucent 60 * WaveLan cards (based on the Hermes chipset), as well as the newer 61 * Prism 2 chipsets with firmware from Intersil and Symbol. 62 */ 63 64#include <sys/cdefs.h> |
65__FBSDID("$FreeBSD: head/sys/dev/wi/if_wi.c 149601 2005-08-29 20:06:02Z scottl $"); | 65__FBSDID("$FreeBSD: head/sys/dev/wi/if_wi.c 150306 2005-09-19 03:10:21Z imp $"); |
66 67#define WI_HERMES_AUTOINC_WAR /* Work around data write autoinc bug. */ 68#define WI_HERMES_STATS_WAR /* Work around stats counter bug. */ 69 70#define NBPFILTER 1 71 72#include <sys/param.h> 73#include <sys/systm.h> --- 455 unchanged lines hidden (view full) --- 529 sc->wi_gone |= !bus_child_present(dev); 530 531 wi_stop(ifp, 0); 532 533#if NBPFILTER > 0 534 bpfdetach(ifp); 535#endif 536 ieee80211_ifdetach(&sc->sc_ic); | 66 67#define WI_HERMES_AUTOINC_WAR /* Work around data write autoinc bug. */ 68#define WI_HERMES_STATS_WAR /* Work around stats counter bug. */ 69 70#define NBPFILTER 1 71 72#include <sys/param.h> 73#include <sys/systm.h> --- 455 unchanged lines hidden (view full) --- 529 sc->wi_gone |= !bus_child_present(dev); 530 531 wi_stop(ifp, 0); 532 533#if NBPFILTER > 0 534 bpfdetach(ifp); 535#endif 536 ieee80211_ifdetach(&sc->sc_ic); |
537 if_free(sc->sc_ifp); | |
538 WI_UNLOCK(sc); 539 bus_teardown_intr(dev, sc->irq, sc->wi_intrhand); | 537 WI_UNLOCK(sc); 538 bus_teardown_intr(dev, sc->irq, sc->wi_intrhand); |
539 if_free(sc->sc_ifp); |
|
540 wi_free(dev); 541#if __FreeBSD_version >= 500000 542 mtx_destroy(&sc->sc_mtx); 543#endif 544 return (0); 545} 546 547#ifdef __NetBSD__ --- 2687 unchanged lines hidden --- | 540 wi_free(dev); 541#if __FreeBSD_version >= 500000 542 mtx_destroy(&sc->sc_mtx); 543#endif 544 return (0); 545} 546 547#ifdef __NetBSD__ --- 2687 unchanged lines hidden --- |