Subject: Patch for Accton, was Re: semi-offtopic: netgear?
To: None <,>
From: Ross Harvey <>
List: port-alpha
Date: 08/13/1998 12:03:43
> >> I recently purchased an ACCTON 21140A based card
> >> and couldn't get it to work (I don't think it's just me)
> >> so I wanted to get real world verification that the next
> >> card I buy will work.
> >
> >If the Accton doesn't work, there's probably something more important
> >wrong.  The Accton and Netgear cards are probably nearly identical, so
> >if the one doesn't work the other probably won't either.  But who
> >knows...
> right!  thats why I want to find someone to confirm that the netgear
> should work before I buy it.

The de driver has quirk tables for a few Accton cards, but it only looks
at the MAC chip type to select between them.  In a lucky moment of
clairvoyance I tried disabling the quirk test and my Accton 21140 sprang
to life.

Index: if_de.c
RCS file: /cvsroot/src/sys/dev/pci/if_de.c,v
retrieving revision 1.72
diff -u -w -r1.72 if_de.c
--- if_de.c	1998/07/05 06:49:14	1.72
+++ if_de.c	1998/08/13 18:56:22
@@ -2291,7 +2291,7 @@
     tulip_softc_t * const sc)
     strcpy(sc->tulip_boardid, "ACCTON ");
-    switch (sc->tulip_chipid) {
+    switch (/*sc->tulip_chipid*/-123) {
 	case TULIP_21140A:
 	    strcat(sc->tulip_boardid, "EN1207 ");
 	    sc->tulip_boardsw = &tulip_21140_accton_boardsw;