freebsd-skq/sys/sys
sos 0a8ebf33fc Alot of fixes from kazu:
1. All the suggestions earlier made by Bruce: renaming some symbols,
stricter error checking, removing redundant code, etc.

2. The `psm' driver preserves the default counter resolution and
report rate, whatever they are after reset. (Based on reports and
suggestion from Nate and Rob Bolin).

3. The `psm' driver now does not check the so-called sync. bit in the
first byte of the data packet by default, so that the tapping feature
of ALPUS GlidePoint works (based on reports from Louis Mamakos). I
tested the code with ALPUS Desktop GlidePoint (M/N GP101) and found
no problem; tapping worked. It appears ALPUS produces several models
of GlidePoint. I hope the other models are OK too.

The check code can still be activated by defining the PSM_CHECKSYNC
option in the config file. (The bit checking slightly reduces, if not
completely eliminates, weird mouse behavior cased by unsynchronized
mouse data packets. It also helps us to detect if the mouse interrupt
can ever be lost. But, well, if there are devices which cannot be
supported this way...)

4. The `psm' driver does not include the protocol emulation code by
default. The code can still be compiled in if the PSM_EMULATION option
is specified in the config file. Louis Mamakos suggests the emulation
code is putting too much in the kernel, and `moused' works well.
I will think about this later and decide if the entire emulation
code should be removed.

5. And, of course, the fix in `scprobe()' from Bruce to cure the
UserConfig problem. My code in `kbdio.c' is slightly different from
his patch, but has the same effect. There still is a possibility that
`scprobe()' gets confused, if, for whatever reasons, the user holds
down a key for very long time during the boot process. But we cannot
cope with everything, can we?

Submitted by:	Kazutaka YOKOTA (yokota@zodiac.mech.utsunomiya-u.ac.jp)
1996-12-01 19:05:50 +00:00
..
_sigset.h Add a SV_NODEFER and SV_RESETHAND #define, after Bruce pointed out that 1996-03-30 15:10:18 +00:00
acct.h Import 4.4BSD-Lite2 onto the vendor branch, note that in the kernel, all 1996-03-11 19:39:40 +00:00
bio.h Implement a new totally dynamic (up to MAXPHYS) buffer kva allocation 1996-11-30 22:41:49 +00:00
bitstring.h
buf.h Implement a new totally dynamic (up to MAXPHYS) buffer kva allocation 1996-11-30 22:41:49 +00:00
callout.h
ccdvar.h Add mirror flag. 1996-01-30 22:33:31 +00:00
cdefs.h Add __unused to the list of __dead, __dead2, __pure, __pure2 etc. 1996-08-18 16:14:03 +00:00
cdio.h Cleaned up all headers that include <sys/ioctl.h> or <sys/ioccom.h>: 1996-09-21 14:59:43 +00:00
chio.h Cleaned up all headers that include <sys/ioctl.h> or <sys/ioccom.h>: 1996-09-21 14:59:43 +00:00
clist.h Got rid of unused nclist declaration. 1995-01-07 06:08:15 +00:00
conf.h Make a "DWIM" function for adding [bc]devsw entries for bdev drivers. 1996-07-23 21:52:43 +00:00
cons.h Move sysctl machdep.consdev to cons.c 1995-12-09 20:39:47 +00:00
dataacq.h Cleaned up all headers that include <sys/ioctl.h> or <sys/ioccom.h>: 1996-09-21 14:59:43 +00:00
devfsext.h Removed prototype for devfs_add_devsw() as it no longer exists 1996-04-03 03:03:55 +00:00
device.h Completed function declarations and/or added prototypes. 1995-11-21 12:55:26 +00:00
dir.h
dirent.h Import 4.4BSD-Lite2 onto the vendor branch, note that in the kernel, all 1996-03-11 19:39:40 +00:00
disk.h disksort() is gone, all drivers now use tqdisksort(). 1996-05-03 15:05:17 +00:00
disklabel.h Cleaned up all headers that include <sys/ioctl.h> or <sys/ioccom.h>: 1996-09-21 14:59:43 +00:00
diskmbr.h Cleaned up all headers that include <sys/ioctl.h> or <sys/ioccom.h>: 1996-09-21 14:59:43 +00:00
diskpc98.h Cleaned up all headers that include <sys/ioctl.h> or <sys/ioccom.h>: 1996-09-21 14:59:43 +00:00
diskslice.h Cleaned up all headers that include <sys/ioctl.h> or <sys/ioccom.h>: 1996-09-21 14:59:43 +00:00
dkbad.h Don't include <sys/conf.h> for the kernel in disk-related headers. 1996-09-20 17:39:44 +00:00
dkstat.h Fix comments on dk_wds and dk_wpms to match code. Improve comment on 1994-12-24 10:11:18 +00:00
dmap.h Eliminate sloppy common-style declarations. There should be none left for 1995-07-29 11:44:31 +00:00
domain.h Completed function declarations and/or added prototypes. 1995-11-21 12:55:26 +00:00
errno.h make the declaration of the __error() function C++ safe. Otherwise, 1996-08-18 16:16:18 +00:00
exec.h Import 4.4BSD-Lite2 onto the vendor branch, note that in the kernel, all 1996-03-11 19:39:40 +00:00
fbio.h
fcntl.h Made O_NOCTTY distinct from the other flags (it clashed with O_RDONLY). 1996-11-29 16:28:40 +00:00
fdcio.h Cleaned up all headers that include <sys/ioctl.h> or <sys/ioccom.h>: 1996-09-21 14:59:43 +00:00
file.h Eliminated nested include of <sys/unistd.h> in <sys/file.h> in the kernel. 1996-09-03 14:25:27 +00:00
filedesc.h kern_descrip.c: add fdshare()/fdcopy() 1996-02-23 18:49:25 +00:00
filio.h
ftape.h Waste less space. 1996-11-27 22:52:25 +00:00
gmon.h Improved non-statistical (GUPROF) profiling: 1996-10-17 19:32:31 +00:00
imgact_aout.h Fix a bunch of spelling errors in the comment fields of 1996-01-30 23:02:38 +00:00
imgact_elf.h Prepare kernel to take advantage of "branded" ELF binaries. 1996-10-16 17:51:08 +00:00
imgact.h Removed unnecessary #includes from <sys/imgact.h> so that it is 1996-05-01 02:43:13 +00:00
inflate.h Remove trailing whitespace. 1995-05-30 08:16:23 +00:00
ioccom.h Moved the prototype for ioctl() from <sys/ioctl.h> to <sys/ioccom.h> 1996-09-21 08:42:37 +00:00
ioctl_compat.h
ioctl_meteor.h Cleaned up all headers that include <sys/ioctl.h> or <sys/ioccom.h>: 1996-09-21 14:59:43 +00:00
ioctl.h Moved the prototype for ioctl() from <sys/ioctl.h> to <sys/ioccom.h> 1996-09-21 08:42:37 +00:00
ipc.h Add a prototype for ftok(). Doesn't really belong into a <sys/...> 1996-06-03 10:42:30 +00:00
joystick.h Cleaned up all headers that include <sys/ioctl.h> or <sys/ioccom.h>: 1996-09-21 14:59:43 +00:00
kernel.h Fixed lots of warnings from gcc-2.7.x about "left-hand operand of 1996-09-20 14:36:14 +00:00
ktrace.h Remove the extra length field from the utrace entries. It's redundant. 1996-09-22 18:17:51 +00:00
libkern.h add simple srandom() and prototype 1996-09-23 04:31:43 +00:00
linedisc.h Make a "DWIM" function for adding [bc]devsw entries for bdev drivers. 1996-07-23 21:52:43 +00:00
link_aout.h Fixed the wrong include file for a "prototype mismatch" error between 1996-10-08 01:38:36 +00:00
link_elf.h Fixed the wrong include file for a "prototype mismatch" error between 1996-10-08 01:38:36 +00:00
lkm.h `struct linker_set execsw_set' was declared as const and pointers in it 1996-09-03 22:52:27 +00:00
lockf.h Removed bogus _BEGIN_DECLS/_END_DECLS. 1996-05-01 02:16:17 +00:00
malloc.h Remove the kernel FD_SETSIZE limit for select(). 1996-08-20 07:18:10 +00:00
mbuf.h Add a protocol-specific mbuf flag. 1996-08-19 18:30:15 +00:00
md5.h close bin/1648 libmd not 64bit safe. 1996-10-22 16:27:47 +00:00
mdioctl.h Reviewed by: julian with quick glances by bruce and others 1995-08-28 09:19:25 +00:00
mman.h Initial support for MADV_FREE, support for pages that we don't care 1996-05-23 00:45:58 +00:00
mount.h Some very small changes to support Netcon's TFS filesystem. 1996-10-17 17:12:04 +00:00
mouse.h Alot of fixes from kazu: 1996-12-01 19:05:50 +00:00
msg.h Fix several sysinit functions that had the wrong type and unnecessarily 1995-08-30 00:33:35 +00:00
msgbuf.h Made msgbuf range checking more robust and clean. 1995-08-07 07:58:23 +00:00
mtio.h Cleaned up all headers that include <sys/ioctl.h> or <sys/ioccom.h>: 1996-09-21 14:59:43 +00:00
namei.h Changed type of ni_dirp in struct namei' from caddr_t to const char *' 1996-09-03 23:17:15 +00:00
nlist_aout.h Add the linker set stab types: N_SETA N_SETT N_SETD N_SETB N_SETV 1996-10-01 00:01:43 +00:00
param.h Implement a new totally dynamic (up to MAXPHYS) buffer kva allocation 1996-11-30 22:41:49 +00:00
pciio.h Add support for header type == 1 devices (PCI 2.1 compatible PCI to PCI 1996-11-12 23:18:12 +00:00
pipe.h A few minor mods (improvements) to support more efficient pipe 1996-07-13 22:52:50 +00:00
proc.h Make processes waken up eligible for immediate swap-in. 1996-10-17 02:58:20 +00:00
protosw.h Modify the kernel to use the new pr_usrreqs interface rather than the old 1996-07-11 16:32:50 +00:00
ptrace.h proc.h: Add PHOLD()/PRELE() macros to ensure the U area is not swapped 1996-01-24 18:11:23 +00:00
queue.h This set of commits to the VM system does the following, and contain 1996-05-18 03:38:05 +00:00
random.h Drat, missed this prototype for random_select(). 1996-09-27 13:29:41 +00:00
reboot.h Add support for embedded operation withou console 1996-10-16 00:19:40 +00:00
resource.h Import 4.4BSD-Lite2 onto the vendor branch, note that in the kernel, all 1996-03-11 19:39:40 +00:00
resourcevar.h trap.c: 1996-06-25 20:02:16 +00:00
rlist.h In order to fix some concurrency problems with the swap pager early 1996-03-03 21:11:08 +00:00
rtprio.h "idle priority" support. Based on code from Henrik Vestergaard Draboel, 1994-10-02 04:48:21 +00:00
scsiio.h Cleaned up all headers that include <sys/ioctl.h> or <sys/ioccom.h>: 1996-09-21 14:59:43 +00:00
select.h
selinfo.h
sem.h Clean up -Wunused warnings. 1996-06-12 05:11:41 +00:00
shm.h removed: 1996-05-02 14:21:14 +00:00
signal.h Add a SV_NODEFER and SV_RESETHAND #define, after Bruce pointed out that 1996-03-30 15:10:18 +00:00
signalvar.h re-add the ps_signodefer. The interaction between SA_NODEFER and the 1996-03-30 15:08:14 +00:00
snoop.h A Major staticize sweep. Generates a couple of warnings that I'll deal 1995-12-14 08:32:45 +00:00
socket.h Grab the next slot for AF_INET6/PF_INET6, the resolver uses it. 1996-08-30 02:18:24 +00:00
socketvar.h Added missing prototype for new function sbcreatecontrol(). 1996-11-12 10:26:37 +00:00
sockio.h Reformatted FreeBSD additions to match 4.4Lite style. Mixed tabs and 1996-09-22 14:57:44 +00:00
soundcard.h Commit AWE32 changes I forgot in my first round. Whoops! 1996-11-16 02:24:23 +00:00
stat.h In sys/time.h, struct timespec is defined as: 1996-09-19 18:21:32 +00:00
syscall-hide.h Add the utrace(caddr_t addr,size_t len) syscall, that will store the 1996-09-19 19:49:13 +00:00
syscall.h Add the utrace(caddr_t addr,size_t len) syscall, that will store the 1996-09-19 19:49:13 +00:00
sysctl.h if there is no console, cngetc should act like getc and return -1 1996-10-30 21:40:25 +00:00
sysent.h Declare pointers to signal handling functions in full instead of as 1996-10-25 16:20:34 +00:00
syslimits.h Make CHILD_MAX and OPEN_MAX a tunable parameter. 1994-12-03 17:36:37 +00:00
syslog.h Kill _OLD_PATH_LOG. It's not needed. 1996-10-28 08:25:51 +00:00
sysproto.h Add the utrace(caddr_t addr,size_t len) syscall, that will store the 1996-09-19 19:49:13 +00:00
systm.h Moved declarations of tsleep() and wakeup() from proc.h to systm.h so 1996-10-12 16:11:58 +00:00
tablet.h Cleaned up all headers that include <sys/ioctl.h> or <sys/ioccom.h>: 1996-09-21 14:59:43 +00:00
termios.h Fixed handling of non-POSIX control characters. They must not do 1996-11-29 15:06:17 +00:00
time.h In sys/time.h, struct timespec is defined as: 1996-09-19 18:21:32 +00:00
timeb.h
timers.h Obtained from: uthreads package 1996-01-22 00:32:08 +00:00
times.h
timetc.h In sys/time.h, struct timespec is defined as: 1996-09-19 18:21:32 +00:00
timex.h
tprintf.h
tty.h Import 4.4BSD-Lite2 onto the vendor branch, note that in the kernel, all 1996-03-11 19:39:40 +00:00
ttychars.h
ttycom.h Added TIOCDCDTIMESTAMP (enable/get timestamp of last DCD rise). 1996-06-17 13:08:09 +00:00
ttydefaults.h Remove trailing whitespace. 1995-05-30 08:16:23 +00:00
ttydev.h Fix a bunch of spelling errors in the comment fields of 1996-01-30 23:02:38 +00:00
types.h Removed gratuitous differences from Lite2. 1996-04-30 23:35:57 +00:00
ucred.h Import 4.4BSD-Lite2 onto the vendor branch, note that in the kernel, all 1996-03-11 19:39:40 +00:00
uio.h Added UIO_NOCOPY. 1995-04-04 17:01:49 +00:00
un.h Import 4.4BSD-Lite2 onto the vendor branch, note that in the kernel, all 1996-03-11 19:39:40 +00:00
unistd.h Changed _POSIX_VERSION from 198808L to 199009L. We're close to conforming 1996-11-29 14:48:17 +00:00
unpcb.h
user.h Updated #includes to 4.4Lite style. 1996-09-10 08:32:01 +00:00
utsname.h
vadvise.h
vcmd.h Cleaned up all headers that include <sys/ioctl.h> or <sys/ioccom.h>: 1996-09-21 14:59:43 +00:00
vlimit.h Remove trailing whitespace. 1995-05-30 08:16:23 +00:00
vmmeter.h Import 4.4BSD-Lite2 onto the vendor branch, note that in the kernel, all 1996-03-11 19:39:40 +00:00
vnioctl.h Import 4.4BSD-Lite2 onto the vendor branch, note that in the kernel, all 1996-03-11 19:39:40 +00:00
vnode.h Some very small changes to support Netcon's TFS filesystem. 1996-10-17 17:12:04 +00:00
vsio.h Remove trailing whitespace. 1995-05-30 08:16:23 +00:00
wait.h Import 4.4BSD-Lite2 onto the vendor branch, note that in the kernel, all 1996-03-11 19:39:40 +00:00
wormio.h Cleaned up all headers that include <sys/ioctl.h> or <sys/ioccom.h>: 1996-09-21 14:59:43 +00:00