Synaptics Driver Patch (new Version)

Arne Schwabe arne at rfc2549.org
Sat Aug 7 10:11:38 PDT 2004


Peter Osterlund <petero2 at telia.com> writes:


>> > I'll try to merge this into the XFree86 driver, but I don't want to use
>> > the patch as is. I'd like to avoid #ifdef's and conditional compilation if
>> > possible. My unfinished changes can be found here:
>> >
>> > 	http://w1.894.telia.com/~u89404340/syn.tar.bz2
>> 
>> Okay let me hear If you got something, so I can test it.
>
> Now I have uploaded a new version to the same URL. You should set Protocol
> to "psm" in XF86Config to enable the FreeBSD psm driver protocol.
>
> Feedback is wanted, because I don't have a FreeBSD system to test on.

I am very sorry that I did not reply.
It works ;)

But since the synpatics support is now in FreeBSD-current kernel, the
ioctl change a little bit, patch is attached.

There is no need to support the older ioctl.

Arne


diff -ur synaptics-0.13.4/freebsd_mouse.h synaptics-0.13.4.freebsd-current/freebsd_mouse.h
--- synaptics-0.13.4/freebsd_mouse.h	Mon Jul 19 22:05:17 2004
+++ synaptics-0.13.4.freebsd-current/freebsd_mouse.h	Sun Aug  1 15:36:29 2004
@@ -23,11 +23,7 @@
 #define MOUSE_SETVARS        _IOW('M', 7, mousevar_t)
 #define MOUSE_READSTATE      _IOWR('M', 8, mousedata_t)
 #define MOUSE_READDATA       _IOWR('M', 9, mousedata_t)
-#define MOUSE_SYNGETHWINFO   _IOR('M', 10, synapticshw_t)
-
-#define MOUSE_SYNAPTICS_CMD	_IOW('M', 10, char)
-#define MOUSE_SYNAPTICS_INFO _IOW('M', 11, char)
-#define MOUSE_SYNAPTICS_ENABLE_PASSTHROUGH _IOW('M', 12, char)
+#define MOUSE_SYN_GETHWINFO  _IOR('M', 100, synapticshw_t)
 
 
 typedef struct synapticshw {
diff -ur synaptics-0.13.4/psmcomm.c synaptics-0.13.4.freebsd-current/psmcomm.c
--- synaptics-0.13.4/psmcomm.c	Mon Jul 19 22:05:17 2004
+++ synaptics-0.13.4.freebsd-current/psmcomm.c	Sun Aug  1 15:41:11 2004
@@ -45,7 +45,7 @@
 {
     int ret;
     
-    SYSCALL(ret = ioctl(fd, MOUSE_SYNGETHWINFO, ident));
+    SYSCALL(ret = ioctl(fd, MOUSE_SYN_GETHWINFO , ident));
     if (ret == 0)
 	return TRUE;
     else


-- 
compiling millions of tiny c-programs...done
checking for a working configure script... not found


More information about the freebsd-mobile mailing list