summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorChris Kuethe <ckuethe@cvs.openbsd.org>2010-06-28 04:36:32 +0000
committerChris Kuethe <ckuethe@cvs.openbsd.org>2010-06-28 04:36:32 +0000
commit99ff7238b96bed07df689105a0d55c62a10ae1e8 (patch)
tree81c2b3c9b63f60be16ab5373e2f85f2605d625d7 /sys/dev
parentb27faa82e26347c17aff72975081e2d9d2b40f46 (diff)
Use a more moderate fifo trigger level (4) for moderately quick
(sub-38400) port speeds. Inspired by netbsd. ok fgsch krw deraadt miod
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/com.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ic/com.c b/sys/dev/ic/com.c
index 1f5f6f3156a..83bce029147 100644
--- a/sys/dev/ic/com.c
+++ b/sys/dev/ic/com.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: com.c,v 1.139 2010/06/26 23:24:44 guenther Exp $ */
+/* $OpenBSD: com.c,v 1.140 2010/06/28 04:36:31 ckuethe Exp $ */
/* $NetBSD: com.c,v 1.82.4.1 1996/06/02 09:08:00 mrg Exp $ */
/*
@@ -356,6 +356,8 @@ comopen(dev_t dev, int flag, int mode, struct proc *p)
if (tp->t_ispeed <= 1200)
fifo |= FIFO_TRIGGER_1;
+ else if (tp->t_ispeed <= 38400)
+ fifo |= FIFO_TRIGGER_4;
else
fifo |= FIFO_TRIGGER_8;
if (sc->sc_uarttype == COM_UART_TI16750) {