From nobody@FreeBSD.org  Sat Jun  5 13:27:16 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 82AEE16A535
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  5 Jun 2004 13:27:15 -0700 (PDT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 7B11743D4C
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  5 Jun 2004 13:27:15 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i55KRBqU013920
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 5 Jun 2004 13:27:11 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id i55KRBLx013894;
	Sat, 5 Jun 2004 13:27:11 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200406052027.i55KRBLx013894@www.freebsd.org>
Date: Sat, 5 Jun 2004 13:27:11 -0700 (PDT)
From: eduardo viruena silva <mrspock@esfm.ipn.mx>
To: freebsd-gnats-submit@FreeBSD.org
Subject: 3com 3CSOHO100B-TX undetected
X-Send-Pr-Version: www-2.3

>Number:         67614
>Category:       kern
>Synopsis:       3com 3CSOHO100B-TX undetected
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 05 13:30:20 PDT 2004
>Closed-Date:    Thu Jul 01 21:03:41 GMT 2004
>Last-Modified:  Thu Jul 01 21:03:41 GMT 2004
>Originator:     eduardo viruena silva
>Release:        5.2.1-RELEASEp5
>Organization:
esfm-ipn
>Environment:
FreeBSD Michelle.esfm.ipn.mx 5.2.1-RELEASE-p5 FreeBSD 5.2.1-RELEASE-p5#2: Thu May  6 13:58:05 CDT 2004 root@Michelle.esfm.ipn.mx:/usr/src/sys/i386/compile/eviruena  i386

>Description:
I have a 3com 3CSOHO100B-TX NIC.
It cannot be detected by FreeBSD.
>How-To-Repeat:
Install the 3com 3CSOHO100B-TX and be sure the 
"device dc" is configured in your kernel.
 
>Fix:
apply the patch:

--- 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:

From: MIHIRA Sanpei Yoshiro <sanpei@sanpei.org>
To: freebsd-gnats-submit@FreeBSD.org, mrspock@esfm.ipn.mx
Cc:  
Subject: Re: kern/67614: 3com 3CSOHO100B-TX undetected
Date: Wed, 30 Jun 2004 12:29:25 +0900 (JST)

 Hi.
 
 I think, 3COM 3CSOHO100B-TX was supported in 5.2-RELEASE.
 (commited src/sys/pci/if_dc.c rev.1.107 by mbr at May 12 2003)
 
 Did you check your source tree?
 
 ---
 MIHIRA, Sanpei Yoshiro
 Tokyo, Japan.
 <sanpei@FreeBSD.org> <sanpei@sanpei.org>

From: Eduardo Viruena Silva <mrspock@esfm.ipn.mx>
To: MIHIRA Sanpei Yoshiro <sanpei@sanpei.org>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/67614: 3com 3CSOHO100B-TX undetected
Date: Thu, 1 Jul 2004 15:10:38 -0500 (CDT)

 On Wed, 30 Jun 2004, MIHIRA Sanpei Yoshiro wrote:
 
 > Hi.
 >
 > I think, 3COM 3CSOHO100B-TX was supported in 5.2-RELEASE.
 > (commited src/sys/pci/if_dc.c rev.1.107 by mbr at May 12 2003)
 >
 > Did you check your source tree?
 
 I thought I had.
 Now, I found that FreeBSD RELEASE-p8 manages my nic
 perfectly.
 Thanks, please close my report.
 
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Thu Jul 1 21:03:28 GMT 2004 
State-Changed-Why:  
Submitter notes that this can be closed. 

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