From owner-freebsd-new-bus Wed Oct 6 20: 7:23 1999 Delivered-To: freebsd-new-bus@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 5504D15046; Wed, 6 Oct 1999 20:06:59 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id VAA14792; Wed, 6 Oct 1999 21:07:06 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id UAA00348; Wed, 6 Oct 1999 20:41:37 -0600 (MDT) Message-Id: <199910070241.UAA00348@harmony.village.org> To: Doug Rabson Subject: Re: Question on loading buses Cc: new-bus@FreeBSD.ORG, dfr@FreeBSD.ORG In-reply-to: Your message of "Thu, 07 Oct 1999 01:31:39 BST." References: Date: Wed, 06 Oct 1999 20:41:37 -0600 From: Warner Losh Sender: owner-freebsd-new-bus@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message Doug Rabson writes: : The call should happen before the probe loop otherwise new devices created : by the identify method won't be probed. Note that for the isa bus, we : really need an isa_driver_added which can allocate pnp resources etc. : after the identify creates them. OK. For the moment I've not done the isa_driver_added since I don't understand the pnp code. However, the following works. Can you comment on it? Warner Index: kern/bus_if.m =================================================================== RCS file: /home/imp/FreeBSD/CVS/src/sys/kern/bus_if.m,v retrieving revision 1.14 diff -u -r1.14 bus_if.m --- bus_if.m 1999/08/28 00:46:09 1.14 +++ bus_if.m 1999/10/07 02:19:10 @@ -113,7 +113,7 @@ METHOD void driver_added { device_t dev; driver_t *driver; -} +} DEFAULT bus_generic_driver_added; # # For busses which use use drivers supporting DEVICE_IDENTIFY to Index: kern/subr_bus.c =================================================================== RCS file: /home/imp/FreeBSD/CVS/src/sys/kern/subr_bus.c,v retrieving revision 1.42 diff -u -r1.42 subr_bus.c --- subr_bus.c 1999/09/10 21:11:23 1.42 +++ subr_bus.c 1999/10/07 02:34:05 @@ -1924,6 +1924,7 @@ { device_t child; + DEVICE_IDENTIFY(driver, dev); for (child = TAILQ_FIRST(&dev->children); child; child = TAILQ_NEXT(child, link)) if (child->state == DS_NOTPRESENT) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-new-bus" in the body of the message