D-Link 528(T) Gigabit support
Gary Allan
dragonfly at gallan.plus.com
Sun Dec 4 08:13:11 PST 2005
Hello,
Attached is a patch to support the D-Link 528(T) Gigabit cards under
DragonFly. They are based on the RealTek 8169S chipset and are supported
by the re(4) driver under FreeBSD 5.4 and above.
The cards are now detected as re(4) devices and have been working
reliably however I can only get them to operate at 10/100 speeds. Under
Linux2.6 and FreeBSD 6 I have used them at their full 1000M.
I think it's a mii issue as rgephy.c in not the DragonFly mii_layer
repository and this file appears to support the 8169S/8110S chipsets.
Can somebody point me in the right direction to get them working as
Gigabit cards? Is it just a case of also importing rgephy.c or am I
missing something?
Regards
G.Allan
Index: share/man/man4/re.4
===================================================================
RCS file: /home/dcvs/src/share/man/man4/re.4,v
retrieving revision 1.1
diff -u -r1.1 re.4
--- share/man/man4/re.4 7 Jul 2004 09:47:27 -0000 1.1
+++ share/man/man4/re.4 4 Dec 2005 10:31:17 -0000
@@ -53,6 +53,8 @@
.It
Compaq Evo N1015v Integrated Ethernet (8139C+)
.It
+D-Link DGE-528(T) Gigabit Ethernet (8169S)
+.It
Gigabyte 7N400 Pro2 Integrated Gigabit Ethernet (8110S)
.It
PLANEX COMMUNICATIONS Inc. GN-1200TC (8169S)
@@ -205,4 +207,4 @@
avoid this problem.
.Pp
The RealTek 8169, 8169S and 8110S chips appear to only be capable of
-transmitting jumbo frames up to 7.5K in size.
+transmitting jumbo frames up to 7440 bytes in size.
Index: sys/dev/netif/re/if_re.c
===================================================================
RCS file: /home/dcvs/src/sys/dev/netif/re/if_re.c,v
retrieving revision 1.19
diff -u -r1.19 if_re.c
--- sys/dev/netif/re/if_re.c 28 Nov 2005 17:13:43 -0000 1.19
+++ sys/dev/netif/re/if_re.c 4 Dec 2005 10:21:45 -0000
@@ -107,8 +107,8 @@
* interrupt moderation using the timer interrupt registers, which
* significantly reduces TX interrupt load. There is also support
* for jumbo frames, however the 8169/8169S/8110S can not transmit
- * jumbo frames larger than 7.5K, so the max MTU possible with this
- * driver is 7500 bytes.
+ * jumbo frames larger than 7440, so the max MTU possible with this
+ * driver is 7422 bytes.
*/
#include "opt_polling.h"
@@ -165,6 +165,8 @@
* Various supported device vendors/types and their names.
*/
static struct re_type re_devs[] = {
+ { DLINK_VENDORID, DLINK_DEVICEID_528T, RE_HWREV_8169S,
+ "D-Link DGE-528(T) Gigabit Ethernet Adapter" },
{ RT_VENDORID, RT_DEVICEID_8139, RE_HWREV_8139CPLUS,
"RealTek 8139C+ 10/100BaseTX" },
{ RT_VENDORID, RT_DEVICEID_8169, RE_HWREV_8169,
Index: sys/dev/netif/re/if_rereg.h
===================================================================
RCS file: /home/dcvs/src/sys/dev/netif/re/if_rereg.h,v
retrieving revision 1.3
diff -u -r1.3 if_rereg.h
--- sys/dev/netif/re/if_rereg.h 2 Aug 2004 13:35:02 -0000 1.3
+++ sys/dev/netif/re/if_rereg.h 4 Dec 2005 10:29:07 -0000
@@ -745,6 +745,11 @@
#define DLINK_DEVICEID_530TXPLUS 0x1300
/*
+ * D-Link DFE-5280T device ID
+ */
+#define DLINK_DEVICEID_528T 0x4300
+
+/*
* D-Link DFE-690TXD device ID
*/
#define DLINK_DEVICEID_690TXD 0x1340
More information about the Submit
mailing list