Rename cs_pclk_div16 to cs_brg_clk to clarify the fact that the

Baud Rate Generator (BRG) clock is not necessarily PCLK/16.
This commit is contained in:
gwr 1996-05-17 19:32:06 +00:00
parent eabb97da52
commit 50ecbc1c84
4 changed files with 8 additions and 8 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: zs.c,v 1.36 1996/04/04 06:26:15 cgd Exp $ */
/* $NetBSD: zs.c,v 1.37 1996/05/17 19:35:14 gwr Exp $ */
/*
* Copyright (c) 1995 Gordon W. Ross
@ -273,7 +273,7 @@ zsc_attach(parent, self, aux)
cs->cs_ops = &zsops_null;
/* Define BAUD rate clock for the MI code. */
cs->cs_pclk_div16 = PCLK / 16;
cs->cs_brg_clk = PCLK / 16;
/* XXX: get defspeed from EEPROM instead? */
cs->cs_defspeed = zs_defspeed[zsc_unit][channel];

View File

@ -118,7 +118,7 @@ zs_setparam(cs, iena, rate)
}
/* Initialize the speed, etc. */
tconst = BPS_TO_TCONST(cs->cs_pclk_div16, rate);
tconst = BPS_TO_TCONST(cs->cs_brg_clk, rate);
cs->cs_preg[5] |= ZSWR5_DTR | ZSWR5_RTS;
cs->cs_preg[12] = tconst;
cs->cs_preg[13] = tconst >> 8;
@ -153,7 +153,7 @@ zs_kgdb_init()
cs.cs_reg_csr = &zc->zc_csr;
cs.cs_reg_data = &zc->zc_data;
cs.cs_channel = channel;
cs.cs_pclk_div16 = PCLK / 16;
cs.cs_brg_clk = PCLK / 16;
/* Now set parameters. (interrupts disabled) */
zs_setparam(&cs, 0, kgdb_rate);

View File

@ -1,4 +1,4 @@
/* $NetBSD: kbd.c,v 1.7 1996/04/10 21:44:58 gwr Exp $ */
/* $NetBSD: kbd.c,v 1.8 1996/05/17 19:32:06 gwr Exp $ */
/*
* Copyright (c) 1992, 1993
@ -246,7 +246,7 @@ kbd_attach(parent, self, aux)
printf("\n");
/* Initialize the speed, etc. */
tconst = BPS_TO_TCONST(cs->cs_pclk_div16, KBD_BPS);
tconst = BPS_TO_TCONST(cs->cs_brg_clk, KBD_BPS);
s = splzs();
if (k->k_isconsole == 0) {
/* Not the console; may need reset. */

View File

@ -1,4 +1,4 @@
/* $NetBSD: ms.c,v 1.5 1996/04/10 21:45:01 gwr Exp $ */
/* $NetBSD: ms.c,v 1.6 1996/05/17 19:32:09 gwr Exp $ */
/*
* Copyright (c) 1992, 1993
@ -194,7 +194,7 @@ ms_attach(parent, self, aux)
printf("\n");
/* Initialize the speed, etc. */
tconst = BPS_TO_TCONST(cs->cs_pclk_div16, MS_BPS);
tconst = BPS_TO_TCONST(cs->cs_brg_clk, MS_BPS);
s = splzs();
/* May need reset... */
reset = (channel == 0) ?