Subject: kern/5644: Accton 1207 recognized as 1207TX by de driver
To: None <gnats-bugs@gnats.netbsd.org>
From: Martin J. Laubach <mjl@emsi.priv.at>
List: netbsd-bugs
Date: 06/23/1998 22:53:17
>Number:         5644
>Category:       kern
>Synopsis:       Accton 1207 ethernet recognized as 1207TX
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 23 14:05:01 1998
>Last-Modified:
>Originator:     Martin J. Laubach
>Organization:
>Release:        1.3.2
>Environment:
System: NetBSD asparagus 1.3.2 NetBSD 1.3.2 (ASPARAGUS) #1: Mon Jun 15 20:08:31 CEST 1998 mjl@asparagus:/home/temp/kernel/sys/arch/i386/compile/ASPARAGUS i386


>Description:
  The de driver identifies my Accton 1207 (100baseT, 10baseT and 10base2
connectors) as 1207TX (which lacks the 10base2 connector), so you can't
activate the BNC-Port on the card because the kernel thinks it is not there.

>How-To-Repeat:
  Boot with a 1207 and see it identified as 1207TX.

>Fix:
  The quick and dirty fix is to just pretend it's a 1207 anyways.
No idea why the card is mis-identified in the first place.

--------------------------------------------------------
*** if_de.c.orig        Tue Jun 23 22:44:53 1998
--- if_de.c     Mon Jun 15 19:20:36 1998
***************
*** 2273,2285 ****
      strcpy(sc->tulip_boardid, "ACCTON ");
      switch (sc->tulip_chipid) {
        case TULIP_21140A:
            strcat(sc->tulip_boardid, "EN1207 ");
            sc->tulip_boardsw = &tulip_21140_accton_boardsw;
            break;
!       case TULIP_21140:
            strcat(sc->tulip_boardid, "EN1207TX ");
            sc->tulip_boardsw = &tulip_21140_eb_boardsw;
!             break;
          case TULIP_21040:
            strcat(sc->tulip_boardid, "EN1203 ");
              sc->tulip_boardsw = &tulip_21040_boardsw;
--- 2273,2286 ----
      strcpy(sc->tulip_boardid, "ACCTON ");
      switch (sc->tulip_chipid) {
        case TULIP_21140A:
+       case TULIP_21140:
            strcat(sc->tulip_boardid, "EN1207 ");
            sc->tulip_boardsw = &tulip_21140_accton_boardsw;
            break;
!       /*case TULIP_21140:
            strcat(sc->tulip_boardid, "EN1207TX ");
            sc->tulip_boardsw = &tulip_21140_eb_boardsw;
!             break;*/
          case TULIP_21040:
            strcat(sc->tulip_boardid, "EN1203 ");
              sc->tulip_boardsw = &tulip_21040_boardsw;

--------------------------------------------------------
>Audit-Trail:
>Unformatted: