From owner-freebsd-current@FreeBSD.ORG Sun Oct 2 04:20:51 2005 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F2D6016A420 for ; Sun, 2 Oct 2005 04:20:50 +0000 (GMT) (envelope-from benlutz@datacomm.ch) Received: from maxlor.mine.nu (c-213-160-32-54.customer.ggaweb.ch [213.160.32.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C4E943D5D for ; Sun, 2 Oct 2005 04:20:47 +0000 (GMT) (envelope-from benlutz@datacomm.ch) Received: from localhost (unknown [127.0.0.1]) by maxlor.mine.nu (Postfix) with ESMTP id C51292E01C for ; Sun, 2 Oct 2005 06:20:45 +0200 (CEST) Received: from maxlor.mine.nu ([127.0.0.1]) by localhost (atlantis.intranet [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00563-01 for ; Sun, 2 Oct 2005 06:20:43 +0200 (CEST) Received: from [10.0.0.17] (mini.intranet [10.0.0.17]) by maxlor.mine.nu (Postfix) with ESMTP id 339902E01B for ; Sun, 2 Oct 2005 06:20:43 +0200 (CEST) Message-ID: <433F6018.2050900@datacomm.ch> Date: Sun, 02 Oct 2005 06:20:40 +0200 From: Benjamin Lutz User-Agent: Mozilla Thunderbird 1.0.7 (Macintosh/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: current@freebsd.org X-Enigmail-Version: 0.92.0.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigEE24D78C9670ED3AAF66359F" X-Virus-Scanned: amavisd-new at atlantis.intranet Cc: Subject: Linksys EG1032 rev. 3 patch X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Oct 2005 04:20:51 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigEE24D78C9670ED3AAF66359F Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hello, I picked up a Linksys EG1032 yesterday, and was surprised to see that it didn't work on FreeBSD 6.0-BETA5/i386. After some investigation I found out that apparently Linksys has silently changed the chip on the card. The EG1032 is a standard 32bit PCI gigabit ethernet card. Two drivers already support a card by that name, according to the manpages and hardware notes: nge(4), which works with National Semiconductor DP83820 / DP83821 chips. sk(4), which works with SysKonnect SK-984x and SK-982x chips. Now, this EG1032 I got here, marked as "rev. 3", comes with a Realtek RTL8169S chip. Unfortunately, it seems that the device ID was not changed, it is still 0x1032, which made the sk(4) driver try and fail to attach to the card. I got the card working with the two patches below. Cheers Benjamin --- sys/dev/re/if_re.c.orig Sun Oct 2 05:31:06 2005 +++ sys/dev/re/if_re.c Sun Oct 2 05:34:02 2005 @@ -173,6 +173,8 @@ "RealTek 8110S Single-chip Gigabit Ethernet" }, { COREGA_VENDORID, COREGA_DEVICEID_CGLAPCIGT, RL_HWREV_8169S, "Corega CG-LAPCIGT (RTL8169S) Gigabit Ethernet" }, + { LINKSYS_VENDORID, LINKSYS_DEVICEID_EG1032, RL_HWREV_8169S, + "Linksys EG1032 (RTL8169S) Gigabit Ethernet" }, { 0, 0, 0, NULL } }; --- sys/pci/if_rlreg.h.orig Sun Oct 2 05:35:58 2005 +++ sys/pci/if_rlreg.h Sun Oct 2 05:38:54 2005 @@ -826,6 +826,16 @@ #define COREGA_DEVICEID_CGLAPCIGT 0xc107 /* + * Linksys vendor ID + */ +#define LINKSYS_VENDORID 0x1737 + +/* + * Linksys EG1032 device ID + */ +#define LINKSYS_DEVICEID_EG1032 0x1032 + +/* * Peppercon vendor ID */ #define PEPPERCON_VENDORID 0x1743 --------------enigEE24D78C9670ED3AAF66359F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin) iD8DBQFDP2AbgShs4qbRdeQRApgrAKCDDXDu3OskcY7N4A+uGYFLk5bQhwCdEFY3 Z4o+88QVFzUezxFRTD2UlkE= =20ju -----END PGP SIGNATURE----- --------------enigEE24D78C9670ED3AAF66359F--