summaryrefslogtreecommitdiffstats
path: root/sys/dev/ed
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2005-09-07 03:20:33 +0000
committerimp <imp@FreeBSD.org>2005-09-07 03:20:33 +0000
commitaa9d523c4119c5a4b3d56e6f062a81e051d4c087 (patch)
tree5b0921bfa84ddc67a2470b83fdd8625a798baea0 /sys/dev/ed
parentdd6197a72f19c2421d29832199b9733578e71b52 (diff)
downloadFreeBSD-src-aa9d523c4119c5a4b3d56e6f062a81e051d4c087.zip
FreeBSD-src-aa9d523c4119c5a4b3d56e6f062a81e051d4c087.tar.gz
o Expose ed_probe_Novel_generic, it is useful for pccard case.
o Fix a now stale comment. There are likely many others like them, but this one definitely hasn't been true since DELAY was introduced into the tree.
Diffstat (limited to 'sys/dev/ed')
-rw-r--r--sys/dev/ed/if_ed_novell.c7
-rw-r--r--sys/dev/ed/if_edvar.h1
2 files changed, 3 insertions, 5 deletions
diff --git a/sys/dev/ed/if_ed_novell.c b/sys/dev/ed/if_ed_novell.c
index 2d763a2..032dc57 100644
--- a/sys/dev/ed/if_ed_novell.c
+++ b/sys/dev/ed/if_ed_novell.c
@@ -64,7 +64,7 @@ static int ed_probe_gwether(device_t);
/*
* Probe and vendor-specific initialization routine for NE1000/2000 boards
*/
-static int
+int
ed_probe_Novell_generic(device_t dev, int flags)
{
struct ed_softc *sc = device_get_softc(dev);
@@ -84,10 +84,7 @@ ed_probe_Novell_generic(device_t dev, int flags)
/*
* I don't know if this is necessary; probably cruft leftover from
* Clarkson packet driver code. Doesn't do a thing on the boards I've
- * tested. -DG [note that an outb(0x84, 0) seems to work here, and is
- * non-invasive...but some boards don't seem to reset and I don't have
- * complete documentation on what the 'right' thing to do is...so we
- * do the invasive thing for now. Yuck.]
+ * tested. -DG
*/
ed_asic_outb(sc, ED_NOVELL_RESET, tmp);
DELAY(5000);
diff --git a/sys/dev/ed/if_edvar.h b/sys/dev/ed/if_edvar.h
index f125d38..571e7c2 100644
--- a/sys/dev/ed/if_edvar.h
+++ b/sys/dev/ed/if_edvar.h
@@ -196,6 +196,7 @@ int ed_probe_3Com(device_t, int, int);
#ifdef ED_SIC
int ed_probe_SIC(device_t, int, int);
#endif
+int ed_probe_Novell_generic(device_t, int);
int ed_probe_Novell(device_t, int, int);
void ed_Novell_read_mac(struct ed_softc *);
#ifdef ED_HPP
OpenPOWER on IntegriCloud