Lines Matching refs:cs
71 void zskgdb(struct zs_chanstate *cs);
100 zs_setparam(struct zs_chanstate *cs, int iena, int rate)
104 memcpy(cs->cs_preg, zs_kgdb_regs, 16);
107 cs->cs_preg[1] = ZSWR1_RIE | ZSWR1_SIE;
111 tconst = BPS_TO_TCONST(cs->cs_brg_clk, rate);
113 cs->cs_preg[5] |= ZSWR5_DTR | ZSWR5_RTS;
114 cs->cs_preg[12] = tconst;
115 cs->cs_preg[13] = tconst >> 8;
118 zs_loadchannelregs(cs);
156 zs_check_kgdb(struct zs_chanstate *cs, int dev)
165 cs->cs_private = NULL;
166 cs->cs_ops = &zsops_kgdb;
169 zs_setparam(cs, 1, kgdb_rate);
179 zskgdb(struct zs_chanstate *cs)
208 zs_kgdb_rxint(struct zs_chanstate *cs)
216 rr1 = zs_read_reg(cs, 1);
217 c = zs_read_data(cs);
221 zs_write_csr(cs, ZSWR0_RESET_ERRORS);
225 zskgdb(cs);
232 zs_kgdb_txint(register struct zs_chanstate *cs)
236 rr0 = zs_read_csr(cs);
237 zs_write_csr(cs, ZSWR0_RESET_TXINT);
241 zs_kgdb_stint(register struct zs_chanstate *cs, int force)
245 rr0 = zs_read_csr(cs);
246 zs_write_csr(cs, ZSWR0_RESET_STATUS);
253 zskgdb(cs);
258 zs_kgdb_softint(struct zs_chanstate *cs)