Lines Matching defs:zsc
194 struct zsc_softc *zsc = (void *) self;
229 zsc->zsc_bustag = sa->sa_bustag;
230 zsc->zsc_dmatag = sa->sa_dmatag;
231 zsc->zsc_promunit = getpropint(sa->sa_node, "slave", -2);
232 zsc->zsc_node = sa->sa_node;
234 zs_attach(zsc, zsaddr, sa->sa_pri);
240 struct zsc_softc *zsc = (void *) self;
280 zsc->zsc_bustag = fa->fa_bustag;
281 zsc->zsc_dmatag = NULL;
282 zsc->zsc_promunit = getpropint(fa->fa_node, "slave", -2);
283 zsc->zsc_node = fa->fa_node;
285 zs_attach(zsc, zsaddr, fa->fa_intr[0]);
292 zs_attach(struct zsc_softc *zsc, struct zsdevice *zsd, int pri)
308 if (getproplen(zsc->zsc_node, "keyboard") == 0) {
316 cs = &zsc->zsc_cs_store[channel];
317 zsc->zsc_cs[channel] = cs;
327 zsc_args.hwflags = zs_console_flags(zsc->zsc_promunit,
328 zsc->zsc_node,
336 if (getproplen(zsc->zsc_node, channel == 0 ?
379 config_found(&zsc->zsc_dev, (void *)&zsc_args, zs_print))) {
392 if (bus_intr_establish(zsc->zsc_bustag, pri, IPL_SERIAL, 0, zshard,
393 zsc, zsc->zsc_dev.dv_xname) == NULL)
395 if (!(zsc->zsc_softintr = softintr_establish(softpri, zssoft, zsc)))
402 cs = zsc->zsc_cs[0];
429 struct zsc_softc *zsc = (struct zsc_softc *)arg;
432 while (zsc_intr_hard(zsc))
434 if ((zsc->zsc_cs[0] && zsc->zsc_cs[0]->cs_softreq) ||
435 (zsc->zsc_cs[1] && zsc->zsc_cs[1]->cs_softreq))
436 softintr_schedule(zsc->zsc_softintr);
446 struct zsc_softc *zsc = (struct zsc_softc *)arg;
451 (void)zsc_intr_soft(zsc);
454 struct zstty_softc *zst0 = zsc->zsc_cs[0]->cs_private;
455 struct zstty_softc *zst1 = zsc->zsc_cs[1]->cs_private;