PERFORCE change 1201462 for review
John Baldwin
jhb at FreeBSD.org
Fri Oct 10 19:40:35 UTC 2014
http://p4web.freebsd.org/@@1201462?ac=10
Change 1201462 by jhb at jhb_pippin on 2014/10/10 19:40:28
This should probe earlier as well.
Affected files ...
.. //depot/projects/multipass/sys/x86/pci/qpi.c#4 edit
Differences ...
==== //depot/projects/multipass/sys/x86/pci/qpi.c#4 (text+ko) ====
@@ -75,7 +75,7 @@
return;
/* Add a qpi bus device. */
- if (BUS_ADD_CHILD(parent, 20, "qpi", -1) == NULL)
+ if (BUS_ADD_CHILD(parent, 0, "qpi", -1) == NULL)
panic("Failed to add qpi bus");
}
@@ -204,7 +204,8 @@
static devclass_t qpi_devclass;
DEFINE_CLASS_0(qpi, qpi_driver, qpi_methods, 0);
-DRIVER_MODULE(qpi, nexus, qpi_driver, qpi_devclass, 0, 0);
+EARLY_DRIVER_MODULE(qpi, nexus, qpi_driver, qpi_devclass, 0, 0,
+ BUS_PASS_BUS + BUS_PASS_ORDER_LATE);
static int
qpi_pcib_probe(device_t dev)
@@ -301,4 +302,5 @@
static devclass_t qpi_pcib_devclass;
DEFINE_CLASS_0(pcib, qpi_pcib_driver, qpi_pcib_methods, 0);
-DRIVER_MODULE(pcib, qpi, qpi_pcib_driver, qpi_pcib_devclass, 0, 0);
+EARLY_DRIVER_MODULE(pcib, qpi, qpi_pcib_driver, qpi_pcib_devclass, 0, 0,
+ BUS_PASS_BUS);
More information about the p4-projects
mailing list