summaryrefslogtreecommitdiffstats
path: root/sys/kern/bus_if.m
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1999-07-11 13:42:37 +0000
committerdfr <dfr@FreeBSD.org>1999-07-11 13:42:37 +0000
commit064ed23661dd3f474ef0062c7a164c42189638be (patch)
tree763d88b395ddb0fe28d67daab0f1128ffd1ad61c /sys/kern/bus_if.m
parent417022436a9def8a12b8f29ad4f21c07cdea4116 (diff)
downloadFreeBSD-src-064ed23661dd3f474ef0062c7a164c42189638be.zip
FreeBSD-src-064ed23661dd3f474ef0062c7a164c42189638be.tar.gz
Add a hook for a bus to detect child devices which didn't find drivers.
This allows the bus to print an informative message about unknown devices. Submitted by: Matthew N. Dodd <winter@jurai.net>
Diffstat (limited to 'sys/kern/bus_if.m')
-rw-r--r--sys/kern/bus_if.m12
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/kern/bus_if.m b/sys/kern/bus_if.m
index 6311601..8cc6e5e 100644
--- a/sys/kern/bus_if.m
+++ b/sys/kern/bus_if.m
@@ -23,7 +23,7 @@
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
-# $Id: bus_if.m,v 1.10 1999/05/14 11:22:39 dfr Exp $
+# $Id: bus_if.m,v 1.11 1999/05/28 09:25:08 dfr Exp $
#
INTERFACE bus;
@@ -53,6 +53,16 @@ METHOD void print_child {
device_t child;
};
+#
+# Called for each child device that
+# did not succeed in probing for a
+# driver.
+#
+METHOD void probe_nomatch {
+ device_t dev;
+ device_t child;
+};
+
#
# These two methods manage a bus specific set of instance variables of
# a child device. The intention is that each different type of bus
OpenPOWER on IntegriCloud