From daxbert@daxhome.dweebsoft.com  Sun Mar  9 20:00:43 2003
Return-Path: <daxbert@daxhome.dweebsoft.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 5AED137B401
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  9 Mar 2003 20:00:43 -0800 (PST)
Received: from daxhome.dweebsoft.com (anubis.dweebsoft.com [64.81.58.36])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 70B3643FE1
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  9 Mar 2003 20:00:42 -0800 (PST)
	(envelope-from daxbert@daxhome.dweebsoft.com)
Received: from daxhome.dweebsoft.com (localhost [127.0.0.1])
	by daxhome.dweebsoft.com (8.12.8/8.12.7) with ESMTP id h2A40fZ4001035
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 9 Mar 2003 20:00:41 -0800 (PST)
	(envelope-from daxbert@daxhome.dweebsoft.com)
Received: (from daxbert@localhost)
	by daxhome.dweebsoft.com (8.12.8/8.12.7/Submit) id h2A40fBF001034;
	Sun, 9 Mar 2003 20:00:41 -0800 (PST)
Message-Id: <200303100400.h2A40fBF001034@daxhome.dweebsoft.com>
Date: Sun, 9 Mar 2003 20:00:41 -0800 (PST)
From: Dax Eckenberg <daxbert@dweebsoft.com>
Reply-To: Dax Eckenberg <daxbert@dweebsoft.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: 3Com OfficeConnect 10/100 not detected
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         49059
>Category:       kern
>Synopsis:       3Com OfficeConnect 10/100 not detected
>Confidential:   no
>Severity:       critical
>Priority:       low
>Responsible:    mbr
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 09 20:10:10 PST 2003
>Closed-Date:    Mon May 12 12:51:43 PDT 2003
>Last-Modified:  Mon May 12 12:51:43 PDT 2003
>Originator:     Dax Eckenberg
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
dweebsoft.com
>Environment:
System: FreeBSD daxhome.dweebsoft.com 5.0-CURRENT FreeBSD 5.0-CURRENT #3: Sun Mar 9 18:42:41 PST 2003 root@daxhome.dweebsoft.com:/usr/obj/usr/src/sys/DAXHOME i386

>Description:
	3Com OfficeConnect 10/100 a PCI NIC, is not detected by if_dc
>How-To-Repeat:
	Install 3Com card, enable dc, boot system
>Fix:


--- patch begins here ---
--- sys/pci/if_dc.c	Tue Feb 18 21:47:40 2003
+++ sys/pci/if_dc.c	Sun Mar  9 11:40:52 2003
@@ -36,3 +36,4 @@
  * DEC "tulip" clone ethernet driver. Supports the DEC/Intel 21143
  * series chips and several workalikes including the following:
  *
+ * 3Com OfficeConnect 10/100 (www.3com.com)
@@ -145,5 +145,7 @@
  * Various supported device vendors/types and their names.
  */
 static struct dc_type dc_devs[] = {
         { DC_VENDORID_DEC, DC_DEVICEID_21143,
                 "Intel 21143 10/100BaseTX" },
+	{ DC_VENDORID_3COM, DC_DEVICEID_3CSOHO,
+		"3Com OfficeConnect 10/100" },
@@ -1989,2 +1989,3 @@
 		break;
+	case DC_DEVICEID_3CSOHO: 
 	case DC_DEVICEID_AN985:
--- sys/pci/if_dcreg.h	Sun Mar  9 10:48:28 2003
+++ sys/pci/if_dcreg.h	Sun Mar  9 11:12:00 2003
@@ -787,6 +787,16 @@
 #define DC_DEVICEID_21143	0x0019
 
 /*
+ * 3COM PCI vendor ID
+ */
+#define DC_VENDORID_3COM	0x10b7
+
+/*
+ * 3COM OfficeConnect 10/100 (3CSOHO100B-TX)
+ */
+#define DC_DEVICEID_3CSOHO	0x9300
+
+/*
  * Macronix PCI vendor ID
  */
 #define	DC_VENDORID_MX		0x10D9
--- share/man/man4/dc.4	Sun Mar  9 18:47:19 2003
+++ share/man/man4/dc.4	Sun Mar  9 18:50:39 2003
@@ -112,4 +112,6 @@
 .It
 Built in ethernet on LinkSys EtherFast 10/100 Instant GigaDrive (DM9102, MII)
+.It
+3Com OfficeConnect 10/100
 .It
 Kingston KNE100TX (21143, MII)
--- patch ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->mbr 
Responsible-Changed-By: arved 
Responsible-Changed-When: Sun Mar 16 09:48:53 PST 2003 
Responsible-Changed-Why:  


http://www.freebsd.org/cgi/query-pr.cgi?pr=49059 

From: Dax Eckenberg <daxbert@dweebsoft.com>
To: freebsd-gnats-submit@FreeBSD.org, daxbert@dweebsoft.com
Cc:  
Subject: Re: kern/49059: 3Com OfficeConnect 10/100 not detected
Date: Mon, 21 Apr 2003 00:26:53 -0700

 FWIW-
 
 I've now been using the above patch for the past 30+ days, without any 
 network related issues on FreeBSD-CURRENT.  I'm using an NFS mounted 
 /home, /usr/src, and /usr/ports.  Since I've yet to run into any 
 problems, I would think that the above patch is valid.
 
 Dax Eckenberg
 

From: "Ted Mittelstaedt" <tedm@toybox.placo.com>
To: <freebsd-gnats-submit@FreeBSD.org>, <daxbert@dweebsoft.com>
Cc:  
Subject: Re: kern/49059: 3Com OfficeConnect 10/100 not detected
Date: Sat, 10 May 2003 02:08:56 -0700

 Boris Bogachov filed PR kern/50747 confirming this patch also works
 for FreeBSD 4.8
 
 Ted Mittelstaedt                                       tedm@toybox.placo.com
 
State-Changed-From-To: open->closed 
State-Changed-By: mbr 
State-Changed-When: Mon May 12 12:50:58 PDT 2003 
State-Changed-Why:  
The patch has been committed to CURRENT. Thanks ! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=49059 
>Unformatted:
