Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic Add a "stop_card", which is the opposite of "init...



details:   https://anonhg.NetBSD.org/src/rev/fc71266eb0a9
branches:  trunk
changeset: 503735:fc71266eb0a9
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon Feb 12 18:56:26 2001 +0000

description:
Add a "stop_card", which is the opposite of "init_card", and
call it from dp8390_stop().

diffstat:

 sys/dev/ic/dp8390.c    |  5 ++++-
 sys/dev/ic/dp8390var.h |  3 ++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diffs (36 lines):

diff -r 172725259eb6 -r fc71266eb0a9 sys/dev/ic/dp8390.c
--- a/sys/dev/ic/dp8390.c       Mon Feb 12 18:52:22 2001 +0000
+++ b/sys/dev/ic/dp8390.c       Mon Feb 12 18:56:26 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dp8390.c,v 1.43 2001/02/12 18:52:22 thorpej Exp $      */
+/*     $NetBSD: dp8390.c,v 1.44 2001/02/12 18:56:26 thorpej Exp $      */
 
 /*
  * Device driver for National Semiconductor DS8390/WD83C690 based ethernet
@@ -245,6 +245,9 @@
        while (((NIC_GET(regt, regh,
            ED_P0_ISR) & ED_ISR_RST) == 0) && --n)
                DELAY(1);
+
+       if (sc->stop_card != NULL)
+               (*sc->stop_card)(sc);
 }
 
 /*
diff -r 172725259eb6 -r fc71266eb0a9 sys/dev/ic/dp8390var.h
--- a/sys/dev/ic/dp8390var.h    Mon Feb 12 18:52:22 2001 +0000
+++ b/sys/dev/ic/dp8390var.h    Mon Feb 12 18:56:26 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dp8390var.h,v 1.22 2001/02/12 18:49:04 thorpej Exp $   */
+/*     $NetBSD: dp8390var.h,v 1.23 2001/02/12 18:56:26 thorpej Exp $   */
 
 /*
  * Device driver for National Semiconductor DS8390/WD83C690 based ethernet
@@ -77,6 +77,7 @@
 
        int     (*test_mem) __P((struct dp8390_softc *));
        void    (*init_card) __P((struct dp8390_softc *));
+       void    (*stop_card) __P((struct dp8390_softc *));
        void    (*read_hdr) __P((struct dp8390_softc *,
                    int, struct dp8390_ring *));
        void    (*recv_int) __P((struct dp8390_softc *));



Home | Main Index | Thread Index | Old Index