freebsd-dev/sys/i386
Peter Wemm 9545a0eaa4 Hack workaround XFree86 switching failure when used with /dev/sysmouse
and xdm, possibly in general.

What was happening was that the server was doing a tcsetattr(.. TCSADRAIN)
on the mouse fd after a write.  Since /dev/sysmouse had a null t_oproc,
the drain failed with EIO.  Somehow this spammed XFree86 (!@&^#%*& binary
release!!), and the driver was left in a bogus state (ie: switch_in_progress
permanently TRUE).

The simplest way out was to implement a dummy scmousestart() routine to
accept any characters from the tty system and toss them into the void.

It would probably be more correct to intercept scwrite()'s to the mouse
device, but that's executed for every single write to the screen.
Supplying a start routine to eat the characters is only executed for the
mouse port during startup/shutdown, so it should be faster.
1996-09-10 19:14:49 +00:00
..
apm APM_DSVALUE_BUS is no longer with the addition of the correct fix to 1996-09-07 17:41:22 +00:00
bios APM_DSVALUE_BUS is no longer with the addition of the correct fix to 1996-09-07 17:41:22 +00:00
boot Remove boot2 when the size test fails so that rebuilding without fixing 1996-09-07 21:16:44 +00:00
conf Add option SC_KBD_PROBE_WORKS to syscons driver. 1996-09-06 23:35:54 +00:00
eisa Various cleanups for remanents of devconf. 1996-09-08 10:44:18 +00:00
i386 Updated #includes to 4.4Lite style. 1996-09-10 08:32:01 +00:00
ibcs2 Changed type of ni_dirp in struct namei' from caddr_t to const char *' 1996-09-03 23:17:15 +00:00
include Updated #includes to 4.4Lite style. 1996-09-10 08:32:01 +00:00
isa Hack workaround XFree86 switching failure when used with /dev/sysmouse 1996-09-10 19:14:49 +00:00
linux Changed type of ni_dirp in struct namei' from caddr_t to const char *' 1996-09-03 23:17:15 +00:00
pci Removed unused #includes of <i386/isa/icu.h> and <i386/isa/icu.h>. icu.h 1996-06-18 01:22:40 +00:00
scsi oops somehow this dissppeared along the way.. 1996-08-19 02:42:40 +00:00
Makefile Removed all patch kit headers, sccsid and rcsid strings, put $Id$ in, some 1993-10-16 19:17:18 +00:00