Deleted Added
full compact
if_fe_pccard.c (147580) if_fe_pccard.c (150306)
1/*-
2 * All Rights Reserved, Copyright (C) Fujitsu Limited 1995
3 *
4 * This software may be used, modified, copied, distributed, and sold, in
5 * both source and binary form provided that the above copyright, these
6 * terms and the following disclaimer are retained. The name of the author
7 * and/or the contributor may not be used to endorse or promote products
8 * derived from this software without specific prior written permission.

--- 8 unchanged lines hidden (view full) ---

17 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
18 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
19 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
20 * SUCH DAMAGE.
21 *
22 */
23
24#include <sys/cdefs.h>
1/*-
2 * All Rights Reserved, Copyright (C) Fujitsu Limited 1995
3 *
4 * This software may be used, modified, copied, distributed, and sold, in
5 * both source and binary form provided that the above copyright, these
6 * terms and the following disclaimer are retained. The name of the author
7 * and/or the contributor may not be used to endorse or promote products
8 * derived from this software without specific prior written permission.

--- 8 unchanged lines hidden (view full) ---

17 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
18 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
19 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
20 * SUCH DAMAGE.
21 *
22 */
23
24#include <sys/cdefs.h>
25__FBSDID("$FreeBSD: head/sys/dev/fe/if_fe_pccard.c 147580 2005-06-24 14:36:54Z imp $");
25__FBSDID("$FreeBSD: head/sys/dev/fe/if_fe_pccard.c 150306 2005-09-19 03:10:21Z imp $");
26
27#include <sys/param.h>
28#include <sys/kernel.h>
29#include <sys/socket.h>
30#include <sys/systm.h>
31#include <sys/module.h>
32
33#include <sys/bus.h>

--- 148 unchanged lines hidden (view full) ---

182static int
183fe_pccard_detach(device_t dev)
184{
185 struct fe_softc *sc = device_get_softc(dev);
186 struct ifnet *ifp = sc->ifp;
187
188 fe_stop(sc);
189 ether_ifdetach(ifp);
26
27#include <sys/param.h>
28#include <sys/kernel.h>
29#include <sys/socket.h>
30#include <sys/systm.h>
31#include <sys/module.h>
32
33#include <sys/bus.h>

--- 148 unchanged lines hidden (view full) ---

182static int
183fe_pccard_detach(device_t dev)
184{
185 struct fe_softc *sc = device_get_softc(dev);
186 struct ifnet *ifp = sc->ifp;
187
188 fe_stop(sc);
189 ether_ifdetach(ifp);
190 if_free(ifp);
191 bus_teardown_intr(dev, sc->irq_res, sc->irq_handle);
190 bus_teardown_intr(dev, sc->irq_res, sc->irq_handle);
191 if_free(ifp);
192 fe_release_resource(dev);
193
194 return 0;
195}
196
197
198/*
199 * Probe and initialization for Fujitsu MBH10302 PCMCIA Ethernet interface.

--- 111 unchanged lines hidden ---
192 fe_release_resource(dev);
193
194 return 0;
195}
196
197
198/*
199 * Probe and initialization for Fujitsu MBH10302 PCMCIA Ethernet interface.

--- 111 unchanged lines hidden ---