Lines Matching +full:open +full:- +full:pic
1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
31 * A driver for the PIC found in the Heathrow/Paddington MacIO chips.
78 /* PIC interface */
103 return (bus_space_read_4(sc->sc_bt, sc->sc_bh, reg)); in hrowpic_read_reg()
114 bus_space_write_4(sc->sc_bt, sc->sc_bh, reg, val); in hrowpic_write_reg()
117 bus_space_read_4(sc->sc_bt, sc->sc_bh, reg); in hrowpic_write_reg()
126 * OpenPIC cells have a type of "open-pic", so this in hrowpic_probe()
129 if (strcmp(type, "interrupt-controller") != 0) in hrowpic_probe()
146 sc->sc_dev = dev; in hrowpic_attach()
148 sc->sc_rrid = 0; in hrowpic_attach()
149 sc->sc_rres = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &sc->sc_rrid, in hrowpic_attach()
152 if (sc->sc_rres == NULL) { in hrowpic_attach()
157 sc->sc_bt = rman_get_bustag(sc->sc_rres); in hrowpic_attach()
158 sc->sc_bh = rman_get_bushandle(sc->sc_rres); in hrowpic_attach()
198 sc->sc_softreg[roffset] |= (1 << rbit); in hrowpic_toggle_irq()
200 sc->sc_softreg[roffset] &= ~(1 << rbit); in hrowpic_toggle_irq()
202 hrowpic_write_reg(sc, HPIC_ENABLE, roffset, sc->sc_softreg[roffset]); in hrowpic_toggle_irq()
206 * PIC I/F methods.
228 powerpc_dispatch_intr(sc->sc_vector[irq], tf); in hrowpic_dispatch()
241 sc->sc_vector[irq] = vector; in hrowpic_enable()