Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Sep 1996 16:30:09 -0400 (EDT)
From:      Sujal Patel <smpatel@umiacs.umd.edu>
To:        Terry Lambert <terry@lambert.org>
Cc:        janus@freegate.net, hackers@FreeBSD.org
Subject:   Re: Plug and Play naivety
Message-ID:  <Pine.OSF.3.91.960920162611.31553F-100000@mickey.umiacs.umd.edu>
In-Reply-To: <199609202015.NAA02942@phaeton.artisoft.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 20 Sep 1996, Terry Lambert wrote:

> This exchange implies that the kernel will not use the PnP information
> in the presence of a PnP BIOS to configure the drivers.  Can you confirm
> or deny this?
> 
> The benefit of the PnP code is not simply configuration of devices in
> the absence of a PnP BIOS, but also in the provision of hints to the
> device drivers.

The Plug & Play driver will eventually fill in isa_device structures for
ISA devices properly.  If you chose not to configure your PnP device, it 
will read the configuration that is already there (i.e. the BIOS setup 
configuration).

You could further extend the model, by allowing the kernel to choose a
device driver based on the information presented by the PnP aspect of the
card (this is not planned for the first release). 

Sample code to read a cards configuration (as set by BIOS) is at:

http://www.freebsd.org/~smpatel/pnpget.h
http://www.freebsd.org/~smpatel/pnpget.cc

The code is a bit incomplete, but works fine.


Sujal



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.OSF.3.91.960920162611.31553F-100000>