diff options
author | bde <bde@FreeBSD.org> | 1996-11-30 14:51:04 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1996-11-30 14:51:04 +0000 |
commit | 7b61f45bf306d3176a907c01d1a0f419916469ac (patch) | |
tree | 37c5e8a156b239b188eaadaff800441f3a49596e /sys/isa | |
parent | 3d7b534ed31f0c19f21838bccc93dc5a47e0e811 (diff) | |
download | FreeBSD-src-7b61f45bf306d3176a907c01d1a0f419916469ac.zip FreeBSD-src-7b61f45bf306d3176a907c01d1a0f419916469ac.tar.gz |
Cleaned up CONSPEED changes. `comdefaultrate' gives the default
speed for the "com" console, not for general purpose "com" ports,
so there was no need to split it into comdefaultrate and condefaultrate.
Diffstat (limited to 'sys/isa')
-rw-r--r-- | sys/isa/sio.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/sys/isa/sio.c b/sys/isa/sio.c index 697deb8..72a4424 100644 --- a/sys/isa/sio.c +++ b/sys/isa/sio.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * from: @(#)com.c 7.5 (Berkeley) 5/16/91 - * $Id: sio.c,v 1.148 1996/11/02 02:26:01 pst Exp $ + * $Id: sio.c,v 1.149 1996/11/13 18:31:51 bde Exp $ */ #include "opt_comconsole.h" @@ -328,8 +328,7 @@ static struct cdevsw sio_cdevsw = { }; static int comconsole = -1; -static speed_t comdefaultrate = TTYDEF_SPEED; -static speed_t condefaultrate = CONSPEED; +static speed_t comdefaultrate = CONSPEED; static u_int com_events; /* input chars + weighted output completions */ static int sio_timeout; static int sio_timeouts_until_log; @@ -808,10 +807,9 @@ sioattach(isdp) com->it_in.c_cflag = TTYDEF_CFLAG | CLOCAL; com->it_in.c_lflag = TTYDEF_LFLAG; com->lt_out.c_cflag = com->lt_in.c_cflag = CLOCAL; - com->it_in.c_ispeed = com->it_in.c_ospeed = condefaultrate; - } else com->it_in.c_ispeed = com->it_in.c_ospeed = comdefaultrate; - + } else + com->it_in.c_ispeed = com->it_in.c_ospeed = TTYDEF_SPEED; termioschars(&com->it_in); com->it_out = com->it_in; @@ -2348,7 +2346,7 @@ siocnopen(sp) /* * Save all the device control registers except the fifo register - * and set our default ones (cs8 -parenb speed=condefaultrate). + * and set our default ones (cs8 -parenb speed=comdefaultrate). * We can't save the fifo register since it is read-only. */ iobase = siocniobase; @@ -2365,7 +2363,7 @@ siocnopen(sp) * data input register. This also reduces the effects of the * UMC8669F bug. */ - divisor = ttspeedtab(condefaultrate, comspeedtab); + divisor = ttspeedtab(comdefaultrate, comspeedtab); dlbl = divisor & 0xFF; if (sp->dlbl != dlbl) outb(iobase + com_dlbl, dlbl); |