summaryrefslogtreecommitdiff
path: root/sys/dev/ic/cy.c
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/dev/ic/cy.c
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/dev/ic/cy.c')
-rw-r--r--sys/dev/ic/cy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/cy.c b/sys/dev/ic/cy.c
index 5f6fddbba4f..3280a72a846 100644
--- a/sys/dev/ic/cy.c
+++ b/sys/dev/ic/cy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cy.c,v 1.30 2010/06/26 23:24:44 guenther Exp $ */
+/* $OpenBSD: cy.c,v 1.31 2010/06/28 14:13:32 deraadt Exp $ */
/*
* Copyright (c) 1996 Timo Rossi.
* All rights reserved.
@@ -299,7 +299,7 @@ cyopen(dev, flag, mode, p)
s = spltty();
if (cy->cy_tty == NULL) {
- cy->cy_tty = ttymalloc();
+ cy->cy_tty = ttymalloc(0);
}
splx(s);