1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* 3 * Copyright (c) 2023 Javier Carrasco <javier.carrasco@wolfvision.net> 4 */ 5 6 #ifndef _TOUCH_OVERLAY 7 #define _TOUCH_OVERLAY 8 9 #include <linux/types.h> 10 11 struct input_dev; 12 13 int touch_overlay_map(struct list_head *list, struct input_dev *input); 14 15 void touch_overlay_get_touchscreen_abs(struct list_head *list, u16 *x, u16 *y); 16 17 bool touch_overlay_mapped_touchscreen(struct list_head *list); 18 19 bool touch_overlay_process_contact(struct list_head *list, 20 struct input_dev *input, 21 struct input_mt_pos *pos, int slot); 22 23 void touch_overlay_sync_frame(struct list_head *list, struct input_dev *input); 24 25 #endif 26