diff options
author | Warner Losh <imp@FreeBSD.org> | 2005-02-11 03:56:13 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2005-02-11 03:56:13 +0000 |
commit | 8d50b6af002e8cc3535c9d725dc756a90ada2672 (patch) | |
tree | eab4ae4d629e0b718c5c13023a3ddba1f1561d73 /sys/dev | |
parent | ff126c43cd4abfad28d6d455235c235cfa08b172 (diff) | |
download | src-8d50b6af002e8cc3535c9d725dc756a90ada2672.tar.gz src-8d50b6af002e8cc3535c9d725dc756a90ada2672.zip |
Skip PNP probes. If there are isapnp or pnpbios instances of this driver,
then we can support them later. This keeps the pbio probe from claiming
lots of otherwise unused pnpbios devices on my laptop.
Notes
Notes:
svn path=/head/; revision=141680
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pbio/pbio.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/pbio/pbio.c b/sys/dev/pbio/pbio.c index 84b883da1bc6..e4c2b0ea185d 100644 --- a/sys/dev/pbio/pbio.c +++ b/sys/dev/pbio/pbio.c @@ -49,6 +49,7 @@ __FBSDID("$FreeBSD$"); #include <dev/pbio/pbioio.h> /* pbio IOCTL definitions */ #include <sys/uio.h> #include <sys/fcntl.h> +#include <isa/isavar.h> /* Function prototypes (these should all be static) */ static d_open_t pbioopen; @@ -168,6 +169,8 @@ pbioprobe(device_t dev) unsigned char val; #endif + if (isa_get_logicalid(dev)) /* skip PnP probes */ + return (ENXIO); rid = 0; scp->res = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, 0, ~0, IO_PBIOSIZE, RF_ACTIVE); |