if_cm_isa.c (147256) | if_cm_isa.c (148887) |
---|---|
1/* $NetBSD: if_bah_zbus.c,v 1.6 2000/01/23 21:06:12 aymeric Exp $ */ 2 3#include <sys/cdefs.h> | 1/* $NetBSD: if_bah_zbus.c,v 1.6 2000/01/23 21:06:12 aymeric Exp $ */ 2 3#include <sys/cdefs.h> |
4__FBSDID("$FreeBSD: head/sys/dev/cm/if_cm_isa.c 147256 2005-06-10 16:49:24Z brooks $"); | 4__FBSDID("$FreeBSD: head/sys/dev/cm/if_cm_isa.c 148887 2005-08-09 10:20:02Z rwatson $"); |
5 6/*- 7 * Copyright (c) 1994, 1995, 1998 The NetBSD Foundation, Inc. 8 * All rights reserved. 9 * 10 * This code is derived from software contributed to The NetBSD Foundation 11 * by Ignatios Souvatzis. 12 * --- 89 unchanged lines hidden (view full) --- 102static int 103cm_isa_detach(device_t dev) 104{ 105 struct cm_softc *sc = device_get_softc(dev); 106 struct ifnet *ifp = sc->sc_ifp; 107 int s; 108 109 cm_stop(sc); | 5 6/*- 7 * Copyright (c) 1994, 1995, 1998 The NetBSD Foundation, Inc. 8 * All rights reserved. 9 * 10 * This code is derived from software contributed to The NetBSD Foundation 11 * by Ignatios Souvatzis. 12 * --- 89 unchanged lines hidden (view full) --- 102static int 103cm_isa_detach(device_t dev) 104{ 105 struct cm_softc *sc = device_get_softc(dev); 106 struct ifnet *ifp = sc->sc_ifp; 107 int s; 108 109 cm_stop(sc); |
110 ifp->if_flags &= ~IFF_RUNNING; | 110 ifp->if_drv_flags &= ~IFF_DRV_RUNNING; |
111 112 s = splimp(); 113 arc_ifdetach(ifp); 114 if_free(ifp); 115 splx(s); 116 117 bus_teardown_intr(dev, sc->irq_res, sc->irq_handle); 118 cm_release_resources(dev); --- 21 unchanged lines hidden --- | 111 112 s = splimp(); 113 arc_ifdetach(ifp); 114 if_free(ifp); 115 splx(s); 116 117 bus_teardown_intr(dev, sc->irq_res, sc->irq_handle); 118 cm_release_resources(dev); --- 21 unchanged lines hidden --- |