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: Gianluca Guida
Subject: Re: Support for D-Link DFE 528-TX and 538-TX
Date: Thu, 05 Feb 2004 22:17:27 +0000
User-agent: Wanderlust/2.10.1 (Watching The Wheels) SEMI/1.14.5 (Awara-Onsen) FLIM/1.14.6 (Marutamachi) APEL/10.6 Emacs/21.3 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI)

At Thu, 5 Feb 2004 11:50:08 +0100 (MET),
Alfred M. Szmidt wrote:
> 
>    This is the patch, but I haven't tested it:
> 
> ChangeLog please.
>

Here it is.

I tested it and works. 

2004-02-05  Gianluca Guida <glguida@wazzabbanda.homelinux.org>

        * linux/src/drivers/net/rtl8139.c: Added support for 
        DLink 528 TX and DLink 538 TX.

--- cvs/gnumach/linux/src/drivers/net/rtl8139.c 1999-09-09 06:30:37.000000000 
+0000
+++ mysrc/gnumach/linux/src/drivers/net/rtl8139.c       2004-02-05 
21:36:30.000000000 +0000
@@ -140,9 +140,18 @@
 
 */
 
+/* 2004-02-05: Added Dlink PCI ids, originally done by A. Ventimiglia */
+
 #ifndef PCI_VENDOR_ID_REALTEK
 #define PCI_VENDOR_ID_REALTEK          0x10ec
 #endif
+#ifndef PCI_VENDOR_ID_DLINK
+#define PCI_VENDOR_ID_DLINK  0x1186
+#endif
+
+#ifndef PCI_DEVICE_ID_DLINK_538TX
+#define PCI_DEVICE_ID_DLINK_538TX  0x1300
+#endif
 #ifndef PCI_DEVICE_ID_REALTEK_8129
 #define PCI_DEVICE_ID_REALTEK_8129     0x8129
 #endif
@@ -302,7 +311,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_DLINK)
                                continue;
 
                        pcibios_read_config_word(pci_bus, pci_device_fn,
@@ -315,7 +325,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_DLINK_538TX) {
                                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]