Lines Matching refs:sc_res
56 struct resource *sc_res[2];
123 val = bus_read_1(sc->sc_res[icu], ofs);
131 bus_write_1(sc->sc_res[icu], ofs, val);
132 bus_barrier(sc->sc_res[icu], ofs, 2 - ofs,
199 sc->sc_res[ATPIC_MASTER] = bus_alloc_resource_any(dev, SYS_RES_IOPORT,
201 if (sc->sc_res[ATPIC_MASTER] == NULL)
205 sc->sc_res[ATPIC_SLAVE] = bus_alloc_resource_any(dev, SYS_RES_IOPORT,
207 if (sc->sc_res[ATPIC_SLAVE] == NULL)
231 if (sc->sc_res[ATPIC_SLAVE] != NULL)
233 sc->sc_rid[ATPIC_SLAVE], sc->sc_res[ATPIC_SLAVE]);
234 if (sc->sc_res[ATPIC_MASTER] != NULL)
236 sc->sc_rid[ATPIC_MASTER], sc->sc_res[ATPIC_MASTER]);