From owner-freebsd-current Mon Jul 21 20:49:26 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id UAA02974 for current-outgoing; Mon, 21 Jul 1997 20:49:26 -0700 (PDT) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id UAA02969 for ; Mon, 21 Jul 1997 20:49:23 -0700 (PDT) Received: (from msmith@localhost) by genesis.atrad.adelaide.edu.au (8.8.5/8.7.3) id NAA26697; Tue, 22 Jul 1997 13:18:13 +0930 (CST) From: Michael Smith Message-Id: <199707220348.NAA26697@genesis.atrad.adelaide.edu.au> Subject: Re: I am contemplating the following change... In-Reply-To: from Warner Losh at "Jul 21, 97 01:01:48 pm" To: imp@rover.village.org (Warner Losh) Date: Tue, 22 Jul 1997 13:18:12 +0930 (CST) Cc: jkh@time.cdrom.com, karpen@ocean.campus.luth.se, kuku@gilberto.physik.rwth-aachen.de, current@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Warner Losh stands accused of saying: > > Looking at the driver, the following chipsets seem to support auto > detection of interrupts. I've some patches that I'll test tonight to > see if I can add a sanity check when things aren't the same. I may > have missed some in some of the other code paths. > > WD8003W > WD8003EB > WD8013W > WD8013EP > WD8013WC > WD8013EPC > WD8013EBP > SMC8216T > SMC8216C > SMC8216BT > > I don't know how many cards this covers, but it does look to be a fair > number. There is code in the ed driver now to autoconfig the > interrupt on these cards. There is not code to detect that you've set > an interrupt incorrectly (which looked like 3 lines to add in two > places, add another 10 lines for tables needed for good error > reporting). I think that this would be a worthwhile addition to the > kernel, assuming that it proves to be correct. You are omitting the 3c503, which is also soft-set. Unfortunately, you don't cover any of the NE2000 clones above, and "real" SMC compatibles are actually fairly rare. What is needed is an interrupt probe similar to that used in the sio driver which performs a generic 8390 interrupt-generating activity (eg. a loopback operation) which can be applied to _all_ cards. Have a look at the application notes at http://www.national.com/pf/DP/DP83905.html, particulary this one : AN-937: Loopback Diagnostics Using the DP8390/901/902/905 -- ]] Mike Smith, Software Engineer msmith@gsoft.com.au [[ ]] Genesis Software genesis@gsoft.com.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control. (ph) +61-8-8267-3493 [[ ]] Unix hardware collector. "Where are your PEZ?" The Tick [[