Date: Fri, 12 Nov 2004 12:12:10 +0900 (JST) From: Yamamoto Shigeru <shigeru@iij.ad.jp> To: freebsd-current@freebsd.org Subject: simple patch for GA511 Message-ID: <20041112.121210.35657163.shigeru@iij.ad.jp>
next in thread | raw e-mail | index | archive | help
----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 <shigeru@iij.ad.jp> ----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)----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041112.121210.35657163.shigeru>