summaryrefslogtreecommitdiffstats
path: root/sys/mips
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2012-04-21 04:17:30 +0000
committeradrian <adrian@FreeBSD.org>2012-04-21 04:17:30 +0000
commit5a4218fd168e3dfa11b5b58f3bb7403547db3311 (patch)
tree8449996bd94e93d4390e388eddd2235d4181264b /sys/mips
parentc8b1a4baafceb8e9d879c23f22b2fa3f8a7b054d (diff)
downloadFreeBSD-src-5a4218fd168e3dfa11b5b58f3bb7403547db3311.zip
FreeBSD-src-5a4218fd168e3dfa11b5b58f3bb7403547db3311.tar.gz
Allow for MIPS devices to have a specific probe/attach order.
The default priority is now '1000' rather than '0'. This may cause some unforseen regressions. Submitted by: Stefan Bethke <stb@lassitu.de> Reviewed by: imp
Diffstat (limited to 'sys/mips')
-rw-r--r--sys/mips/mips/nexus.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/mips/mips/nexus.c b/sys/mips/mips/nexus.c
index 45590e1..47b8c19 100644
--- a/sys/mips/mips/nexus.c
+++ b/sys/mips/mips/nexus.c
@@ -237,11 +237,14 @@ nexus_hinted_child(device_t bus, const char *dname, int dunit)
device_t child;
long maddr;
int msize;
+ int order;
int result;
int irq;
int mem_hints_count;
- child = BUS_ADD_CHILD(bus, 0, dname, dunit);
+ if ((resource_int_value(dname, dunit, "order", &order)) != 0)
+ order = 1000;
+ child = BUS_ADD_CHILD(bus, order, dname, dunit);
if (child == NULL)
return;
OpenPOWER on IntegriCloud