summaryrefslogtreecommitdiffstats
path: root/sys/dev/sn/if_sn.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2000-12-13 01:47:19 +0000
committerimp <imp@FreeBSD.org>2000-12-13 01:47:19 +0000
commite1fe72742c53537e4980deffe6803189c00560fa (patch)
treeccf3d6ebc59b043b73c59182f1c8b25512734875 /sys/dev/sn/if_sn.c
parentac4f44c24e80fa2aed5a82cfeeafffe9ff6d77a0 (diff)
downloadFreeBSD-src-e1fe72742c53537e4980deffe6803189c00560fa.zip
FreeBSD-src-e1fe72742c53537e4980deffe6803189c00560fa.tar.gz
Add isa support:
o write isa driver routines. o factor detach routine in sn_detach.
Diffstat (limited to 'sys/dev/sn/if_sn.c')
-rw-r--r--sys/dev/sn/if_sn.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/dev/sn/if_sn.c b/sys/dev/sn/if_sn.c
index ad3a3b8..64c1bef 100644
--- a/sys/dev/sn/if_sn.c
+++ b/sys/dev/sn/if_sn.c
@@ -244,6 +244,17 @@ sn_attach(device_t dev)
}
+int
+sn_detach(device_t dev)
+{
+ struct sn_softc *sc = device_get_softc(dev);
+
+ sc->arpcom.ac_if.if_flags &= ~IFF_RUNNING;
+ ether_ifdetach(&sc->arpcom.ac_if, ETHER_BPF_SUPPORTED);
+ sn_deactivate(dev);
+ return 0;
+}
+
/*
* Reset and initialize the chip
*/
OpenPOWER on IntegriCloud