From owner-freebsd-current@FreeBSD.ORG Fri Nov 12 03:12:13 2004 Return-Path: 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 4901E16A4CE for ; Fri, 12 Nov 2004 03:12:13 +0000 (GMT) Received: from omgo.iij.ad.jp (omgo.iij.ad.jp [202.232.30.157]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9112443D2D for ; Fri, 12 Nov 2004 03:12:12 +0000 (GMT) (envelope-from shigeru@iij.ad.jp) Received: OMGO id iAC3CBB1006974; Fri, 12 Nov 2004 12:12:11 +0900 (JST) Received: OTM-MIX0 id iAC3CBxa022434; Fri, 12 Nov 2004 12:12:11 +0900 (JST) Received: JC-SMTP from localhost (mercury.iij.ad.jp [192.168.184.90]) for id iAC3CBgI002775; Fri, 12 Nov 2004 12:12:11 +0900 (JST) Date: Fri, 12 Nov 2004 12:12:10 +0900 (JST) Message-Id: <20041112.121210.35657163.shigeru@iij.ad.jp> To: freebsd-current@freebsd.org From: Yamamoto Shigeru X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Fri_Nov_12_12:12:10_2004_787)--" Content-Transfer-Encoding: 7bit Subject: simple patch for GA511 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Fri, 12 Nov 2004 03:12:13 -0000 ----Next_Part(Fri_Nov_12_12:12:10_2004_787)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, all, I make a short patch for NETGEAR GA511, GbE PC Card. #http://www.netgear.com/products/details/GA511.php #or http://www.netgearinc.co.jp/product/products/GA511.asp It seems me to use RealTek 8169 chipset. So, I try quick hack and make a short patch for @src/sys/dev/re/if_re.c. In this patch, I don't define new RL_HWREV. Because I dont' know HWREV without breaking a PC Card. I use this fixed driver for cvsup freebsd repository and no trouble. But, I can't remove this PC Card after working. When removing, it causes kernel panic ;-( For fixing this panic, I need more hack. Thanks, ------- YAMAMOTO Shigeru ----Next_Part(Fri_Nov_12_12:12:10_2004_787)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="if_re.c.diff" Index: if_re.c =================================================================== RCS file: /share/cvsup/FreeBSD/current/usr/src/sys/dev/re/if_re.c,v retrieving revision 1.35 diff -u -r1.35 if_re.c --- if_re.c 28 Sep 2004 18:22:24 -0000 1.35 +++ if_re.c 11 Nov 2004 08:57:17 -0000 @@ -170,6 +170,8 @@ "RealTek 8110S Single-chip Gigabit Ethernet" }, { COREGA_VENDORID, COREGA_DEVICEID_CGLAPCIGT, RL_HWREV_8169S, "Corega CG-LAPCIGT (RTL8169S) Gigabit Ethernet" }, + { RT_VENDORID, RT_DEVICEID_8169, 0x10000000, + "NETGEAR GA511 Gigabit PC Card" }, { 0, 0, 0, NULL } }; @@ -184,6 +186,7 @@ { RL_HWREV_8139CPLUS, RL_8139CPLUS, "C+"}, { RL_HWREV_8169, RL_8169, "8169"}, { RL_HWREV_8169S, RL_8169, "8169S"}, + { 0x10000000, RL_8169, "8169?"}, { RL_HWREV_8110S, RL_8169, "8110S"}, { RL_HWREV_8100, RL_8139, "8100"}, { RL_HWREV_8101, RL_8139, "8101"}, ----Next_Part(Fri_Nov_12_12:12:10_2004_787)----