summaryrefslogtreecommitdiffstats
path: root/sys/pci
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-11-30 01:34:46 +0000
committerpeter <peter@FreeBSD.org>1999-11-30 01:34:46 +0000
commit425ff1daf9267637ccb766f6711bbb61ac3d0694 (patch)
tree47aa4b23c8cb80fe8e8a93d0a781703aadbd8716 /sys/pci
parente9f6da9c69d2d0f50c18f2a9b31fcb277a2fe89a (diff)
downloadFreeBSD-src-425ff1daf9267637ccb766f6711bbb61ac3d0694.zip
FreeBSD-src-425ff1daf9267637ccb766f6711bbb61ac3d0694.tar.gz
Make the pci driver compat shim return a preference for probe
rather than an "it's mine!" so that other newbus-aware drivers can bid for the device too. This should allow the sym driver to out-bid the ncr driver for devices it supports without having to modify ncr.c at all. ncr would then function as a catch-all.
Diffstat (limited to 'sys/pci')
-rw-r--r--sys/pci/pci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/pci/pci.c b/sys/pci/pci.c
index dadc5bf..efb98d2 100644
--- a/sys/pci/pci.c
+++ b/sys/pci/pci.c
@@ -878,7 +878,8 @@ pci_compat_probe(device_t dev)
name = dvp->pd_probe(cfg, (cfg->device << 16) + cfg->vendor);
if (name) {
device_set_desc_copy(dev, name);
- error = 0;
+ /* Allow newbus drivers to match "better" */
+ error = -1000;
}
}
OpenPOWER on IntegriCloud