From owner-freebsd-hackers Wed Jan 28 01:50:50 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA28603 for hackers-outgoing; Wed, 28 Jan 1998 01:50:50 -0800 (PST) (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 BAA28598 for ; Wed, 28 Jan 1998 01:50:46 -0800 (PST) (envelope-from luigi@labinfo.iet.unipi.it) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id JAA03615; Wed, 28 Jan 1998 09:19:20 +0100 From: Luigi Rizzo Message-Id: <199801280819.JAA03615@labinfo.iet.unipi.it> Subject: Re: Proposed PNP changes To: kurto@bootp.sls.usu.edu (Kurt Olsen) Date: Wed, 28 Jan 1998 09:19:20 +0100 (MET) Cc: kurto@bootp.sls.usu.edu, freebsd-hackers@FreeBSD.ORG In-Reply-To: <199801272118.OAA19113@bootp.sls.usu.edu> from "Kurt Olsen" at Jan 27, 98 02:17:54 pm X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk > >The other one is to make additional drivers PnP aware. jmg already > >did this for sio, and this is not hard at all. > > I'm not so sure about this one. Unless we get into the pnp concept > wholesale and allow dynamic changes of resources, I don't see that it's > overly necessary for the device driver to know if a device (eg. my > ethernet card) is plug and play or not. I am assuming that I'll be able > to configure the card and then just let the normal ed driver handle it. the point was to make the kernel fill in the resources in the struct isa_device from the PnP info. Look at how I did it for audio cards, and you'll see that the inner of the device driver is not affected at all -- you just need to write small wrappers for probe and attach which check for the presence of the resource, fill up the isa_device struct and call the ordinary xxx->attach() routine . > the probe messages. My real motivation for doing this is that I > recently purchased an Opti 925/CS4231A soundcard which has about 5 well, I believe there are docs on the OPTI925 at www.opti.com , and my audio driver also has some preliminary support for them (it basically disables everithing but the audio card). 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/ _____________________________|______________________________________