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/arch/mvme68k | |
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/arch/mvme68k')
-rw-r--r-- | sys/arch/mvme68k/dev/cl.c | 4 | ||||
-rw-r--r-- | sys/arch/mvme68k/dev/dart.c | 4 | ||||
-rw-r--r-- | sys/arch/mvme68k/dev/wl.c | 4 | ||||
-rw-r--r-- | sys/arch/mvme68k/dev/zs.c | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/sys/arch/mvme68k/dev/cl.c b/sys/arch/mvme68k/dev/cl.c index a0450e172de..75cabd57771 100644 --- a/sys/arch/mvme68k/dev/cl.c +++ b/sys/arch/mvme68k/dev/cl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cl.c,v 1.51 2010/04/12 12:57:52 tedu Exp $ */ +/* $OpenBSD: cl.c,v 1.52 2010/06/28 14:13:29 deraadt Exp $ */ /* * Copyright (c) 1995 Dale Rahn. All rights reserved. @@ -554,7 +554,7 @@ clopen(dev, flag, mode, p) if (cl->tty) { tp = cl->tty; } else { - tp = cl->tty = ttymalloc(); + tp = cl->tty = ttymalloc(0); } tp->t_oproc = clstart; tp->t_param = clparam; diff --git a/sys/arch/mvme68k/dev/dart.c b/sys/arch/mvme68k/dev/dart.c index 425a39d2586..9c2abb5a137 100644 --- a/sys/arch/mvme68k/dev/dart.c +++ b/sys/arch/mvme68k/dev/dart.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dart.c,v 1.6 2010/04/12 12:57:52 tedu Exp $ */ +/* $OpenBSD: dart.c,v 1.7 2010/06/28 14:13:29 deraadt Exp $ */ /* * Mach Operating System @@ -620,7 +620,7 @@ dartopen(dev_t dev, int flag, int mode, struct proc *p) if (dart->tty != NULL) tp = dart->tty; else - tp = dart->tty = ttymalloc(); + tp = dart->tty = ttymalloc(0); tp->t_oproc = dartstart; tp->t_param = dartparam; diff --git a/sys/arch/mvme68k/dev/wl.c b/sys/arch/mvme68k/dev/wl.c index 4f5e8303e60..d335f3bc557 100644 --- a/sys/arch/mvme68k/dev/wl.c +++ b/sys/arch/mvme68k/dev/wl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wl.c,v 1.22 2010/04/12 12:57:52 tedu Exp $ */ +/* $OpenBSD: wl.c,v 1.23 2010/06/28 14:13:29 deraadt Exp $ */ /* * Copyright (c) 1995 Dale Rahn. All rights reserved. @@ -518,7 +518,7 @@ wlopen(dev, flag, mode, p) if (cl->tty) { tp = cl->tty; } else { - tp = cl->tty = ttymalloc(); + tp = cl->tty = ttymalloc(0); } tp->t_oproc = clstart; tp->t_param = clparam; diff --git a/sys/arch/mvme68k/dev/zs.c b/sys/arch/mvme68k/dev/zs.c index 6896a0462b4..801dbe43a76 100644 --- a/sys/arch/mvme68k/dev/zs.c +++ b/sys/arch/mvme68k/dev/zs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: zs.c,v 1.32 2010/06/26 23:24:43 guenther Exp $ */ +/* $OpenBSD: zs.c,v 1.33 2010/06/28 14:13:29 deraadt Exp $ */ /* * Copyright (c) 2000 Steve Murphree, Jr. @@ -351,7 +351,7 @@ zsopen(dev, flag, mode, p) zp = &sc->sc_zs[zsside(dev)]; if (zp->tty == NULL) { - zp->tty = ttymalloc(); + zp->tty = ttymalloc(0); zs_ttydef(zp); if (minor(dev) < NZSLINE) zs_tty[minor(dev)] = zp->tty; |