Date: Wed, 28 Jan 1998 09:19:20 +0100 (MET) From: Luigi Rizzo <luigi@labinfo.iet.unipi.it> To: kurto@bootp.sls.usu.edu (Kurt Olsen) Cc: kurto@bootp.sls.usu.edu, freebsd-hackers@FreeBSD.ORG Subject: Re: Proposed PNP changes Message-ID: <199801280819.JAA03615@labinfo.iet.unipi.it> In-Reply-To: <199801272118.OAA19113@bootp.sls.usu.edu> from "Kurt Olsen" at Jan 27, 98 02:17:54 pm
next in thread | previous in thread | raw e-mail | index | archive | help
> >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/ _____________________________|______________________________________
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199801280819.JAA03615>