aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/device_if.m
diff options
context:
space:
mode:
authorDoug Rabson <dfr@FreeBSD.org>1999-05-14 11:22:47 +0000
committerDoug Rabson <dfr@FreeBSD.org>1999-05-14 11:22:47 +0000
commit6c2e3dde8cb3d10e7825d5e2a4ff46d0ab2ba221 (patch)
tree76330d29c8b0e46490e08732e21d4ed2fd8d744b /sys/kern/device_if.m
parentd45204676eb80980de88d37f2f489f706d8ef9bf (diff)
downloadsrc-6c2e3dde8cb3d10e7825d5e2a4ff46d0ab2ba221.tar.gz
src-6c2e3dde8cb3d10e7825d5e2a4ff46d0ab2ba221.zip
* Define a new static method DEVICE_IDENTIFY which is called to add device
instances to a parent bus. * Define a new method BUS_ADD_CHILD which can be called from DEVICE_IDENTIFY to add new instances. * Add a generic implementation of DEVICE_PROBE which calls DEVICE_IDENTIFY for each driver attached to the parent's devclass. * Move the hint-based isa probe from the isa driver to a new isahint driver which can be shared between i386 and alpha.
Notes
Notes: svn path=/head/; revision=47178
Diffstat (limited to 'sys/kern/device_if.m')
-rw-r--r--sys/kern/device_if.m10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/kern/device_if.m b/sys/kern/device_if.m
index 0d8e8f425111..c927e028cee7 100644
--- a/sys/kern/device_if.m
+++ b/sys/kern/device_if.m
@@ -23,7 +23,7 @@
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
-# $Id: device_if.m,v 1.3 1998/11/14 21:58:51 wollman Exp $
+# $Id: device_if.m,v 1.4 1999/05/10 17:06:13 dfr Exp $
#
INTERFACE device;
@@ -75,6 +75,14 @@ METHOD int probe {
};
#
+# Called by a parent bus to add new devices to the bus.
+#
+STATICMETHOD void identify {
+ driver_t *driver;
+ device_t parent;
+};
+
+#
# Attach a device to the system. The probe method will have been
# called and will have indicated that the device exists. This routine
# should initialise the hardware and allocate other system resources