mirror of
https://github.com/LineageOS/android_kernel_fxtec_sm6115.git
synced 2026-08-21 06:01:01 +00:00
Register for notification from touchscreen driver whenever any touch event occurs in the area of interest. Filter the touch events by distance moved and add them to the event queue. Change-Id: Iaf6caaaf9aea95441cbcfa41cf15d9685b8357a1 Signed-off-by: Abir Ghosh <abirg@codeaurora.org>
66 lines
1.5 KiB
C
66 lines
1.5 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */
|
|
/*
|
|
* Copyright (c) 2016-2019, 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
|
|
|
|
/*
|
|
* 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;
|
|
};
|
|
|
|
#endif /* _UAPI_QBT_HANDLER_H_ */
|