Lines Matching defs:ATPIC_MASTER
50 #define ATPIC_MASTER 0
155 bus_set_resource(child, SYS_RES_IOPORT, ATPIC_MASTER, IO_ICU1, 2);
179 sc->sc_mask[icu] = 0xff - ((icu == ATPIC_MASTER) ? 4 : 0);
200 sc->sc_rid[ATPIC_MASTER] = 0;
201 sc->sc_res[ATPIC_MASTER] = bus_alloc_resource_any(dev, SYS_RES_IOPORT,
202 &sc->sc_rid[ATPIC_MASTER], RF_ACTIVE);
203 if (sc->sc_res[ATPIC_MASTER] == NULL)
224 atpic_init(sc, ATPIC_MASTER);
236 if (sc->sc_res[ATPIC_MASTER] != NULL)
238 sc->sc_rid[ATPIC_MASTER], sc->sc_res[ATPIC_MASTER]);
260 atpic_write(sc, ATPIC_MASTER, 0, OCW3_SEL | OCW3_P);
261 irq = atpic_read(sc, ATPIC_MASTER, 0);
262 atpic_write(sc, ATPIC_MASTER, 0, OCW3_SEL | OCW3_RR);
295 atpic_write(sc, ATPIC_MASTER, 0, OCW2_EOI);
314 sc->sc_mask[ATPIC_MASTER] |= 1 << irq;
315 atpic_write(sc, ATPIC_MASTER, 1, sc->sc_mask[ATPIC_MASTER]);
329 sc->sc_mask[ATPIC_MASTER] &= ~(1 << irq);
330 atpic_write(sc, ATPIC_MASTER, 1, sc->sc_mask[ATPIC_MASTER]);