*BSD News Article 10793


Return to BSD News archive

Received: by minnie.vk1xwt.ampr.org with NNTP
	id AA695 ; Sat, 06 Feb 93 22:01:17 EST
Newsgroups: comp.unix.bsd
Path: sserve!manuel.anu.edu.au!munnari.oz.au!spool.mu.edu!clark!serval!news.u.washington.edu!usenet.coe.montana.edu!saimiri.primate.wisc.edu!caen!hellgate.utah.edu!fcom.cc.utah.edu!cs.weber.edu!terry
From: terry@cs.weber.edu (A Wizard of Earth C)
Subject: Re: [386BSD] Followup: WD8013 card
Message-ID: <1993Feb5.025824.27492@fcom.cc.utah.edu>
Sender: news@fcom.cc.utah.edu
Organization: Weber State University  (Ogden, UT)
References: <C1FuJ7.4A9@rot.qc.ca> <1993Jan26.205504.24467@fcom.cc.utah.edu> <DERAADT.93Feb1010127@newt.newt.cuc.ab.ca>
Date: Fri, 5 Feb 93 02:58:24 GMT
Lines: 39

In article <DERAADT.93Feb1010127@newt.newt.cuc.ab.ca> deraadt@newt.cuc.ab.ca (Theo de Raadt) writes:
>In article <1993Jan26.205504.24467@fcom.cc.utah.edu> terry@cs.weber.edu (A Wizard of Earth C) writes:
>   The probe routine could be modified to forcibly reset the card; however, if
>   this is done, what is the point of having a probe routine (since you must
>   assume the card is present to reset it)?
>
>Hmm. I guess the BSD guys must have been on too many drugs then when
>they wrote a large number of the device drivers to do exactly this. I
>always thought it was perfectly normal behaviour for a probe routine
>to
>	1) assume the device is there
>	2) reset it
>	3) cause an interrupt
>	4) if you get the interrupt, you win!
>	5) if you timeout waiting, device is not present, return failure.
>
>Now, the 386BSD code as it stands does not do much of this. In fact,
>it generally keeps interrupts off. I'm not a fan of this at all. If we
>were to write the probe routines more carefully, we could do this:

I have found that this type of code in particular tends to blow the software
settings for some boards, notably the WD8003EB.  How would you deal with
ensuring the probe of one piece of equipment doesn't act as a reset for
another (assuming, of course, that we don't want to limit to specifically
recognized hardware so that things like NE2000 compatable boards work as
well).


					Terry Lambert
					terry@icarus.weber.edu
					terry_lambert@novell.com
---
Any opinions in this posting are my own and not those of my present
or previous employers.
-- 
-------------------------------------------------------------------------------
                                        "I have an 8 user poetic license" - me
 Get the 386bsd FAQ from agate.berkeley.edu:/pub/386BSD/386bsd-0.1/unofficial
-------------------------------------------------------------------------------