diff options
author | dfr <dfr@FreeBSD.org> | 1999-05-30 11:14:39 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 1999-05-30 11:14:39 +0000 |
commit | 89255a036adc40f08f6247a7228b35a1bc769cb7 (patch) | |
tree | ab8e869ed9a59dd34fcec95ff4a28687beccf5fb /sys/isa/sio.c | |
parent | 9246fc0c80d5fc08aae59993df612309bca23ce2 (diff) | |
download | FreeBSD-src-89255a036adc40f08f6247a7228b35a1bc769cb7.zip FreeBSD-src-89255a036adc40f08f6247a7228b35a1bc769cb7.tar.gz |
Simplistic pnp support. Needs more ids to be added.
Diffstat (limited to 'sys/isa/sio.c')
-rw-r--r-- | sys/isa/sio.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/isa/sio.c b/sys/isa/sio.c index 3e7a75d..4439ed2 100644 --- a/sys/isa/sio.c +++ b/sys/isa/sio.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: sio.c,v 1.242 1999/05/22 15:47:34 dfr Exp $ + * $Id: sio.c,v 1.243 1999/05/28 09:37:11 dfr Exp $ * from: @(#)com.c 7.5 (Berkeley) 5/16/91 * from: i386/isa sio.c,v 1.234 */ @@ -599,6 +599,13 @@ sioprobe(dev) int rid; struct resource *port; + /* Check isapnp ids */ + if (isa_get_vendorid(dev) + && isa_get_compatid(dev) != PNP_EISAID("PNP0500") + && isa_get_compatid(dev) != PNP_EISAID("PNP0501") + && isa_get_compatid(dev) != PNP_EISAID("PNP0502")) + return (ENXIO); + rid = 0; port = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, 0, ~0, IO_COMSIZE, RF_ACTIVE); |