blob: 1c2f0216d4c5439df63750133c99b3dab3a9a5ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
/* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */
/*
* Copyright (c) 2016-2020, The Linux Foundation. All rights reserved.
*/
#ifndef _UAPI_QBT_HANDLER_H_
#define _UAPI_QBT_HANDLER_H_
#define MAX_NAME_SIZE 32
#define QBT_IS_WUHB_CONNECTED 100
#define QBT_SEND_KEY_EVENT 101
#define QBT_ENABLE_IPC 102
#define QBT_DISABLE_IPC 103
#define QBT_ENABLE_FD 104
#define QBT_DISABLE_FD 105
#define QBT_CONFIGURE_TOUCH_FD 106
#define QBT_ACQUIRE_WAKELOCK 107
#define QBT_RELEASE_WAKELOCK 108
#define QBT_GET_TOUCH_FD_VERSION 109
#define QBT_CONFIGURE_TOUCH_FD_V2 110
/*
* enum qbt_finger_events -
* enumeration of qbt finger events
* @QBT_EVENT_FINGER_UP - finger up detected
* @QBT_EVENT_FINGER_DOWN - finger down detected
* @QBT_EVENT_FINGER_MOVE - finger move detected
*/
enum qbt_finger_events {
QBT_EVENT_FINGER_UP,
QBT_EVENT_FINGER_DOWN,
QBT_EVENT_FINGER_MOVE
};
/*
* enum qbt_fw_event -
* enumeration of firmware events
* @FW_EVENT_FINGER_DOWN - finger down detected
* @FW_EVENT_FINGER_UP - finger up detected
* @FW_EVENT_IPC - an IPC from the firmware is pending
*/
enum qbt_fw_event {
FW_EVENT_FINGER_DOWN = 1,
FW_EVENT_FINGER_UP = 2,
FW_EVENT_IPC = 3,
};
/*
* struct qbt_wuhb_connected_status -
* used to query whether WUHB INT line is connected
* @is_wuhb_connected - if non-zero, WUHB INT line is connected
*/
struct qbt_wuhb_connected_status {
_Bool is_wuhb_connected;
};
/*
* struct qbt_key_event -
* used to send key event
* @key - the key event to send
* @value - value of the key event
*/
struct qbt_key_event {
int key;
int value;
};
/*
* struct qbt_touch_config -
* used to configure touch finger detect
* @rad_filter_enable - flag to enable/disable radius based filtering
* @rad_x: movement radius in x direction
* @rad_y: movement radius in y direction
*/
struct qbt_touch_config {
_Bool rad_filter_enable;
int rad_x;
int rad_y;
};
/*
* struct qbt_touch_fd_version -
* used to get touch finger detect version
* @version: version number
*/
struct qbt_touch_fd_version {
int version;
};
/*
* struct qbt_touch_config_v2 -
* used to configure touch finger detect
* @version - touch FD version
* @touch_fd_enable - flag to enable/disable touch finger detect
* @rad_filter_enable - flag to enable/disable radius based filtering
* @left - x-coordinate of top left corner of AOI
* @top - y-coordinate of top left corner of AOI
* @right - x-coordinate of bottom right corner of AOI
* @bottom - y--coordinate of bottom right corner of AOI
* @rad_x: movement radius in x direction
* @rad_y: movement radius in y direction
*/
struct qbt_touch_config_v2 {
struct qbt_touch_fd_version version;
_Bool touch_fd_enable;
_Bool rad_filter_enable;
int left;
int top;
int right;
int bottom;
int rad_x;
int rad_y;
};
#endif /* _UAPI_QBT_HANDLER_H_ */
|