Lines Matching defs:zsc
151 zs_attach(struct zsc_softc *zsc, struct zsdevice *zsd, int pri)
179 cs = &zsc->zsc_cs_store[channel];
180 zsc->zsc_cs[channel] = cs;
191 zsc_args.hwflags = zs_console_flags(zsc->zsc_promunit,
192 zsc->zsc_node,
237 if ((child = config_found(zsc->zsc_dev, (void *)&zsc_args,
272 switch(zs_peripheral_type(zsc->zsc_promunit,
273 zsc->zsc_node,
300 bus_intr_establish(zsc->zsc_bustag, pri, IPL_SERIAL, 0, zshard, zsc);
301 if ((zsc->zsc_softintr = softint_establish(SOFTINT_SERIAL,
302 zssoft, zsc)) == NULL)
305 evcnt_attach_dynamic(&zsc->zsc_intrcnt, EVCNT_TYPE_INTR, NULL,
306 device_xname(zsc->zsc_dev), "intr");
313 cs = zsc->zsc_cs[0];
340 struct zsc_softc *zsc = arg;
345 while ((rr3 = zsc_intr_hard(zsc))) {
348 zsc->zsc_intrcnt.ev_count++;
350 if (((zsc->zsc_cs[0] && zsc->zsc_cs[0]->cs_softreq) ||
351 (zsc->zsc_cs[1] && zsc->zsc_cs[1]->cs_softreq)) &&
352 zsc->zsc_softintr) {
353 softint_schedule(zsc->zsc_softintr);
361 struct zsc_softc *zsc;
367 zsc = device_lookup_private(&zs_cd, unit);
368 if (zsc == NULL)
370 rval = (zshard((void *)zsc) || rval);
379 struct zsc_softc *zsc = arg;
384 (void)zsc_intr_soft(zsc);