Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 May 2000 19:44:49 -0700 (PDT)
From:      adoal@iname.com
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/18735: add support to Accton EN1217 network adapter
Message-ID:  <20000522024449.44E0837B54B@hub.freebsd.org>

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

>Number:         18735
>Category:       kern
>Synopsis:       add support to Accton EN1217 network adapter
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 21 19:50:14 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Adoal Xu
>Release:        4.0-RELEASE
>Organization:
Lunaris Studio
>Environment:
FreeBSD mail.lunaris.org 4.0-RELEASE FreeBSD 4.0-RELEASE #0: Mon Mar 20 22:50:22 GMT 2000    root@monster.cdrom.com:/usr/src/sys/compile/GENERIC  i386
>Description:
Accton's EN1217 network adapter is just based on Macronix MX98715AEC chip, so 'dc0' should work with it. But since Accton change it's PCI id, dc0 cannot probe it. So with EN1217's PCI id added, everything will be ok. It works just the standard MX98715 way, :)
DC_VENDORID_ACCTON 0x1113
DC_DEVICEID_AE310 0x1217
>How-To-Repeat:
just buy a piece of EN1217 (aka Adico AE310TX) and try it, :)
>Fix:
--- if_dc.c.orig	Mon May 22 10:30:03 2000
+++ if_dc.c	Mon May 22 10:35:45 2000
@@ -193,6 +193,8 @@
 		"82c168 PNIC 10/100BaseTX" },
 	{ DC_VENDORID_LO, DC_DEVICEID_82C168,
 		"82c169 PNIC 10/100BaseTX" },
+	{ DC_VENDORID_ACCTON, DC_DEVICEID_EN1217,
+		"Accton EN1217 10/100BaseTX" },
 	{ 0, 0, NULL }
 };
 
@@ -1548,6 +1550,7 @@
 		sc->dc_flags |= DC_TX_POLL|DC_TX_USE_TX_INTR;
 		break;
 	case DC_DEVICEID_987x5:
+	case DC_DEVICEID_EN1217:
 		sc->dc_type = DC_TYPE_987x5;
 		sc->dc_flags |= DC_TX_POLL|DC_TX_USE_TX_INTR;
 		break;
--- if_dcreg.h.orig	Mon May 22 10:29:55 2000
+++ if_dcreg.h	Mon May 22 10:34:42 2000
@@ -793,6 +793,16 @@
 #define DC_REVISION_88141	0x10
 
 /*
+ * Accton vendor ID.
+ */
+#define	DC_VENDORID_ACCTON		0x1113
+
+/*
+ * Accton device IDs.
+ */
+#define	DC_DEVICEID_EN1217	0x1217
+
+/*
  * 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?20000522024449.44E0837B54B>