Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Aug 2002 13:35:42 -0400 (EDT)
From:      John Baldwin <jhb@FreeBSD.org>
To:        new-bus@FreeBSD.org
Subject:   bus_generic_probe() is wrong I think
Message-ID:  <XFMail.20020830133542.jhb@FreeBSD.org>

next in thread | raw e-mail | index | archive | help
If we are going to support having multiple driver's for a given device
which is a bus (like we do now for PCI busses and like I am doing for
this concept of a system buson i386) then I think that bus devices do
not need to go identify child devices until after they have won the
probe and are being attached.  Thus, I'm ending up calling
bus_generic_probe() in my attach routines instead of my probe routines.
Does this make sense or am I missing something?  I at least have to do
this in the system bus case here for the same reasons that when I added
another PCI bus driver, I had to change the PCI drivers to add children
devices (equivalent of doing an identify) during attach() time and not
during probe() time.

-- 

John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-new-bus" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20020830133542.jhb>