PERFORCE change 174266 for review
Rafal Jaworowski
raj at FreeBSD.org
Wed Feb 3 20:39:05 UTC 2010
http://p4web.freebsd.org/chv.cgi?CH=174266
Change 174266 by raj at raj_fdt on 2010/02/03 20:39:00
Convert Marvell PIC to FDT/simplebus convention.
Affected files ...
.. //depot/projects/fdt/sys/arm/mv/ic.c#2 edit
Differences ...
==== //depot/projects/fdt/sys/arm/mv/ic.c#2 (text+ko) ====
@@ -40,6 +40,9 @@
#include <machine/bus.h>
#include <machine/intr.h>
+#include <dev/ofw/ofw_bus.h>
+#include <dev/ofw/ofw_bus_subr.h>
+
#include <arm/mv/mvreg.h>
#include <arm/mv/mvvar.h>
@@ -76,6 +79,9 @@
mv_ic_probe(device_t dev)
{
+ if (!ofw_bus_is_compatible(dev, "mrvl,pic"))
+ return (ENXIO);
+
device_set_desc(dev, "Marvell Integrated Interrupt Controller");
return (0);
}
@@ -134,7 +140,7 @@
static devclass_t mv_ic_devclass;
-DRIVER_MODULE(ic, mbus, mv_ic_driver, mv_ic_devclass, 0, 0);
+DRIVER_MODULE(ic, simplebus, mv_ic_driver, mv_ic_devclass, 0, 0);
int
arm_get_next_irq(int last __unused)
More information about the p4-projects
mailing list