aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/fdt/fdtbus.c
diff options
context:
space:
mode:
authorJayachandran C. <jchandra@FreeBSD.org>2011-10-18 07:29:21 +0000
committerJayachandran C. <jchandra@FreeBSD.org>2011-10-18 07:29:21 +0000
commit29a99755a9ab7fc4f72b04bc40d8307cce032da6 (patch)
treee2c248ac2499e2857d25457d49b3ce65fa3a6375 /sys/dev/fdt/fdtbus.c
parente141be6f79f0cbfa36dd284c5a2528a566d809f9 (diff)
Notes
Diffstat (limited to 'sys/dev/fdt/fdtbus.c')
-rw-r--r--sys/dev/fdt/fdtbus.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/fdt/fdtbus.c b/sys/dev/fdt/fdtbus.c
index 86a9d176f9fd..a2530cd421d9 100644
--- a/sys/dev/fdt/fdtbus.c
+++ b/sys/dev/fdt/fdtbus.c
@@ -591,6 +591,9 @@ fdtbus_setup_intr(device_t bus, device_t child, struct resource *res,
#if defined(__powerpc__)
err = powerpc_setup_intr(device_get_nameunit(child),
rman_get_start(res), filter, ihand, arg, flags, cookiep);
+#elif defined(__mips__)
+ cpu_establish_hardintr(device_get_nameunit(child),
+ filter, ihand, arg, rman_get_start(res), flags, cookiep);
#elif defined(__arm__)
arm_setup_irqhandler(device_get_nameunit(child),
filter, ihand, arg, rman_get_start(res), flags, cookiep);
@@ -617,7 +620,6 @@ fdtbus_deactivate_resource(device_t bus, device_t child, int type, int rid,
return (rman_deactivate_resource(res));
}
-
static int
fdtbus_teardown_intr(device_t bus, device_t child, struct resource *res,
void *cookie)
@@ -625,6 +627,9 @@ fdtbus_teardown_intr(device_t bus, device_t child, struct resource *res,
#if defined(__powerpc__)
return (powerpc_teardown_intr(cookie));
+#elif defined(__mips__)
+ /* mips does not have a teardown yet */
+ return (0);
#elif defined(__arm__)
return (arm_remove_irqhandler(rman_get_start(res), cookie));
#endif