Date: Tue, 6 Mar 2001 10:32:35 +0200 (EET) From: seva@sevasoft.kiev.ua To: FreeBSD-gnats-submit@freebsd.org Subject: kern/25566: Support for DLink DFE-538TX ethernet card Message-ID: <200103060832.f268WZo20686@sevasoft.kiev.ua>
next in thread | raw e-mail | index | archive | help
>Number: 25566
>Category: kern
>Synopsis: [PATCH] Missing PCI Id's for DLink DFE-538TX ethernet card
>Confidential: no
>Severity: non-critical
>Priority: high
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Mar 06 00:40:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Vsevolod Lobko
>Release: FreeBSD 4.2-STABLE i386
>Organization:
Sevasoft
>Environment:
System: FreeBSD sevasoft.kiev.ua 4.2-STABLE FreeBSD 4.2-STABLE #0: Mon Mar 5 23:40:45 EET 2001 root@sevasoft.kiev.ua:/usr/local/obj/usr/local/home/freebsd/src/sys/SEVASOFT i386
>Description:
DLink DFE-538TX card based on RealTek 8139 chip but has different PCI Id
>How-To-Repeat:
Insert card and boot
>Fix:
Apply patch in src/sys/pci:
Index: if_rl.c
===================================================================
RCS file: /usr/rep/src/sys/pci/if_rl.c,v
retrieving revision 1.38.2.6
diff -u -r1.38.2.6 if_rl.c
--- if_rl.c 2000/11/02 00:04:27 1.38.2.6
+++ if_rl.c 2001/02/17 09:24:08
@@ -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 DFE-538TX 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;
Index: if_rlreg.h
===================================================================
RCS file: /usr/rep/src/sys/pci/if_rlreg.h,v
retrieving revision 1.14
diff -u -r1.14 if_rlreg.h
--- if_rlreg.h 1999/10/21 19:42:03 1.14
+++ if_rlreg.h 2001/02/17 09:22:25
@@ -433,6 +433,16 @@
#define ADDTRON_DEVICEID_8139 0x1360
/*
+ * D-Link vendor ID.
+ */
+#define DLINK_VENDORID 0x1186
+
+/*
+ * Addtron device IDs.
+ */
+#define DLINK_DEVICEID_DFE538TX 0x1300
+
+/*
* PCI low memory base and low I/O base register, and
* other PCI registers.
*/
>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?200103060832.f268WZo20686>
