bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Support for D-Link DFE 528-TX and 538-TX


From: Michael Banck
Subject: Re: Support for D-Link DFE 528-TX and 538-TX
Date: Thu, 5 Feb 2004 10:12:12 +0100
User-agent: Mutt/1.5.4i

On Thu, Feb 05, 2004 at 09:24:38AM +0000, Gianluca Guida wrote:
> Anthony Ventimiglia wrote a trivial patch, back in July 2002,
> that added support in the gnumach-1x branch for Dlink DFE 538 TX 
> (and actually works even on DFE 528 TX). Since they are common 
> rtl8139 NIC (and I have many of them ;-) I think it would be a 
> good idea to apply it.. 
>  
> The mail can be found at:
>  
> http://mail.gnu.org/archive/html/bug-hurd/2002-07/msg00021.html

It would probably help to post the patch inline again, as people rather
like to have them right there, instead of following links, downloading
diff.gz's and unzipping them. Oh well, now that I've done this, I could
do it as well, the patch is small =)


Michael

This is the patch, but I haven't tested it:

diff -Naur gnumach-20020421/linux/src/drivers/net/rtl8139.c 
gnumach/linux/src/drivers/net/rtl8139.c
--- gnumach-20020421/linux/src/drivers/net/rtl8139.c    Thu Sep  9 08:53:49 1999
+++ gnumach/linux/src/drivers/net/rtl8139.c     Sun Jun 30 21:13:10 2002
@@ -150,6 +150,18 @@
 #define PCI_DEVICE_ID_REALTEK_8139     0x8139
 #endif
                                                                                
                                                                
+/* Anthony Ventimiglia
+ * These Defines were added to support other rtl8139 based cards specifically
+ * the D-Link 530
+ */
+#ifndef PCI_VENDOR_ID_D_LINK
+#define PCI_VENDOR_ID_D_LINK   0x1186
+#endif
+#ifndef PCI_DEVICE_ID_D_LINK_538
+#define PCI_DEVICE_ID_D_LINK_538       0x1300
+#endif
+
+
 /* The rest of these values should never change. */
 #define NUM_TX_DESC    4                       /* Number of Tx descriptor 
registers. */
                                                                                
                                                                
@@ -302,7 +314,8 @@
                                break;
                        pcibios_read_config_word(pci_bus, pci_device_fn,
                                                                         
PCI_VENDOR_ID, &vendor);
-                       if (vendor != PCI_VENDOR_ID_REALTEK)
+
+                       if (vendor != PCI_VENDOR_ID_REALTEK && vendor != 
PCI_VENDOR_ID_D_LINK)
                                continue;
                                                                                
                                                                
                        pcibios_read_config_word(pci_bus, pci_device_fn,
@@ -315,7 +328,8 @@
                        pci_ioaddr &= ~3;
                                                                                
                                                                
                        if (device != PCI_DEVICE_ID_REALTEK_8129
-                               &&  device != PCI_DEVICE_ID_REALTEK_8139) {
+                               &&  device != PCI_DEVICE_ID_REALTEK_8139
+                               &&      device != PCI_DEVICE_ID_D_LINK_538) {
                                printk(KERN_NOTICE "Unknown RealTek PCI 
ethernet chip type "
                                           "%4.4x detected: not configured.\n", 
device);
                                continue;






reply via email to

[Prev in Thread] Current Thread [Next in Thread]