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.
This commit is contained in:
parent
900ae3678c
commit
659c2e230c
@ -49,6 +49,7 @@ __FBSDID("$FreeBSD$");
|
|||||||
#include <dev/pbio/pbioio.h> /* pbio IOCTL definitions */
|
#include <dev/pbio/pbioio.h> /* pbio IOCTL definitions */
|
||||||
#include <sys/uio.h>
|
#include <sys/uio.h>
|
||||||
#include <sys/fcntl.h>
|
#include <sys/fcntl.h>
|
||||||
|
#include <isa/isavar.h>
|
||||||
|
|
||||||
/* Function prototypes (these should all be static) */
|
/* Function prototypes (these should all be static) */
|
||||||
static d_open_t pbioopen;
|
static d_open_t pbioopen;
|
||||||
@ -168,6 +169,8 @@ pbioprobe(device_t dev)
|
|||||||
unsigned char val;
|
unsigned char val;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (isa_get_logicalid(dev)) /* skip PnP probes */
|
||||||
|
return (ENXIO);
|
||||||
rid = 0;
|
rid = 0;
|
||||||
scp->res = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid,
|
scp->res = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid,
|
||||||
0, ~0, IO_PBIOSIZE, RF_ACTIVE);
|
0, ~0, IO_PBIOSIZE, RF_ACTIVE);
|
||||||
|
Loading…
Reference in New Issue
Block a user