summaryrefslogtreecommitdiffstats
path: root/sys/isa/isahint.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/isahint.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/isahint.c')
-rw-r--r--sys/isa/isahint.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/isa/isahint.c b/sys/isa/isahint.c
index c3dff33..25e6d84 100644
--- a/sys/isa/isahint.c
+++ b/sys/isa/isahint.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: isahint.c,v 1.1 1999/05/14 11:22:33 dfr Exp $
+ * $Id: isahint.c,v 1.2 1999/05/22 15:18:26 dfr Exp $
*/
#include <sys/param.h>
@@ -39,7 +39,7 @@ isahint_add_device(device_t parent, const char *name, int unit)
{
device_t child;
int sensitive, start, count, t;
- static device_t last_sensitive;
+ int order;
/* device-specific flag overrides any wildcard */
sensitive = 0;
@@ -47,13 +47,13 @@ isahint_add_device(device_t parent, const char *name, int unit)
resource_int_value(name, -1, "sensitive", &sensitive);
if (sensitive)
- child = BUS_ADD_CHILD(parent, last_sensitive, name, unit);
+ order = ISA_ORDER_SENSITIVE;
else
- child = BUS_ADD_CHILD(parent, 0, name, unit);
+ order = ISA_ORDER_SPECULATIVE;
+
+ child = BUS_ADD_CHILD(parent, order, name, unit);
if (child == 0)
return;
- else if (sensitive)
- last_sensitive = child;
start = 0;
count = 0;
OpenPOWER on IntegriCloud