summaryrefslogtreecommitdiffstats
path: root/sys/dev/ed
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1993-09-30 05:27:55 +0000
committerdg <dg@FreeBSD.org>1993-09-30 05:27:55 +0000
commit999ab90b6017e3197a4e037484644053b18a7ac1 (patch)
tree3a6c1c3fd9f05be782d7aca886db626ebbfd8613 /sys/dev/ed
parent9129d383e0b62ffe174dff764d22fd237eeb215e (diff)
downloadFreeBSD-src-999ab90b6017e3197a4e037484644053b18a7ac1.zip
FreeBSD-src-999ab90b6017e3197a4e037484644053b18a7ac1.tar.gz
* Revision 2.4 93/09/29 21:24:30 davidg
* Added software NIC reset in NE probe to work around a problem * with some NE boards where the 8390 doesn't reset properly on * power-up. Remove initialization of IMR/ISR in the NE probe * because this is inherent in the reset.
Diffstat (limited to 'sys/dev/ed')
-rw-r--r--sys/dev/ed/if_ed.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/sys/dev/ed/if_ed.c b/sys/dev/ed/if_ed.c
index 7fdb618..327be52 100644
--- a/sys/dev/ed/if_ed.c
+++ b/sys/dev/ed/if_ed.c
@@ -20,12 +20,18 @@
*/
/*
- * $Id: if_ed.c,v 2.3 93/09/29 15:10:16 davidg Exp Locker: davidg $
+ * $Id: if_ed.c,v 2.4 93/09/29 21:24:30 davidg Exp Locker: davidg $
*/
/*
* Modification history
*
+ * Revision 2.4 93/09/29 21:24:30 davidg
+ * Added software NIC reset in NE probe to work around a problem
+ * with some NE boards where the 8390 doesn't reset properly on
+ * power-up. Remove initialization of IMR/ISR in the NE probe
+ * because this is inherent in the reset.
+ *
* Revision 2.3 93/09/29 15:10:16 davidg
* credit Charles Hannum
*
@@ -803,8 +809,11 @@ ed_probe_Novell(isa_dev)
DELAY(5000);
#endif
- outb(sc->nic_addr + ED_P0_IMR, 0);
- outb(sc->nic_addr + ED_P0_ISR, 0xff);
+ /*
+ * This is needed because some NE clones apparently don't reset the
+ * NIC properly (or the NIC chip doesn't reset fully on power-up)
+ */
+ outb(sc->nic_addr + ED_P0_CR, ED_CR_RD2|ED_CR_STP);
sc->vendor = ED_VENDOR_NOVELL;
sc->mem_shared = 0;
OpenPOWER on IntegriCloud