From watanabe@crayon.planet.kobe-u.ac.jp  Mon Oct 20 08:20:32 1997
Received: from crayon.planet.kobe-u.ac.jp (crayon.planet.kobe-u.ac.jp [133.30.53.130])
          by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id IAA28478
          for <FreeBSD-gnats-submit@freebsd.org>; Mon, 20 Oct 1997 08:20:30 -0700 (PDT)
          (envelope-from watanabe@crayon.planet.kobe-u.ac.jp)
Received: (from watanabe@localhost) by crayon.planet.kobe-u.ac.jp (8.8.6/3.5Wpl7-mx) id AAA21141; Tue, 21 Oct 1997 00:20:17 +0900 (JST)
Message-Id: <199710201520.AAA21141@crayon.planet.kobe-u.ac.jp>
Date: Tue, 21 Oct 1997 00:20:17 +0900 (JST)
From: Takeshi WATANABE <watanabe@crayon.planet.kobe-u.ac.jp>
Reply-To: watanabe@komadori.planet.kobe-u.ac.jp
To: FreeBSD-gnats-submit@freebsd.org
Subject: ed0 (SMC Elite 16) won't work
X-Send-Pr-Version: 3.2

>Number:         4813
>Category:       kern
>Synopsis:       ed0 (SMC Elite 16) won't work
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 20 08:30:01 PDT 1997
>Closed-Date:    Sat Apr 11 10:33:35 PDT 1998
>Last-Modified:  Sat Apr 11 10:33:59 PDT 1998
>Originator:     Takeshi WATANABE
>Release:        FreeBSD 2.2.2-RELEASE i386
>Organization:
Kobe-University, Kobe, Japan
>Environment:

  FreeBSD-2.2.2-RELEASE
  "SMC Elite 16" ISA card which has AUI (10Base5) and BNC (10Base2) ports
  
  I use AUI (10Base5) port only.

>Description:

  Any Ethernet packets cannot be send.  I suppose that this card uses
only BNC port, not AUI.  However, this supposition is uncertain.  I cannot
test this card on BNC environment.  I have no BNC environment.

  I cannot setup for this card to use AUI on MS-DOS or other method.
Because this card has no dip switch and cannot memorise any status; it
forgets all status at power off.  I have to setup it in FreeBSD kernel
to use AUI.

>How-To-Repeat:

  Always.

>Fix:

  If I apply the following patch, I can use this card.  Ethernet packets
can be send without any problem.

  However, I cannot say that this patch is applicable to all other
environment.  This patch might be applicable only to my environment.
There might be a environment that this patch make bad.

  It might be better that we adopt a option for "ifconfig", eg. "-link2",
like HP PC LAN+ card.


--- if_ed.c.orig	Thu Dec  5 01:11:32 1996
+++ if_ed.c	Sun Oct 19 08:21:17 1997
@@ -1746,6 +1746,13 @@
 	else
 		printf("%s ", sc->isa16bit ? "(16 bit)" : "(8 bit)");
 
+ 	/*
+ 	 * SMC Elite 16 set to use AUI, not BNC. (unofficial patch)
+ 	 */
+ 	if (sc->vendor == ED_VENDOR_WD_SMC)
+ 	  outb(sc->asic_addr + ED_WD_IRR,
+ 	       inb(sc->asic_addr + ED_WD_IRR) & ~ED_WD_IRR_OUT2);
+
 	printf("%s\n", (((sc->vendor == ED_VENDOR_3COM) ||
 			 (sc->vendor == ED_VENDOR_HP)) &&
 		(ifp->if_flags & IFF_ALTPHYS)) ? " tranceiver disabled" : "");


       =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
              Takeshi WATANABE <watanabe@komadori.planet.kobe-u.ac.jp>
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: phk 
State-Changed-When: Sat Apr 11 10:33:35 PDT 1998 
State-Changed-Why:  
This sounds like faulty hardware 
>Unformatted:
