diff options
Diffstat (limited to 'usr/src/dkms_source_tree/synaptics.h')
| -rw-r--r-- | usr/src/dkms_source_tree/synaptics.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/usr/src/dkms_source_tree/synaptics.h b/usr/src/dkms_source_tree/synaptics.h index 80907d0..c3653e1 100644 --- a/usr/src/dkms_source_tree/synaptics.h +++ b/usr/src/dkms_source_tree/synaptics.h | |||
| @@ -6,6 +6,8 @@ | |||
| 6 | * the Free Software Foundation. | 6 | * the Free Software Foundation. |
| 7 | */ | 7 | */ |
| 8 | 8 | ||
| 9 | #include "input-mt.h" | ||
| 10 | |||
| 9 | #ifndef _SYNAPTICS_H | 11 | #ifndef _SYNAPTICS_H |
| 10 | #define _SYNAPTICS_H | 12 | #define _SYNAPTICS_H |
| 11 | 13 | ||
| @@ -53,6 +55,7 @@ | |||
| 53 | #define SYN_CAP_PRODUCT_ID(ec) (((ec) & 0xff0000) >> 16) | 55 | #define SYN_CAP_PRODUCT_ID(ec) (((ec) & 0xff0000) >> 16) |
| 54 | #define SYN_CAP_CLICKPAD(ex0c) ((ex0c) & 0x100100) | 56 | #define SYN_CAP_CLICKPAD(ex0c) ((ex0c) & 0x100100) |
| 55 | #define SYN_CAP_MAX_DIMENSIONS(ex0c) ((ex0c) & 0x020000) | 57 | #define SYN_CAP_MAX_DIMENSIONS(ex0c) ((ex0c) & 0x020000) |
| 58 | #define SYN_CAP_MULTITOUCH(ex0c) ((ex0c) & 0x080000) | ||
| 56 | 59 | ||
| 57 | /* synaptics modes query bits */ | 60 | /* synaptics modes query bits */ |
| 58 | #define SYN_MODE_ABSOLUTE(m) ((m) & (1 << 7)) | 61 | #define SYN_MODE_ABSOLUTE(m) ((m) & (1 << 7)) |
| @@ -110,7 +113,12 @@ struct synaptics_data { | |||
| 110 | unsigned char pkt_type; /* packet type - old, new, etc */ | 113 | unsigned char pkt_type; /* packet type - old, new, etc */ |
| 111 | unsigned char mode; /* current mode byte */ | 114 | unsigned char mode; /* current mode byte */ |
| 112 | int scroll; | 115 | int scroll; |
| 113 | struct synaptics_hw_state prev_hw; | 116 | |
| 117 | struct serio *pt_port; /* Pass-through serio port */ | ||
| 118 | |||
| 119 | int multitouch; /* device provides MT data */ | ||
| 120 | int mt_pkt; /* received MT packet */ | ||
| 121 | struct synaptics_hw_state mt; /* current MT packet */ | ||
| 114 | }; | 122 | }; |
| 115 | 123 | ||
| 116 | void synaptics_module_init(void); | 124 | void synaptics_module_init(void); |
