Date: Mon, 16 Jul 2001 21:04:44 +0300 (EEST) From: "Alexandr P. Kovalenko" <never@uic-in.net> To: FreeBSD-gnats-submit@freebsd.org Subject: kern/29027: [PATCH] Not recognizing D-Link DFE538TX ethernet card Message-ID: <200107161804.f6GI4id05651@mail.uic-in.net>
next in thread | raw e-mail | index | archive | help
>Number: 29027
>Category: kern
>Synopsis: [PATCH] Not recognizing D-Link DFE538TX ethernet card
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Jul 16 11:10:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Alexandr P. Kovalenko
>Release: FreeBSD 4.3-STABLE i386
>Organization:
ISP UIC, Kiev, Ukraine
>Environment:
System: FreeBSD xxx 4.3-STABLE FreeBSD 4.3-STABLE #6: Wed Jul 11 12:34:34 EEST 2001 root@xxx:/usr/obj/usr/src/sys/XXX i386
>Description:
DLink DFE-538TX card based on RealTek 8139 chip
but has different PCI Id
>How-To-Repeat:
Just insert card and boot
>Fix:
Apply following patch.
--- if_rlreg.h.orig Mon Jul 16 20:44:58 2001
+++ if_rlreg.h Mon Jul 16 20:50:41 2001
@@ -433,6 +433,16 @@
#define ADDTRON_DEVICEID_8139 0x1360
/*
+ * D-Link vendor ID.
+ */
+#define DLINK_VENDORID 0x1186
+
+/*
+ * D-Link device IDs.
+ */
+#define DLINK_DEVICEID_DFE538TX 0x1300
+
+/*
* PCI low memory base and low I/O base register, and
* other PCI registers.
*/
--- if_rl.c.orig Mon Jul 16 20:45:07 2001
+++ if_rl.c Mon Jul 16 21:02:45 2001
@@ -149,6 +149,8 @@
"Delta Electronics 8139 10/100BaseTX" },
{ ADDTRON_VENDORID, ADDTRON_DEVICEID_8139,
"Addtron Technolgy 8139 10/100BaseTX" },
+ { DLINK_VENDORID, DLINK_DEVICEID_DFE538TX,
+ "D-Link DFE538TX 10/100BaseTX"},
{ 0, 0, NULL }
};
@@ -898,7 +900,8 @@
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 == DELTA_DEVICEID_8139 || rl_did == ADDTRON_DEVICEID_8139 ||
+ rl_did == DLINK_DEVICEID_DFE538TX)
sc->rl_type = RL_8139;
else if (rl_did == RT_DEVICEID_8129)
sc->rl_type = RL_8129;
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200107161804.f6GI4id05651>
