diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-06-28 14:13:37 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-06-28 14:13:37 +0000 |
commit | df4647207f6e0f0893a85469177623af4f68589d (patch) | |
tree | c68295fb4d614022365c0395896029d963f4abc3 /sys/dev/sbus | |
parent | a315d252b85e1baec7c359b23ab4dcb169ea2b00 (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/sbus')
-rw-r--r-- | sys/dev/sbus/magma.c | 4 | ||||
-rw-r--r-- | sys/dev/sbus/spif.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/sbus/magma.c b/sys/dev/sbus/magma.c index 87d831c5f6d..54a3be568e1 100644 --- a/sys/dev/sbus/magma.c +++ b/sys/dev/sbus/magma.c @@ -1,4 +1,4 @@ -/* $OpenBSD: magma.c,v 1.21 2010/04/12 12:57:52 tedu Exp $ */ +/* $OpenBSD: magma.c,v 1.22 2010/06/28 14:13:34 deraadt Exp $ */ /*- * Copyright (c) 1998 Iain Hibbert @@ -805,7 +805,7 @@ mtty_attach(struct device *parent, struct device *dev, void *args) } mp->mp_channel = chan; - tp = ttymalloc(); + tp = ttymalloc(0); tp->t_oproc = mtty_start; tp->t_param = mtty_param; diff --git a/sys/dev/sbus/spif.c b/sys/dev/sbus/spif.c index db6c09075a5..75d88e5d9e1 100644 --- a/sys/dev/sbus/spif.c +++ b/sys/dev/sbus/spif.c @@ -1,4 +1,4 @@ -/* $OpenBSD: spif.c,v 1.17 2010/04/12 12:57:52 tedu Exp $ */ +/* $OpenBSD: spif.c,v 1.18 2010/06/28 14:13:34 deraadt Exp $ */ /* * Copyright (c) 1999-2002 Jason L. Wright (jason@thought.net) @@ -304,7 +304,7 @@ sttyattach(parent, dev, aux) DTR_WRITE(sc, port, 0); - tp = ttymalloc(); + tp = ttymalloc(0); tp->t_oproc = stty_start; tp->t_param = stty_param; |