Skip site navigation (1)Skip section navigation (2)
Date:      Fri,  9 Mar 2001 13:12:04 -0800 (PST)
From:      william.carrel@infospace.com
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        freebsd-stable@freebsd.org
Subject:   MFC support for DLINK DFE-530TX+ [patch]
Message-ID:  <20010309211204.8FAAB5D4F@gasket.go2net.com>

next in thread | raw e-mail | index | archive | help

>Submitter-Id:	current-users
>Originator:	William Carrel
>Organization:	InfoSpace, Inc.
>Confidential:	no 
>Synopsis:	DLink DFE-530TX+ cards are not recognized by the kernel
>Severity:	serious
>Priority:	medium
>Category:	kern
>Class:		sw-bug
>Release:	FreeBSD 4.3-BETA i386
>Environment:
System: FreeBSD gasket.go2net.com 4.3-BETA FreeBSD 4.3-BETA #0: Tue Mar 6 10:57:26 PST 2001 root@gasket.go2net.com:/usr/obj/usr/src/sys/GO2SMP i386

>Description:
This is an MFC of support for this card.

>How-To-Repeat:
Insert aforementioned card.  Appears as Unknown device in dmesg.

>Fix:
Patches below are also at http://www.carrel.org/patch.file1
			  http://www.carrel.org/patch.file2

Hopefully we can get this in for 4.3-RELEASE.  This patch to stable was
created to help out a user on #FreeBSD/Openprojects.net.

This support was added in current 2 weeks ago by wpaul (.c: 1.58, .h: 1.19)

Add the following code to recognize the device:

*** if_rl.c.orig        Fri Mar  9 12:40:50 2001
--- if_rl.c     Fri Mar  9 12:44:44 2001
***************
*** 149,154 ****
--- 149,156 ----
                "Delta Electronics 8139 10/100BaseTX" },
        { ADDTRON_VENDORID, ADDTRON_DEVICEID_8139,
                "Addtron Technolgy 8139 10/100BaseTX" },
+         { DLINK_VENDORID, DLINK_DEVICEID_530TXPLUS,
+                 "D-Link DFE-530TX+ 10/100BaseTX" },
        { 0, 0, NULL }
  };
  
***************
*** 898,904 ****
        rl_read_eeprom(sc, (caddr_t)&rl_did, RL_EE_PCI_DID, 1, 0);
  
        if (rl_did == RT_DEVICEID_8139 || rl_did == ACCTON_DEVICEID_5030 ||
!           rl_did == DELTA_DEVICEID_8139 || rl_did == ADDTRON_DEVICEID_8139)
                sc->rl_type = RL_8139;
        else if (rl_did == RT_DEVICEID_8129)
                sc->rl_type = RL_8129;
--- 900,907 ----
        rl_read_eeprom(sc, (caddr_t)&rl_did, RL_EE_PCI_DID, 1, 0);
  
        if (rl_did == RT_DEVICEID_8139 || rl_did == ACCTON_DEVICEID_5030 ||
!           rl_did == DELTA_DEVICEID_8139 || rl_did == ADDTRON_DEVICEID_8139 ||
!           rl_did == DLINK_DEVICEID_530TXPLUS)
                sc->rl_type = RL_8139;
        else if (rl_did == RT_DEVICEID_8129)
                sc->rl_type = RL_8129;

*** if_rlreg.h.orig     Fri Mar  9 12:45:55 2001
--- if_rlreg.h  Fri Mar  9 12:45:58 2001
***************
*** 433,438 ****
--- 433,448 ----
  #define ADDTRON_DEVICEID_8139                 0x1360
  
  /*
+  * D-Link vendor ID.
+  */
+ #define DLINK_VENDORID                          0x1186
+ 
+ /*
+  * D-Link DFE-530TX+ device ID
+  */
+ #define DLINK_DEVICEID_530TXPLUS                0x1300
+ 
+ /*
   * PCI low memory base and low I/O base register, and
   * other PCI registers.
   */


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010309211204.8FAAB5D4F>