From owner-freebsd-hackers Thu Apr 9 13:40:22 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA06110 for freebsd-hackers-outgoing; Thu, 9 Apr 1998 13:40:22 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from whistle.com (s205m131.whistle.com [207.76.205.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA05960 for ; Thu, 9 Apr 1998 13:39:10 -0700 (PDT) (envelope-from archie@whistle.com) Received: (from smap@localhost) by whistle.com (8.7.5/8.6.12) id NAA00995 for ; Thu, 9 Apr 1998 13:38:39 -0700 (PDT) Received: from bubba.whistle.com(207.76.205.7) by whistle.com via smap (V1.3) id sma000993; Thu Apr 9 13:38:37 1998 Received: (from archie@localhost) by bubba.whistle.com (8.8.7/8.6.12) id NAA29720 for freebsd-hackers@freebsd.org; Thu, 9 Apr 1998 13:38:37 -0700 (PDT) From: Archie Cobbs Message-Id: <199804092038.NAA29720@bubba.whistle.com> Subject: PnP driver question To: freebsd-hackers@FreeBSD.ORG Date: Thu, 9 Apr 1998 13:38:37 -0700 (PDT) X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Need a little help understanding how to write a PnP aware device driver. 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'm wondering because in Luigi's paper "PnP support in FreeBSD", the example has a very simple probe routine (which just compares the unqiue identifiers), while the attach routine does all the initialization work. Thanks, -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message