Home | History | Annotate | Download | only in dev

Lines Matching defs:xcs

225 	struct xzs_chanstate *xcs;
285 xcs = &zsc->xzsc_xcs_store[channel];
286 cs = &xcs->xzs_cs;
321 xcs->cs_clocks[0].clk = PCLK;
322 xcs->cs_clocks[0].flags = ZSC_RTXBRG | ZSC_RTXDIV;
323 xcs->cs_clocks[1].flags =
325 xcs->cs_clocks[2].flags = ZSC_TRXDIV | ZSC_VARIABLE;
326 xcs->cs_clock_count = 3;
329 /*xcs->cs_clocks[1].clk = mac68k_machine.modem_dcd_clk;*/
330 /*xcs->cs_clocks[2].clk = mac68k_machine.modem_cts_clk;*/
331 xcs->cs_clocks[1].clk = 0;
332 xcs->cs_clocks[2].clk = 0;
335 xcs->cs_clocks[1].flags = ZSC_VARIABLE;
342 /*xcs->cs_clocks[1].clk = mac68k_machine.print_dcd_clk;*/
343 /*xcs->cs_clocks[2].clk = mac68k_machine.print_cts_clk;*/
344 xcs->cs_clocks[1].clk = 0;
345 xcs->cs_clocks[2].clk = 0;
347 if (xcs->cs_clocks[1].clk)
349 if (xcs->cs_clocks[2].clk)
353 xcs->cs_csource = 0;
354 xcs->cs_psource = 0;
355 xcs->cs_cclk_flag = 0; /* Nothing fancy by default */
356 xcs->cs_pclk_flag = 0;
385 xcs->cs_chip = chip;
388 xcs->cs_hwflags = zsc_args.hwflags;
463 struct xzs_chanstate *xcs = (void *)cs;
472 via_set_modem((xcs->cs_pclk_flag & ZSC_EXTERN) ? 1 : 0);
567 struct xzs_chanstate *xcs = (void *) cs;
584 for (i = 0; i < xcs->cs_clock_count; i++) {
585 if (xcs->cs_clocks[i].clk <= 0)
587 if (xcs->cs_clocks[i].flags & ZSC_BRG) {
589 tc1 = BPS_TO_TCONST(xcs->cs_clocks[i].clk >> 4, bps);
591 rate1 = TCONST_TO_BPS(xcs->cs_clocks[i].clk >> 4, tc1);
596 sf = xcs->cs_clocks[i].flags & ~ZSC_DIV;
602 if (xcs->cs_clocks[i].flags & ZSC_DIV) {
608 int b0 = xcs->cs_clocks[i].clk, e0 = abs(b0-bps);
635 sf = xcs->cs_clocks[i].flags & ~ZSC_BRG;
655 cs->cs_brg_clk = xcs->cs_clocks[i].clk >> 4;
663 xcs->cs_psource = src;
664 xcs->cs_pclk_flag = sf;
706 struct xzs_chanstate *xcs = (void*)cs;
723 if (xcs->cs_hwflags & ZS_HWFLAG_NO_DCD) {
728 if ((xcs->cs_hwflags & ZS_HWFLAG_NO_CTS) && (cflag & (CRTSCTS | CDTRCTS)))