summaryrefslogtreecommitdiff
path: root/drivers/input/mouse/byd.h
diff options
context:
space:
mode:
authorChris Diamand <chris@diamand.org>2016-01-28 04:04:35 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2016-01-28 04:27:25 +0300
commit98ee377144935857d8ad5d7d70cdab1da4ede32e (patch)
tree2654dd7858e4c0482f3a649a1fbebb3dc5b3ff3d /drivers/input/mouse/byd.h
parent8fb81d20019db3dea4126e3eac7ef8dc89b10b9e (diff)
downloadlinux-98ee377144935857d8ad5d7d70cdab1da4ede32e.tar.xz
Input: byd - add BYD PS/2 touchpad driver
Driver for the BYD BTP10463 touchpad, found in PC Specialist `Lafite' laptops. This patch sends the magic command sequence which causes the touchpad to stream intellimouse-style packets. Gestures are detected inside the touchpad, and exposed as special values in the Z component of each packet - absolute coordinates are not supported, even in the Windows driver. At present, this supports two-finger vertical and horizontal scrolling, and provides the framework to expose the other gestures it can recognize. Signed-off-by: Chris Diamand <chris@diamand.org> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/mouse/byd.h')
-rw-r--r--drivers/input/mouse/byd.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/input/mouse/byd.h b/drivers/input/mouse/byd.h
new file mode 100644
index 000000000000..d6c120cf36cd
--- /dev/null
+++ b/drivers/input/mouse/byd.h
@@ -0,0 +1,18 @@
+#ifndef _BYD_H
+#define _BYD_H
+
+#ifdef CONFIG_MOUSE_PS2_BYD
+int byd_detect(struct psmouse *psmouse, bool set_properties);
+int byd_init(struct psmouse *psmouse);
+#else
+static inline int byd_detect(struct psmouse *psmouse, bool set_properties)
+{
+ return -ENOSYS;
+}
+static inline int byd_init(struct psmouse *psmouse)
+{
+ return -ENOSYS;
+}
+#endif /* CONFIG_MOUSE_PS2_BYD */
+
+#endif /* _BYD_H */