simple patch for GA511

Yamamoto Shigeru shigeru at iij.ad.jp
Thu Nov 11 19:12:13 PST 2004


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 at iij.ad.jp>
-------------- next part --------------
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"},


More information about the freebsd-current mailing list