Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Jan 1997 14:38:12 -0800 (PST)
From:      jeffe@ichips.intel.com
To:        freebsd-hackers@FreeBSD.ORG
Subject:   Patches to support Cogent EM110 network card.
Message-ID:  <199701212238.OAA26561@pdx800.jf.intel.com>

next in thread | raw e-mail | index | archive | help
The following patch adds support for the Cogent EM110 PCI 10/100 Mbit
ethernet card to the existing de interface driver.

All this does is recognize the new EM110 ID code and then uses the EM100
driver code.

This patch has been tested and works on:
	2.1.5-RELEASE
	2.1.6-RELEASE
	2.2-BETA

This patch changes /usr/src/sys/pci/{dc21040.h,if_de.c}

To apply this patch, save it in a file, say, /tmp/em110.patch,
cd to /usr/src/sys/pci, and do 'patch < /tmp/em110.patch'.
Build a new kernel and you're done.

Jeff Eaton
Intel Corporation
jeffe@ichips.intel.com


*** 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
+ };
  
  
  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



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