summaryrefslogtreecommitdiff
path: root/ps2comm.c
diff options
context:
space:
mode:
authorPeter Osterlund <petero2@telia.com>2004-04-12 01:27:55 +0200
committerPeter Osterlund <petero2@telia.com>2006-04-09 04:02:00 +0200
commit5a3e05478ae3e641791031c241dc00eb43598726 (patch)
tree9afe8241c4ed96adedb9afd338734e980f5acc00 /ps2comm.c
parentbda42daf592497ee210868660ce6be5a0f390e98 (diff)
Some work on abstracting out the protocol differences from
synaptics.c to make supporting the FreeBSD psm driver possible.
Diffstat (limited to 'ps2comm.c')
-rw-r--r--ps2comm.c20
1 files changed, 18 insertions, 2 deletions
diff --git a/ps2comm.c b/ps2comm.c
index e95b152..8e6c1ad 100644
--- a/ps2comm.c
+++ b/ps2comm.c
@@ -25,9 +25,8 @@
*
*/
-#include "xf86_OSproc.h"
-
#include "ps2comm.h"
+#include "synproto.h"
#include "synaptics.h"
/* acknowledge for commands and parameter */
@@ -450,3 +449,20 @@ QueryIsSynaptics(int fd)
return FALSE;
}
}
+
+
+static void
+DeviceOnHook(LocalDevicePtr local)
+{
+}
+
+static void
+DeviceOffHook(LocalDevicePtr local)
+{
+ synaptics_set_mode(local->fd, 0);
+}
+
+struct SynapticsProtocolOperations psaux_proto_operations = {
+ DeviceOnHook,
+ DeviceOffHook
+};