Changeset View
Changeset View
Standalone View
Standalone View
sys/mips/mediatek/mtk_intr_gic.c
Show First 20 Lines • Show All 207 Lines • ▼ Show 20 Lines | if (mtk_gic_register_isrcs(sc) != 0) { | ||||
device_printf(dev, "could not register GIC ISRCs\n"); | device_printf(dev, "could not register GIC ISRCs\n"); | ||||
goto cleanup; | goto cleanup; | ||||
} | } | ||||
/* | /* | ||||
* Now, when everything is initialized, it's right time to | * Now, when everything is initialized, it's right time to | ||||
* register interrupt controller to interrupt framefork. | * register interrupt controller to interrupt framefork. | ||||
*/ | */ | ||||
if (intr_pic_register(dev, xref) != 0) { | if (intr_pic_register(dev, xref, sc->nirqs) != 0) { | ||||
device_printf(dev, "could not register PIC\n"); | device_printf(dev, "could not register PIC\n"); | ||||
goto cleanup; | goto cleanup; | ||||
} | } | ||||
cpu_establish_hardintr("gic", mtk_gic_intr, NULL, sc, 0, INTR_TYPE_CLK, | cpu_establish_hardintr("gic", mtk_gic_intr, NULL, sc, 0, INTR_TYPE_CLK, | ||||
NULL); | NULL); | ||||
return (0); | return (0); | ||||
▲ Show 20 Lines • Show All 146 Lines • Show Last 20 Lines |