aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/bus.h
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2016-04-27 17:49:42 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2016-04-27 17:49:42 +0000
commite240255ffc03934754a4a3e9940dfb3f59ff0ffe (patch)
treedb7a570c9f5ca34e64097390858f25304cf3fd08 /sys/sys/bus.h
parent67e7d085aea75897f71505d4db2b22eb9e7bb0c6 (diff)
downloadsrc-e240255ffc03934754a4a3e9940dfb3f59ff0ffe.tar.gz
src-e240255ffc03934754a4a3e9940dfb3f59ff0ffe.zip
Add a bus_null_rescan() method that always fails with an error.
Use this in place of kobj_error_method to disable BUS_RESCAN() on PCI drivers that do not use the "standard" scanning algorithm.
Notes
Notes: svn path=/head/; revision=298712
Diffstat (limited to 'sys/sys/bus.h')
-rw-r--r--sys/sys/bus.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/bus.h b/sys/sys/bus.h
index 85cfb0ec4aed..4992cdb4847e 100644
--- a/sys/sys/bus.h
+++ b/sys/sys/bus.h
@@ -430,6 +430,7 @@ int bus_generic_teardown_intr(device_t dev, device_t child,
struct resource *irq, void *cookie);
int bus_generic_write_ivar(device_t dev, device_t child, int which,
uintptr_t value);
+int bus_null_rescan(device_t dev);
/*
* Wrapper functions for the BUS_*_RESOURCE methods to make client code