Home | History | Annotate | Download | only in dev

Lines Matching refs:zsc

217 	struct zsc_softc *zsc = device_private(self);
222 zsc->zsc_dev = self;
260 zsc->zsc_bustag = sa->sa_bustag;
261 zsc->zsc_dmatag = sa->sa_dmatag;
262 zsc->zsc_promunit = prom_getpropint(sa->sa_node, "slave", -2);
263 zsc->zsc_node = sa->sa_node;
265 zs_attach(zsc, zsaddr[zs_unit], sa->sa_pri);
271 struct zsc_softc *zsc = device_private(self);
276 zsc->zsc_dev = self;
320 zsc->zsc_bustag = fa->fa_bustag;
321 zsc->zsc_dmatag = NULL;
322 zsc->zsc_promunit = prom_getpropint(fa->fa_node, "slave", -2);
323 zsc->zsc_node = fa->fa_node;
325 zs_attach(zsc, zsaddr[zs_unit], fa->fa_intr[0]);
335 zs_attach(struct zsc_softc *zsc, struct zsdevice *zsd, int pri)
354 cs = &zsc->zsc_cs_store[channel];
355 zsc->zsc_cs[channel] = cs;
366 zsc_args.hwflags = zs_console_flags(zsc->zsc_promunit,
367 zsc->zsc_node,
412 child = config_found(zsc->zsc_dev, (void *)&zsc_args,
430 && (prom_getproplen(zsc->zsc_node, "keyboard") == 0)) {
462 bus_intr_establish(zsc->zsc_bustag, pri, IPL_SERIAL, zshard, zsc);
463 if (!(zsc->zsc_softintr = softint_establish(SOFTINT_SERIAL, zssoft, zsc)))
466 evcnt_attach_dynamic(&zsc->zsc_intrcnt, EVCNT_TYPE_INTR, NULL,
467 device_xname(zsc->zsc_dev), "intr");
474 cs = zsc->zsc_cs[0];
500 struct zsc_softc *zsc = arg;
504 while ((rr3 = zsc_intr_hard(zsc))) {
507 zsc->zsc_intrcnt.ev_count++;
509 if (((zsc->zsc_cs[0] && zsc->zsc_cs[0]->cs_softreq) ||
510 (zsc->zsc_cs[1] && zsc->zsc_cs[1]->cs_softreq)) &&
511 zsc->zsc_softintr) {
512 softint_schedule(zsc->zsc_softintr);
520 struct zsc_softc *zsc;
526 zsc = device_lookup_private(&zs_cd, unit);
527 if (zsc == NULL)
529 rval = (zshard((void *)zsc) || rval);
538 struct zsc_softc *zsc = arg;
544 (void)zsc_intr_soft(zsc);