Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Oct 1999 00:42:11 +0100 (BST)
From:      Doug Rabson <dfr@nlsystems.com>
To:        Warner Losh <imp@village.org>
Cc:        new-bus@freebsd.org, dfr@freebsd.org
Subject:   Re: Question on loading buses
Message-ID:  <Pine.BSF.4.10.9910070039460.571-100000@salmon.nlsystems.com>
In-Reply-To: <199910062220.QAA07058@harmony.village.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 6 Oct 1999, Warner Losh wrote:

> 
> How can I load a bus?  I have a simple bus that has device_identify
> and device_probe methods.  Neither of them seems to be called when I
> kldload it.  This is true when it is a isa driver or a nexus driver.
> Am I doing something wrong?

Currently all that happens when a driver is loaded is that the
BUS_DRIVER_ADDED method of all instances of the parent bus is called.
There is a generic implementation of BUS_DRIVER_ADDED which calls
device_probe_and_attach() for any unmatched device instances but the
parent probably doesn't have this in its method table. Probably
bus_generic_driver_added() should call DEVICE_IDENTIFY for the new driver
too.

--
Doug Rabson				Mail:  dfr@nlsystems.com
Nonlinear Systems Ltd.			Phone: +44 181 442 9037




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?Pine.BSF.4.10.9910070039460.571-100000>