summaryrefslogtreecommitdiff
path: root/sys/arch/hp300
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2010-06-28 14:13:37 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2010-06-28 14:13:37 +0000
commitdf4647207f6e0f0893a85469177623af4f68589d (patch)
treec68295fb4d614022365c0395896029d963f4abc3 /sys/arch/hp300
parenta315d252b85e1baec7c359b23ab4dcb169ea2b00 (diff)
Allow tty drivers to request larger buffers at attach time using a
max-baud-rate hint. Adjust TTYHOG (the nearly full logic) to this new situation. The larger buffers are required by the very high speed KDDI devices in Japan (CF com, or USB ucom) so those are the only two drivers which currently ask for a larger buffer size. ok yasuoka miod
Diffstat (limited to 'sys/arch/hp300')
-rw-r--r--sys/arch/hp300/dev/apci.c4
-rw-r--r--sys/arch/hp300/dev/dca.c4
-rw-r--r--sys/arch/hp300/dev/dcm.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/hp300/dev/apci.c b/sys/arch/hp300/dev/apci.c
index f14822f878d..709af09962a 100644
--- a/sys/arch/hp300/dev/apci.c
+++ b/sys/arch/hp300/dev/apci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: apci.c,v 1.38 2010/04/12 12:57:51 tedu Exp $ */
+/* $OpenBSD: apci.c,v 1.39 2010/06/28 14:13:27 deraadt Exp $ */
/* $NetBSD: apci.c,v 1.9 2000/11/02 00:35:05 eeh Exp $ */
/*-
@@ -276,7 +276,7 @@ apciopen(dev, flag, mode, p)
s = spltty();
if (sc->sc_tty == NULL) {
- tp = sc->sc_tty = ttymalloc();
+ tp = sc->sc_tty = ttymalloc(0);
} else
tp = sc->sc_tty;
splx(s);
diff --git a/sys/arch/hp300/dev/dca.c b/sys/arch/hp300/dev/dca.c
index 3a5b18d0959..c59e047f311 100644
--- a/sys/arch/hp300/dev/dca.c
+++ b/sys/arch/hp300/dev/dca.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dca.c,v 1.39 2010/04/12 12:57:51 tedu Exp $ */
+/* $OpenBSD: dca.c,v 1.40 2010/06/28 14:13:27 deraadt Exp $ */
/* $NetBSD: dca.c,v 1.35 1997/05/05 20:58:18 thorpej Exp $ */
/*
@@ -308,7 +308,7 @@ dcaopen(dev, flag, mode, p)
s = spltty();
if (sc->sc_tty == NULL) {
- tp = sc->sc_tty = ttymalloc();
+ tp = sc->sc_tty = ttymalloc(0);
} else
tp = sc->sc_tty;
splx(s);
diff --git a/sys/arch/hp300/dev/dcm.c b/sys/arch/hp300/dev/dcm.c
index a344b8cc287..9691f312a2f 100644
--- a/sys/arch/hp300/dev/dcm.c
+++ b/sys/arch/hp300/dev/dcm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dcm.c,v 1.33 2010/04/12 12:57:51 tedu Exp $ */
+/* $OpenBSD: dcm.c,v 1.34 2010/06/28 14:13:27 deraadt Exp $ */
/* $NetBSD: dcm.c,v 1.41 1997/05/05 20:59:16 thorpej Exp $ */
/*
@@ -453,7 +453,7 @@ dcmopen(dev, flag, mode, p)
s = spltty();
if (sc->sc_tty[port] == NULL) {
- tp = sc->sc_tty[port] = ttymalloc();
+ tp = sc->sc_tty[port] = ttymalloc(0);
} else
tp = sc->sc_tty[port];
splx(s);