aboutsummaryrefslogtreecommitdiff
path: root/sys/sparc64/fhc
diff options
context:
space:
mode:
authorMarius Strobl <marius@FreeBSD.org>2009-12-22 21:02:46 +0000
committerMarius Strobl <marius@FreeBSD.org>2009-12-22 21:02:46 +0000
commit1bba41a506f50fb28d77237ce31e23482f496d3e (patch)
tree725ef54a565db62bee14db1a99d5113ab1bfc6d5 /sys/sparc64/fhc
parent8d9f6dd948bcc87733d0a6f984804aabb4ac29d9 (diff)
downloadsrc-1bba41a506f50fb28d77237ce31e23482f496d3e.tar.gz
src-1bba41a506f50fb28d77237ce31e23482f496d3e.zip
Enroll these drivers in multipass probing. The motivation behind this
is that the JBus to EBus bridges share the interrupt controller of a sibling JBus to PCIe bridge (at least as far as the OFW device tree is concerned, in reality they are part of the same chip) so we have to probe and attach the latter first. That happens to be also the case due to the fact that the JBus to PCIe bridges appear first in the OFW device tree but it doesn't hurt to ensure the right order.
Notes
Notes: svn path=/head/; revision=200874
Diffstat (limited to 'sys/sparc64/fhc')
-rw-r--r--sys/sparc64/fhc/fhc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/sparc64/fhc/fhc.c b/sys/sparc64/fhc/fhc.c
index 6ef7b1b519fe..6aefffa1a6f9 100644
--- a/sys/sparc64/fhc/fhc.c
+++ b/sys/sparc64/fhc/fhc.c
@@ -119,9 +119,11 @@ static driver_t fhc_driver = {
static devclass_t fhc_devclass;
-DRIVER_MODULE(fhc, central, fhc_driver, fhc_devclass, 0, 0);
+EARLY_DRIVER_MODULE(fhc, central, fhc_driver, fhc_devclass, 0, 0,
+ BUS_PASS_BUS);
MODULE_DEPEND(fhc, central, 1, 1, 1);
-DRIVER_MODULE(fhc, nexus, fhc_driver, fhc_devclass, 0, 0);
+EARLY_DRIVER_MODULE(fhc, nexus, fhc_driver, fhc_devclass, 0, 0,
+ BUS_PASS_BUS);
MODULE_DEPEND(fhc, nexus, 1, 1, 1);
MODULE_VERSION(fhc, 1);