Subject: port-i386/13947: 3C579 EISA network card does not work
To: None <gnats-bugs@gnats.netbsd.org>
From: Christian Groessler <cpg@aladdin.de>
List: netbsd-bugs
Date: 09/14/2001 01:06:16
>Number:         13947
>Category:       port-i386
>Synopsis:       3C579 EISA network card does not work
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-i386-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 13 16:07:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Christian Groessler
>Release:        NetBSD-current Sep-14-2001
>Organization:
	
>Environment:
	
System: NetBSD gibbon 1.5X NetBSD 1.5X (GIBBON) #0: Thu Sep 13 23:07:21 CEST 2001 chris@gibbon:/usr/oth2/src/sys/arch/i386/compile/GIBBON i386
Architecture: i386
Machine: i386
>Description:
	(please see
http://mail-index.netbsd.org/port-i386/2001/09/03/0009.html and the
following thread)

On my 486 EISA machines, both a EISA 3Com 3c579 network card and a ISA
3c509 configured in EISA mode don't work. They are detected by the
startup code. But the card does not work.

>How-To-Repeat:
	Insert one of those cards into your 486 EISA machine. Watch
them not working...
>Fix:
	After suggestion from jdolecek@netbsd.org (see
http://mail-index.netbsd.org/port-i386/2001/09/06/0012.html) I tried a
bigger delay at card initialization time. It appears to work:
(1000 did work for the 3c579, but the 3c509 needed 2000 - I use 4000
to be on the safe side...)

------------
Index: if_ep_eisa.c
===================================================================
RCS file: /net/swamp/zeug/netbsd-rsync/main/syssrc/sys/dev/eisa/if_ep_eisa.c,v
retrieving revision 1.22
diff -u -p -r1.22 if_ep_eisa.c
--- if_ep_eisa.c        2000/05/07 13:57:16     1.22
+++ if_ep_eisa.c        2001/09/09 15:27:56
@@ -242,7 +242,7 @@ ep_eisa_attach(parent, self, aux)
        /* Reset card. */
        bus_space_write_1(iot, ioh_cfg, EP_EISA_CFG_CONTROL, 
            EISA_ENABLE | EISA_RESET);
-       delay(10);
+       delay(4000);
        bus_space_write_1(iot, ioh_cfg, EP_EISA_CFG_CONTROL, EISA_ENABLE);
        /* Wait for reset? */
        delay(1000);
------------


>Release-Note:
>Audit-Trail:
>Unformatted: