Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Jan 1997 11:06:04 -0800 (PST)
From:      jeffe@ichips.intel.com
To:        freebsd-gnats-submit@freebsd.org
Subject:   kern/2621: Patch to support Cogent EM110 fast-ethernet card.
Message-ID:  <199701301906.LAA25239@freefall.freebsd.org>
Resent-Message-ID: <199701301910.LAA25352@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         2621
>Category:       kern
>Synopsis:       Patch to support Cogent EM110 fast-ethernet card.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 30 11:10:00 PST 1997
>Last-Modified:
>Originator:     Jeff Eaton
>Organization:
Intel Corporation
>Release:        2.2-BETA
>Environment:
FreeBSD netm-test.jf.intel.com 2.2-BETA_A FreeBSD 2.2-BETA_A #2: Tue Jan 21 14:07:05 PST 1997     root@netm-test.jf.intel.com:/usr/src/sys/compile/NETM  i386

>Description:
I submitted this patch to the hackers list, and was told it was a better
idea to submit a bug report, even though this is new functionality, and
not really a bug.

The provided patch will allow the Cogent EM110 to work.  All it does
is check for the ID number, and then uses the existing EM100 code.
This works for 2.1.5-RELEASE, 2.1.6-RELEASE, and 2.2-BETA.
>How-To-Repeat:
Boot with an EM110.
>Fix:
patch in /usr/src/sys/pci.  It would not surprise me if tabs got
turned into spaces when I cut and pasted this.

*** dc21040.h.bak       Tue Dec  3 02:52:45 1996
--- dc21040.h   Tue Jan 21 13:17:56 1997
***************
*** 294,299 ****
--- 294,300 ----
  #define       TULIP_OUI_COGENT_1              0x00
  #define       TULIP_OUI_COGENT_2              0x92
  #define       TULIP_COGENT_EM100_ID           0x12
+ #define       TULIP_COGENT_EM110_ID           0x14
  
  
  /*
*** if_de.c.bak Tue Jan 21 13:30:49 1997
--- if_de.c     Tue Jan 21 13:20:28 1997
***************
*** 1593,1598 ****
--- 1593,1607 ----
      tulip_21140_cogent_em100_media_select,
      tulip_21140_nomii_100only_media_preset
  };
+ 
+ /* The cogent 110 acts just like the em100, but the ID is different */
+ static const tulip_boardsw_t tulip_21140_cogent_em110_boardsw = {
+     TULIP_21140_COGENT_EM100,
+     "Cogent EM110 ",
+     tulip_21140_cogent_em100_media_probe,
+     tulip_21140_cogent_em100_media_select,
+     tulip_21140_nomii_100only_media_preset
+ };
  ^L
  
  static int
***************
*** 3255,3260 ****
--- 3264,3271 ----
        if (sc->tulip_chipid == TULIP_21140 || sc->tulip_chipid == TULIP_21140A) {
            if (sc->tulip_rombuf[32] == TULIP_COGENT_EM100_ID)
                sc->tulip_boardsw = &tulip_21140_cogent_em100_boardsw;
+           if (sc->tulip_rombuf[32] == TULIP_COGENT_EM110_ID)
+               sc->tulip_boardsw = &tulip_21140_cogent_em110_boardsw;
        }
      } else if (sc->tulip_hwaddr[0] == TULIP_OUI_ZNYX_0
            && sc->tulip_hwaddr[1] == TULIP_OUI_ZNYX_1

>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199701301906.LAA25239>