From 064ed23661dd3f474ef0062c7a164c42189638be Mon Sep 17 00:00:00 2001 From: dfr Date: Sun, 11 Jul 1999 13:42:37 +0000 Subject: 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 --- sys/kern/bus_if.m | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'sys/kern/bus_if.m') 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 -- cgit v1.1