Lines Matching defs:sc
104 struct uha_softc *sc = (void *)self;
121 sc->sc_iot = iot;
122 sc->sc_ioh = ioh;
123 if (!u24_find(iot, ioh, sc))
126 if (eisa_intr_map(ec, sc->sc_irq, &ih)) {
128 sc->sc_dev.dv_xname, sc->sc_irq);
132 sc->sc_ih = eisa_intr_establish(ec, ih, IST_LEVEL, IPL_BIO,
133 u24_intr, sc, sc->sc_dev.dv_xname);
134 if (sc->sc_ih == NULL) {
136 sc->sc_dev.dv_xname);
142 printf("%s: interrupting at %s\n", sc->sc_dev.dv_xname, intrstr);
145 sc->start_mbox = u24_start_mbox;
146 sc->poll = u24_poll;
147 sc->init = u24_init;
149 uha_attach(sc);
153 u24_find(bus_space_tag_t iot, bus_space_handle_t ioh, struct uha_softc *sc)
200 if (sc != NULL) {
201 sc->sc_irq = irq;
202 sc->sc_drq = drq;
203 sc->sc_scsi_dev = config2 & U24_HOSTID_MASK;
210 u24_start_mbox(struct uha_softc *sc, struct uha_mscp *mscp)
212 bus_space_tag_t iot = sc->sc_iot;
213 bus_space_handle_t ioh = sc->sc_ioh;
223 sc->sc_dev.dv_xname);
237 u24_poll(struct uha_softc *sc, struct scsi_xfer *xs, int count)
239 bus_space_tag_t iot = sc->sc_iot;
240 bus_space_handle_t ioh = sc->sc_ioh;
250 u24_intr(sc);
264 struct uha_softc *sc = arg;
265 bus_space_tag_t iot = sc->sc_iot;
266 bus_space_handle_t ioh = sc->sc_ioh;
272 printf("%s: uhaintr ", sc->sc_dev.dv_xname);
295 mscp = uha_mscp_phys_kv(sc, mboxval);
298 sc->sc_dev.dv_xname);
302 uha_done(sc, mscp);
310 u24_init(struct uha_softc *sc)
312 bus_space_tag_t iot = sc->sc_iot;
313 bus_space_handle_t ioh = sc->sc_ioh;