Add a "stop_card", which is the opposite of "init_card", and
call it from dp8390_stop().
This commit is contained in:
parent
b17ef220b5
commit
ec0ab7054b
@ -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
|
* Device driver for National Semiconductor DS8390/WD83C690 based ethernet
|
||||||
@ -245,6 +245,9 @@ dp8390_stop(sc)
|
|||||||
while (((NIC_GET(regt, regh,
|
while (((NIC_GET(regt, regh,
|
||||||
ED_P0_ISR) & ED_ISR_RST) == 0) && --n)
|
ED_P0_ISR) & ED_ISR_RST) == 0) && --n)
|
||||||
DELAY(1);
|
DELAY(1);
|
||||||
|
|
||||||
|
if (sc->stop_card != NULL)
|
||||||
|
(*sc->stop_card)(sc);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -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
|
* Device driver for National Semiconductor DS8390/WD83C690 based ethernet
|
||||||
@ -77,6 +77,7 @@ struct dp8390_softc {
|
|||||||
|
|
||||||
int (*test_mem) __P((struct dp8390_softc *));
|
int (*test_mem) __P((struct dp8390_softc *));
|
||||||
void (*init_card) __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 *,
|
void (*read_hdr) __P((struct dp8390_softc *,
|
||||||
int, struct dp8390_ring *));
|
int, struct dp8390_ring *));
|
||||||
void (*recv_int) __P((struct dp8390_softc *));
|
void (*recv_int) __P((struct dp8390_softc *));
|
||||||
|
Loading…
Reference in New Issue
Block a user