From owner-freebsd-bugs Mon Oct 20 08:30:04 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id IAA29071 for bugs-outgoing; Mon, 20 Oct 1997 08:30:04 -0700 (PDT) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id IAA29063; Mon, 20 Oct 1997 08:30:02 -0700 (PDT) (envelope-from gnats) Resent-Date: Mon, 20 Oct 1997 08:30:02 -0700 (PDT) Resent-Message-Id: <199710201530.IAA29063@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, watanabe@komadori.planet.kobe-u.ac.jp 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 ; 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 Reply-To: watanabe@komadori.planet.kobe-u.ac.jp To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: kern/4813: ed0 (SMC Elite 16) won't work Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >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 >Audit-Trail: >Unformatted: