diff options
author | Chris Diamand <chris@diamand.org> | 2016-01-27 17:04:35 -0800 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2016-01-27 17:27:25 -0800 |
commit | 98ee377144935857d8ad5d7d70cdab1da4ede32e (patch) | |
tree | 2654dd7858e4c0482f3a649a1fbebb3dc5b3ff3d /drivers/input/mouse/byd.h | |
parent | 8fb81d20019db3dea4126e3eac7ef8dc89b10b9e (diff) | |
download | op-kernel-dev-98ee377144935857d8ad5d7d70cdab1da4ede32e.zip op-kernel-dev-98ee377144935857d8ad5d7d70cdab1da4ede32e.tar.gz |
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.h | 18 |
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 0000000..d6c120c --- /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 */ |