Subject: kern/13161: support for D-Link Systems DFE-530TX+
To: None <gnats-bugs@gnats.netbsd.org>
From: g r <gr@grappa.eclipsed.net>
List: netbsd-bugs
Date: 06/10/2001 22:09:03
>Number:         13161
>Category:       kern
>Synopsis:       support for D-Link Systems DFE-530TX+
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 10 19:08:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     gabriel rosenkoetter
>Release:        Wed Apr 25 11:20:36 2001 is most recent relevant date
>Organization:
	
>Environment:
System: NetBSD grappa 1.5V NetBSD 1.5V (GRAPPA) #4: Sun Jun 10 21:17:36 EDT 2001 gr@grappa:/usr/src/sys/arch/i386/compile/GRAPPA i386
Architecture: i386
Machine: i386
>Description:
The D-Link DFE-530TX+ (which D-Link claims includes "our own
specialized chipset," incidentally) is really just a RealTek 8139
chip. (Witness the fact that Linux driver D-Link distributes is
Donald Becker's RTL8129/8139 driver for Linux.)

Adding the appropriate entries to our rtk driver and to pcivars made
my two 530TX+s seem to work fine. Note that I've not even considered
doing any kind of optimization here; I'm just assuming that one RT8139
is as good (um, that's questionable ;^>) as another.
>How-To-Repeat:
Buy a couple 530TX+s *really* cheap for your DSL firewall, find
they're not configured on 1.5V, and play with google for ten minutes.
>Fix:
Patches attached. These are, respectively, against:

if_rtk_pci.c 1.5 Wed Jan 31 11:26:32 2001
  (Only change then was the import of thorpj_scsi which shouldn't
  affect the attached patch.)
pcidevs 1.319 Wed Apr 25 11:20:36 2001
pcidevs.h 1.325 Wed Apr 25 11:20:38 2001
pcidevs_data.h 1.323 Wed Apr 25 11:20:40 2001
	(These have obviously changed plenty, but I doubt it'll affect
	the patches' applicability.)

Drop me a line if there's trouble.

Cheers...

--- if_rtk_pci.c.orig	Sun Jun 10 20:57:43 2001
+++ if_rtk_pci.c	Sun Jun 10 21:17:27 2001
@@ -173,6 +173,9 @@
 	{ PCI_VENDOR_SEGA, PCI_PRODUCT_SEGA_BROADBAND,
 		"SEGA Broadband Adapter",
 		RTK_8139 },
+	{	PCI_VENDOR_DLINK, PCI_PRODUCT_DLINK_DFE530TXPLUS,
+		"D-Link Systems DFE 530TX+",
+		RTK_8139 },
 	{ 0, 0, NULL, 0 }
 };
 

--- pcidevs.orig	Sun Jun 10 21:00:11 2001
+++ pcidevs	Sun Jun 10 21:00:45 2001
@@ -1021,6 +1021,7 @@
 
 /* D-Link Systems products */
 product DLINK DFE550TX	0x1002	DFE-550TX 10/100 Ethernet
+product DLINK DFE530TXPLUS	0x1300	DFE-530TXPLUS 10/100 Ethernet
 
 /* Distributed Processing Technology products */
 product DPT SC_RAID	0xa400	SmartCache/SmartRAID


--- pcidevs.h.orig	Sun Jun 10 21:01:44 2001
+++ pcidevs.h	Sun Jun 10 21:01:22 2001
@@ -1028,6 +1028,7 @@
 
 /* D-Link Systems products */
 #define	PCI_PRODUCT_DLINK_DFE550TX	0x1002		/* DFE-550TX 10/100 Ethernet */
+#define	PCI_PRODUCT_DLINK_DFE530TXPLUS	0x1300	/* DFE-530TX+ 10/100 Ethernet */
 
 /* Distributed Processing Technology products */
 #define	PCI_PRODUCT_DPT_SC_RAID	0xa400		/* SmartCache/SmartRAID */


--- pcidevs_data.h.orig	Sun Jun 10 21:03:55 2001
+++ pcidevs_data.h	Sun Jun 10 21:05:31 2001
@@ -2074,6 +2074,12 @@
 	    "DFE-550TX 10/100 Ethernet",
 	},
 	{
+	    PCI_VENDOR_DLINK, PCI_PRODUCT_DLINK_DFE530TXPLUS,
+	    0,
+	    "D-Link Systems",
+	    "DFE-530TX+ 10/100 Ethernet",
+	},
+	{
 	    PCI_VENDOR_DPT, PCI_PRODUCT_DPT_SC_RAID,
 	    0,
 	    "Distributed Processing Technology",
>Release-Note:
>Audit-Trail:
>Unformatted: