From owner-freebsd-hackers Thu Apr 9 23:57:03 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA09502 for freebsd-hackers-outgoing; Thu, 9 Apr 1998 23:57:03 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id XAA09424 for ; Thu, 9 Apr 1998 23:56:56 -0700 (PDT) (envelope-from luigi@labinfo.iet.unipi.it) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id HAA07622; Fri, 10 Apr 1998 07:25:43 +0200 From: Luigi Rizzo Message-Id: <199804100525.HAA07622@labinfo.iet.unipi.it> Subject: Re: PnP driver question To: archie@whistle.com (Archie Cobbs) Date: Fri, 10 Apr 1998 07:25:42 +0200 (MET DST) Cc: freebsd-hackers@FreeBSD.ORG In-Reply-To: <199804092038.NAA29720@bubba.whistle.com> from "Archie Cobbs" at Apr 9, 98 01:38:18 pm X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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