Date: Fri, 10 Apr 1998 07:25:42 +0200 (MET DST) From: Luigi Rizzo <luigi@labinfo.iet.unipi.it> To: archie@whistle.com (Archie Cobbs) Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: PnP driver question Message-ID: <199804100525.HAA07622@labinfo.iet.unipi.it> In-Reply-To: <199804092038.NAA29720@bubba.whistle.com> from "Archie Cobbs" at Apr 9, 98 01:38:18 pm
next in thread | previous in thread | raw e-mail | index | archive | help
Re-reading your msg i think i have not answered fully... > Suppose I have a PnP card that I want to do a self-test on before > claiming that it's been officially detected. Since the attach() routine > in struct pnp_device returns NULL, then this has to be done in the > probe routine, right? > > In order to talk to the card to do the self-test, I have to set > the PnP params and enable the card during the probe routine... > > My question is.. is this safe? Is this this right way to proceed? i am not sure if it is safe... i'd postpone all self test to the attach routine. It can still fail by returning some value (forget which one) in the struct isa_device set appropriately (like ports=0 or -1, etc.); look at isa.c what is done after the attach routine. cheers luigi -----------------------------+-------------------------------------- Luigi Rizzo | Dip. di Ingegneria dell'Informazione email: luigi@iet.unipi.it | Universita' di Pisa tel: +39-50-568533 | via Diotisalvi 2, 56126 PISA (Italy) fax: +39-50-568522 | http://www.iet.unipi.it/~luigi/ _____________________________|______________________________________ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199804100525.HAA07622>