summaryrefslogtreecommitdiffstats
path: root/sys/isa/isa_common.c
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1999-05-28 09:25:16 +0000
committerdfr <dfr@FreeBSD.org>1999-05-28 09:25:16 +0000
commitc10ae458eb1914a695353000a7bfde6666cf2a0d (patch)
tree24cf7146aaf68067486496ae06716cedf2177505 /sys/isa/isa_common.c
parent0e927447e35265ab29fea7db0f0f455451b0a7b2 (diff)
downloadFreeBSD-src-c10ae458eb1914a695353000a7bfde6666cf2a0d.zip
FreeBSD-src-c10ae458eb1914a695353000a7bfde6666cf2a0d.tar.gz
* Change device_add_child_after() to device_add_child_ordered() which is
easier to use and more flexible. * Change BUS_ADD_CHILD to take an order argument instead of a place. * Define a partial ordering for isa devices so that sensitive devices are probed before non-sensitive ones.
Diffstat (limited to 'sys/isa/isa_common.c')
-rw-r--r--sys/isa/isa_common.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/isa/isa_common.c b/sys/isa/isa_common.c
index 2003eeb..7b3b494 100644
--- a/sys/isa/isa_common.c
+++ b/sys/isa/isa_common.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: isa_common.c,v 1.1 1999/05/22 15:18:23 dfr Exp $
*/
/*
* Modifications for Intel architecture by Garrett A. Wollman.
@@ -109,7 +109,7 @@ isa_attach(device_t dev)
* Add a new child with default ivars.
*/
static device_t
-isa_add_child(device_t dev, device_t place, const char *name, int unit)
+isa_add_child(device_t dev, int order, const char *name, int unit)
{
struct isa_device *idev;
@@ -121,10 +121,7 @@ isa_add_child(device_t dev, device_t place, const char *name, int unit)
resource_list_init(&idev->id_resources);
idev->id_flags = 0;
- if (place)
- return device_add_child_after(dev, place, name, unit, idev);
- else
- return device_add_child(dev, name, unit, idev);
+ return device_add_child_ordered(dev, order, name, unit, idev);
}
static void
OpenPOWER on IntegriCloud