From owner-freebsd-hackers Tue Jan 21 14:39:28 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id OAA18708 for hackers-outgoing; Tue, 21 Jan 1997 14:39:28 -0800 (PST) Received: from ormail.intel.com (ormail.intel.com [134.134.248.3]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id OAA18698 for ; Tue, 21 Jan 1997 14:39:26 -0800 (PST) From: jeffe@ichips.intel.com Received: from ichips.intel.com (ichips.intel.com [134.134.50.200]) by ormail.intel.com (8.8.4/8.8.4) with ESMTP id OAA29296 for ; Tue, 21 Jan 1997 14:38:11 -0800 (PST) Received: from pdx800.jf.intel.com by ichips.intel.com (8.7.4/jIII) id OAA00672; Tue, 21 Jan 1997 14:37:00 -0800 (PST) Received: by pdx800.jf.intel.com (8.7.1/SW1.11) id OAA26561; Tue, 21 Jan 1997 14:38:12 -0800 (PST) Date: Tue, 21 Jan 1997 14:38:12 -0800 (PST) Message-Id: <199701212238.OAA26561@pdx800.jf.intel.com> To: freebsd-hackers@FreeBSD.ORG Subject: Patches to support Cogent EM110 network card. Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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