Lines Matching defs:sc
101 struct apio_softc *sc = (void *)self;
106 sc->sc_bt = sa->sa_bustag;
126 0, 0, &sc->sc_csr_h)) {
133 0, 0, &sc->sc_clk_h)) {
140 0, 0, &sc->sc_lpt_h)) {
148 aaa.aaa_iot = sc->sc_bt;
149 aaa.aaa_ioh = sc->sc_lpt_h;
150 aaa.aaa_clkh = sc->sc_clk_h;
153 sc->sc_port = config_found(self, &aaa, apio_print);
184 struct apio_softc *sc = (struct apio_softc *)dv;
187 csr = bus_space_read_1(sc->sc_bt, sc->sc_csr_h, 0);
190 bus_space_write_1(sc->sc_bt, sc->sc_csr_h, 0, csr);
202 struct lpt_apio_softc *sc = (struct lpt_apio_softc *)self;
205 sc->sc_lpt.sc_state = 0;
206 sc->sc_lpt.sc_iot = aaa->aaa_iot;
207 sc->sc_lpt.sc_ioh = aaa->aaa_ioh;
208 sc->sc_clk_h = aaa->aaa_clkh;
209 sc->sc_ih = bus_intr_establish(aaa->aaa_iot, aaa->aaa_pri,
210 IPL_TTY, 0, lpt_apio_intr, sc, self->dv_xname);
211 if (sc->sc_ih == NULL) {
217 lpt_attach_common(&sc->sc_lpt);
223 struct lpt_apio_softc *sc = vsc;
226 r = lptintr(&sc->sc_lpt);
227 bus_space_read_1(sc->sc_lpt.sc_iot, sc->sc_clk_h, 0);