summaryrefslogtreecommitdiffstats
path: root/sys/dev/sn/if_sn_isa.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_isa.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_isa.c')
-rw-r--r--sys/dev/sn/if_sn_isa.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/sys/dev/sn/if_sn_isa.c b/sys/dev/sn/if_sn_isa.c
index c48d4bc..d31c2df 100644
--- a/sys/dev/sn/if_sn_isa.c
+++ b/sys/dev/sn/if_sn_isa.c
@@ -40,10 +40,10 @@
#include <machine/bus.h>
#include <machine/resource.h>
+#include <net/ethernet.h>
#include <net/if.h>
#include <net/if_arp.h>
-
#include <isa/isavar.h>
#include <dev/sn/if_snvar.h>
@@ -64,20 +64,17 @@ sn_isa_probe (device_t dev)
static int
sn_isa_attach (device_t dev)
{
-#if 0 /* currently not tested */
- struct sn_softc *sc = device_get_softc(dev);
-#endif
+ struct sn_softc *sc = device_get_softc(dev);
-#if 0 /* currently not tested */
- sc->pccard_enaddr = 0;
-#endif
- return (0);
+ sc->pccard_enaddr = 0;
+ return (sn_attach(dev));
}
static device_method_t sn_isa_methods[] = {
/* Device interface */
DEVMETHOD(device_probe, sn_isa_probe),
DEVMETHOD(device_attach, sn_isa_attach),
+ DEVMETHOD(device_detach, sn_detach),
{ 0, 0 }
};
OpenPOWER on IntegriCloud