Lines Matching refs:ATPIC_SLAVE
51 #define ATPIC_SLAVE 1
156 bus_set_resource(child, SYS_RES_IOPORT, ATPIC_SLAVE, IO_ICU2, 2);
182 atpic_write(sc, icu, 1, (icu == ATPIC_SLAVE) ? 8 : 0);
183 atpic_write(sc, icu, 1, (icu == ATPIC_SLAVE) ? 2 : 4);
206 sc->sc_rid[ATPIC_SLAVE] = 1;
207 sc->sc_res[ATPIC_SLAVE] = bus_alloc_resource_any(dev, SYS_RES_IOPORT,
208 &sc->sc_rid[ATPIC_SLAVE], RF_ACTIVE);
209 if (sc->sc_res[ATPIC_SLAVE] == NULL)
223 atpic_init(sc, ATPIC_SLAVE);
233 if (sc->sc_res[ATPIC_SLAVE] != NULL)
235 sc->sc_rid[ATPIC_SLAVE], sc->sc_res[ATPIC_SLAVE]);
267 atpic_write(sc, ATPIC_SLAVE, 0, OCW3_SEL | OCW3_P);
268 irq = atpic_read(sc, ATPIC_SLAVE, 0) + 8;
269 atpic_write(sc, ATPIC_SLAVE, 0, OCW3_SEL | OCW3_RR);
294 atpic_write(sc, ATPIC_SLAVE, 0, OCW2_EOI);
311 sc->sc_mask[ATPIC_SLAVE] |= 1 << (irq - 8);
312 atpic_write(sc, ATPIC_SLAVE, 1, sc->sc_mask[ATPIC_SLAVE]);
326 sc->sc_mask[ATPIC_SLAVE] &= ~(1 << (irq - 8));
327 atpic_write(sc, ATPIC_SLAVE, 1, sc->sc_mask[ATPIC_SLAVE]);