Subject: CVS commit: src/sys/compat
To: None <source-changes@NetBSD.org>
From: Emmanuel Dreyfus <manu@netbsd.org>
List: source-changes
Date: 09/11/2003 23:16:20
Module Name:	src
Committed By:	manu
Date:		Thu Sep 11 23:16:20 UTC 2003

Modified Files:
	src/sys/compat/darwin: darwin_ioframebuffer.c darwin_iohidsystem.c
	    darwin_iohidsystem.h
	src/sys/compat/mach: mach_iokit.c mach_iokit.h

Log Message:
Some initial support for IOHIDSystem. This gives us some pointer moves in X11
(not really related the the actual mouse movement, but this will come).

The darwin_iohidsystem_thread reads events from wscons, translates them
into IOHIDSystem events and wakes up the userland client with a notification.
To do this, I had to improve the void implementation of
io_connect_set_notification_port() to actually register something (I assumed
a single notification port, which makes some sense since only one process
seems to be able to open the driver)

Missing bits:
- we do not take event masks given by the process into account.
- the notification message has not been checked against Darwin
- events are badly translated


To generate a diff of this commit:
cvs rdiff -r1.17 -r1.18 src/sys/compat/darwin/darwin_ioframebuffer.c
cvs rdiff -r1.9 -r1.10 src/sys/compat/darwin/darwin_iohidsystem.c
cvs rdiff -r1.6 -r1.7 src/sys/compat/darwin/darwin_iohidsystem.h
cvs rdiff -r1.21 -r1.22 src/sys/compat/mach/mach_iokit.c
cvs rdiff -r1.17 -r1.18 src/sys/compat/mach/mach_iokit.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.