freebsd-dev/sys/dev
Bruce Evans f3b37f91c1 Improve input flow control.
Use input buffer watermarks of TTYHOG-512 (high) and (high)*7/8
(low) instead of TTYHOG/2 (high) and TTYHOG/5 (low) to agree with
some drivers.  512 is magic and some things depended on TTYHOG/2
>= TTYHOG-512 to work; now they depend on the 512 magic not changing
and TTYHOG-512 being significantly larger than 0.  This should be
handled in ttsetwater().

Separate the decision about whether to do input flow control from
doing it.  ttyblock() now just starts input flow control (hardware
and/or software) and there is a new function ttyunblock() to stop
it.  The decisions are the same except for the watermark changes
and allowing for input expansion for PARMRK.

When flushing input, try harder at first to send a start character
if required, but give up if the first attempt fails.

cy.c, rc.c, sio.c:
Simplify: let ttyinput() handle input flow control if it is not
being bypassed.  Use ttyblock() to start flow control otherwise.

rc.c:
Use same input flow control test as elsewhere: test in a more
efficient order and start flow control at >= highwater instead of
at > highwater.
1995-07-31 18:29:51 +00:00
..
aic7xxx Pause the sequencer when message only requests complete. This allows the 1995-07-31 08:21:59 +00:00
cy Improve input flow control. 1995-07-31 18:29:51 +00:00
de Fixed bug that was fixed in 1.28.2.1/1.29 a little differently; the 1995-06-28 05:46:19 +00:00
ed Fixed bug where a bogus packet length could cause a panic if the length 1995-07-28 12:15:16 +00:00
eisa Remove trailing whitespace. 1995-05-30 08:16:23 +00:00
ep Protected entire epioctl routine with splimp(). In this case, it is better 1995-07-05 07:21:34 +00:00
fdc Merge RELENG_2_0_5 into HEAD 1995-06-11 19:33:05 +00:00
fe Remove trailing whitespace. 1995-05-30 08:16:23 +00:00
ic Rewrite: 1995-07-05 12:15:52 +00:00
ie Remove trailing whitespace. 1995-05-30 08:16:23 +00:00
joy Remove trailing whitespace. 1995-05-30 08:16:23 +00:00
kbd Change fkey 63 from ^[[K to ^[[~. 1995-03-28 21:30:13 +00:00
lnc Remove trailing whitespace. 1995-05-30 08:16:23 +00:00
mcd Remove trailing whitespace. 1995-05-30 08:16:23 +00:00
mse Don't include <sys/tty.h> in drivers that aren't tty drivers or in general 1995-07-16 10:13:08 +00:00
pci Initialize "name" to quiet compiler. 1995-07-29 18:21:48 +00:00
ppbus Remove trailing whitespace. 1995-05-30 08:16:23 +00:00
rc Improve input flow control. 1995-07-31 18:29:51 +00:00
scd Remove trailing whitespace. 1995-05-30 08:16:23 +00:00
sio Improve input flow control. 1995-07-31 18:29:51 +00:00
snp Remove trailing whitespace. 1995-05-30 08:16:23 +00:00
speaker Remove trailing whitespace. 1995-05-30 08:16:23 +00:00
syscons Move the inline code for waking up writers to a new function 1995-07-22 01:30:45 +00:00
vn Remove trailing whitespace. 1995-05-30 08:16:23 +00:00