summaryrefslogtreecommitdiffstats
path: root/sys/sparc64/ebus
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2009-12-22 21:02:46 +0000
committermarius <marius@FreeBSD.org>2009-12-22 21:02:46 +0000
commit8051f5835e12d1cba001269e9d65acfa61995b7e (patch)
tree725ef54a565db62bee14db1a99d5113ab1bfc6d5 /sys/sparc64/ebus
parenta01fc2fc2d74b75bbe547356005cf64262d95a9d (diff)
downloadFreeBSD-src-8051f5835e12d1cba001269e9d65acfa61995b7e.zip
FreeBSD-src-8051f5835e12d1cba001269e9d65acfa61995b7e.tar.gz
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.
Diffstat (limited to 'sys/sparc64/ebus')
-rw-r--r--sys/sparc64/ebus/ebus.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sparc64/ebus/ebus.c b/sys/sparc64/ebus/ebus.c
index 3bafaae..a3e6d58 100644
--- a/sys/sparc64/ebus/ebus.c
+++ b/sys/sparc64/ebus/ebus.c
@@ -138,7 +138,8 @@ static driver_t ebus_driver = {
static devclass_t ebus_devclass;
-DRIVER_MODULE(ebus, pci, ebus_driver, ebus_devclass, 0, 0);
+EARLY_DRIVER_MODULE(ebus, pci, ebus_driver, ebus_devclass, 0, 0,
+ BUS_PASS_BUS);
MODULE_DEPEND(ebus, pci, 1, 1, 1);
MODULE_VERSION(ebus, 1);
OpenPOWER on IntegriCloud