Add Elantech trackpad support
Elantech trackpads are found in some laptops like the Asus UX31E. They are "synaptics compatible" but use a slightly different protocol. Elantech hardware support is not enabled by default and just like Synaptic or TrackPoint devices it should be enabled by setting tunable, in this case hw.psm.elantech_support, to non-zero value PR: 205690 Submitted by: Vladimir Kondratyev <wulf@cicgroup.ru> MFC after: 1 week
This commit is contained in:
parent
cda20f96df
commit
0fe98e8f2c
2219
sys/dev/atkbdc/psm.c
2219
sys/dev/atkbdc/psm.c
File diff suppressed because it is too large
Load Diff
@ -170,6 +170,7 @@ typedef struct synapticshw {
|
||||
#define MOUSE_MODEL_4DPLUS 12
|
||||
#define MOUSE_MODEL_SYNAPTICS 13
|
||||
#define MOUSE_MODEL_TRACKPOINT 14
|
||||
#define MOUSE_MODEL_ELANTECH 15
|
||||
|
||||
typedef struct mousemode {
|
||||
int protocol; /* MOUSE_PROTO_XXX */
|
||||
@ -240,6 +241,9 @@ typedef struct mousevar {
|
||||
/* Synaptics Touchpad */
|
||||
#define MOUSE_SYNAPTICS_PACKETSIZE 6 /* '3' works better */
|
||||
|
||||
/* Elantech Touchpad */
|
||||
#define MOUSE_ELANTECH_PACKETSIZE 6
|
||||
|
||||
/* Microsoft Serial mouse data packet */
|
||||
#define MOUSE_MSS_PACKETSIZE 3
|
||||
#define MOUSE_MSS_SYNCMASK 0x40
|
||||
|
Loading…
Reference in New Issue
Block a user