Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/broadcom/bcm2835/bcm2835_gpio.c
Show First 20 Lines • Show All 1,040 Lines • ▼ Show 20 Lines | for (irq = 0; irq < BCM_GPIO_PINS; irq++) { | ||||
sc->sc_isrcs[irq].bgi_mode = GPIO_INTR_CONFORM; | sc->sc_isrcs[irq].bgi_mode = GPIO_INTR_CONFORM; | ||||
error = intr_isrc_register(&sc->sc_isrcs[irq].bgi_isrc, | error = intr_isrc_register(&sc->sc_isrcs[irq].bgi_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)), BCM_GPIO_PINS)); | ||||
} | } | ||||
static int | static int | ||||
bcm_gpio_pic_detach(struct bcm_gpio_softc *sc) | bcm_gpio_pic_detach(struct bcm_gpio_softc *sc) | ||||
{ | { | ||||
/* | /* | ||||
* There has not been established any procedure yet | * There has not been established any procedure yet | ||||
▲ Show 20 Lines • Show All 444 Lines • Show Last 20 Lines |