Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Oct 1997 00:20:17 +0900 (JST)
From:      Takeshi WATANABE <watanabe@crayon.planet.kobe-u.ac.jp>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   kern/4813: ed0 (SMC Elite 16) won't work
Message-ID:  <199710201520.AAA21141@crayon.planet.kobe-u.ac.jp>
Resent-Message-ID: <199710201530.IAA29063@hub.freebsd.org>

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

>Number:         4813
>Category:       kern
>Synopsis:       ed0 (SMC Elite 16) won't work
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 20 08:30:01 PDT 1997
>Last-Modified:
>Originator:     Takeshi WATANABE
>Organization:
Kobe-University, Kobe, Japan
>Release:        FreeBSD 2.2.2-RELEASE i386
>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>
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199710201520.AAA21141>