diff options
author | Jason Downs <downsj@cvs.openbsd.org> | 1998-10-07 02:10:53 +0000 |
---|---|---|
committer | Jason Downs <downsj@cvs.openbsd.org> | 1998-10-07 02:10:53 +0000 |
commit | 76b8e07435bcf98711f92e10584a93f164692070 (patch) | |
tree | cfc25bd9055e7c88689ba70e0d7aba07d957f612 /sys/arch/i386/isa/pccom.c | |
parent | 7edec5e4ae5b2313dc35b6826d3f5cf7062174a7 (diff) |
Fix trigger level initializations; fixes mouse for XFree86.
Diffstat (limited to 'sys/arch/i386/isa/pccom.c')
-rw-r--r-- | sys/arch/i386/isa/pccom.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/arch/i386/isa/pccom.c b/sys/arch/i386/isa/pccom.c index 3ed22accfed..caf71b57680 100644 --- a/sys/arch/i386/isa/pccom.c +++ b/sys/arch/i386/isa/pccom.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pccom.c,v 1.25 1998/06/28 01:47:23 angelos Exp $ */ +/* $OpenBSD: pccom.c,v 1.26 1998/10/07 02:10:52 downsj Exp $ */ /* $NetBSD: com.c,v 1.82.4.1 1996/06/02 09:08:00 mrg Exp $ */ /* @@ -1009,14 +1009,14 @@ comopen(dev, flag, mode, p) switch (sc->sc_uarttype) { case COM_UART_ST16650V2: if (tp->t_ispeed <= 1200) - fifo |= FIFO_RCV_TRIGGER_8|FIFO_XMT_TRIGGER_8; + fifo |= FIFO_RCV_TRIGGER_8|FIFO_XMT_TRIGGER_8; /* XXX */ else fifo |= FIFO_RCV_TRIGGER_28|FIFO_XMT_TRIGGER_30; break; case COM_UART_XR16850: pccom_xr16850_fifo_init(iot, ioh); if (tp->t_ispeed <= 1200) - fifo |= FIFO_RCV3_TRIGGER_8|FIFO_XMT3_TRIGGER_8; + fifo |= FIFO_RCV3_TRIGGER_8|FIFO_XMT3_TRIGGER_8; /* XXX */ else fifo |= FIFO_RCV3_TRIGGER_60|FIFO_XMT3_TRIGGER_56; break; @@ -1493,14 +1493,14 @@ comparam(tp, t) switch (sc->sc_uarttype) { case COM_UART_ST16650V2: - if (tp->t_ispeed <= 1200) - fifo |= FIFO_RCV_TRIGGER_8|FIFO_XMT_TRIGGER_8; + if (t->c_ispeed <= 1200) + fifo |= FIFO_RCV_TRIGGER_8|FIFO_XMT_TRIGGER_8; /* XXX */ else fifo |= FIFO_RCV_TRIGGER_28|FIFO_XMT_TRIGGER_30; break; case COM_UART_XR16850: - if (tp->t_ispeed <= 1200) - fifo |= FIFO_RCV3_TRIGGER_8|FIFO_XMT3_TRIGGER_8; + if (t->c_ispeed <= 1200) + fifo |= FIFO_RCV3_TRIGGER_8|FIFO_XMT3_TRIGGER_8; /* XXX */ else fifo |= FIFO_RCV3_TRIGGER_60|FIFO_XMT3_TRIGGER_56; break; @@ -1512,7 +1512,7 @@ comparam(tp, t) lcr2 | LCR_DLAB); #endif default: - if (tp->t_ispeed <= 1200) + if (t->c_ispeed <= 1200) fifo |= FIFO_TRIGGER_1; else fifo |= FIFO_TRIGGER_8; |