summaryrefslogtreecommitdiffstats
path: root/sys/dev/pbio
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2005-02-11 03:56:13 +0000
committerimp <imp@FreeBSD.org>2005-02-11 03:56:13 +0000
commit0961430bb9d6986d90cfc1f1711a153b663281bf (patch)
treeeab4ae4d629e0b718c5c13023a3ddba1f1561d73 /sys/dev/pbio
parent16b445daa8616ecbb0f49518df659941d21633bc (diff)
downloadFreeBSD-src-0961430bb9d6986d90cfc1f1711a153b663281bf.zip
FreeBSD-src-0961430bb9d6986d90cfc1f1711a153b663281bf.tar.gz
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.
Diffstat (limited to 'sys/dev/pbio')
-rw-r--r--sys/dev/pbio/pbio.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/pbio/pbio.c b/sys/dev/pbio/pbio.c
index 84b883d..e4c2b0e 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);
OpenPOWER on IntegriCloud