From owner-cvs-sys Sat Jun 24 21:51:06 1995 Return-Path: cvs-sys-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id VAA08739 for cvs-sys-outgoing; Sat, 24 Jun 1995 21:51:06 -0700 Received: (from bde@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id VAA08729 ; Sat, 24 Jun 1995 21:51:02 -0700 Date: Sat, 24 Jun 1995 21:51:02 -0700 From: Bruce Evans Message-Id: <199506250451.VAA08729@freefall.cdrom.com> To: CVS-commiters, cvs-sys Subject: cvs commit: src/sys/i386/isa sio.c Sender: cvs-sys-owner@freebsd.org Precedence: bulk bde 95/06/24 21:51:02 Modified: sys/i386/isa sio.c Log: Reduce timeout frequency from `hz' to 0 if no ports are open or to 1 if no ports are active, provided there are no polled ports and no `LOSESOUTINTS' ports. Do a little more in the interrupt handler instead. This is a little less efficient if there are are many active ports but a little more efficient otherwise. Polled ports are ones with no irq specified (as before). `LOSESOUTINTS' ports are ones with 0x08 set in their config flags. Unless this flag is set, it will now take up to one second to recover from lost output interrupts, if any. Some 8250s and 16450s lose output interrupts. Improve output buffering: copy the clist buffer to 2 linear buffers if necessary and possible instead of to 1. Handle an arbitrary queue of buffers in the interrupt handler. Check for waking up sleepers after copying characters out of the clist buffer instead of before. Delay translation of TIOCM_DTR to MCR_DTR etc. so that the top level routines are more machine independent. Fix bogus device register in unused code.