mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-25 08:27:48 +07:00
98ee377144
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>
19 lines
390 B
C
19 lines
390 B
C
#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 */
|