simple patch for GA511

From: Yamamoto Shigeru <shigeru_at_iij.ad.jp>
Date: Fri, 12 Nov 2004 12:12:10 +0900 (JST)
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 _at_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>

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
_at__at_ -170,6 +170,8 _at__at_
 		"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 }
 };
 
_at__at_ -184,6 +186,7 _at__at_
 	{ 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"},
Received on Fri Nov 12 2004 - 02:12:13 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:21 UTC