summaryrefslogtreecommitdiff
path: root/sys/dev/ic/am7990.c
diff options
context:
space:
mode:
authorJason Downs <downsj@cvs.openbsd.org>1997-08-08 08:05:43 +0000
committerJason Downs <downsj@cvs.openbsd.org>1997-08-08 08:05:43 +0000
commit46c443f39694837990ad4ff368f7dc0c5d52e002 (patch)
treee113b88b1f3eb249c72e388885608c5235bb0494 /sys/dev/ic/am7990.c
parentc6ee4401fc5332bc693592a596b39d45a63ee2b0 (diff)
Add hwreset callback; drivers need to set this appropiately.
Diffstat (limited to 'sys/dev/ic/am7990.c')
-rw-r--r--sys/dev/ic/am7990.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/ic/am7990.c b/sys/dev/ic/am7990.c
index a6a59211d01..a14e780c117 100644
--- a/sys/dev/ic/am7990.c
+++ b/sys/dev/ic/am7990.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: am7990.c,v 1.9 1996/11/28 23:27:46 niklas Exp $ */
+/* $OpenBSD: am7990.c,v 1.10 1997/08/08 08:05:40 downsj Exp $ */
/* $NetBSD: am7990.c,v 1.22 1996/10/13 01:37:19 christos Exp $ */
/*-
@@ -304,6 +304,10 @@ am7990_init(sc)
(*sc->sc_wrcsr)(sc, LE_CSR0, LE_C0_STOP);
DELAY(100);
+ /* Newer LANCE chips have a reset register */
+ if (sc->sc_hwreset)
+ (*sc->sc_hwreset)(sc);
+
/* Set the correct byte swapping mode, etc. */
(*sc->sc_wrcsr)(sc, LE_CSR3, sc->sc_conf3);