Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/ti/ti_gpio.c
Show First 20 Lines • Show All 899 Lines • ▼ Show 20 Lines | for (irq = 0; irq < sc->sc_maxpin; irq++) { | ||||
sc->sc_isrcs[irq].tgi_mode = GPIO_INTR_CONFORM; | sc->sc_isrcs[irq].tgi_mode = GPIO_INTR_CONFORM; | ||||
error = intr_isrc_register(&sc->sc_isrcs[irq].tgi_isrc, | error = intr_isrc_register(&sc->sc_isrcs[irq].tgi_isrc, | ||||
sc->sc_dev, 0, "%s,%u", name, irq); | sc->sc_dev, 0, "%s,%u", name, irq); | ||||
if (error != 0) | if (error != 0) | ||||
return (error); /* XXX deregister ISRCs */ | return (error); /* XXX deregister ISRCs */ | ||||
} | } | ||||
return (intr_pic_register(sc->sc_dev, | return (intr_pic_register(sc->sc_dev, | ||||
OF_xref_from_node(ofw_bus_get_node(sc->sc_dev)))); | OF_xref_from_node(ofw_bus_get_node(sc->sc_dev)), sc->sc_maxpin)); | ||||
} | } | ||||
static int | static int | ||||
ti_gpio_pic_detach(struct ti_gpio_softc *sc) | ti_gpio_pic_detach(struct ti_gpio_softc *sc) | ||||
{ | { | ||||
/* | /* | ||||
* There has not been established any procedure yet | * There has not been established any procedure yet | ||||
▲ Show 20 Lines • Show All 460 Lines • Show Last 20 Lines |