/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (c) 2011-2016 Synaptics Incorporated * Copyright (c) 2011 Unixphere */ #ifndef _RMI_2D_SENSOR_H #define _RMI_2D_SENSOR_H enum rmi_2d_sensor_object_type { … }; struct rmi_2d_sensor_abs_object { … }; /** * @axis_align - controls parameters that are useful in system prototyping * and bring up. * @max_x - The maximum X coordinate that will be reported by this sensor. * @max_y - The maximum Y coordinate that will be reported by this sensor. * @nbr_fingers - How many fingers can this sensor report? * @data_pkt - buffer for data reported by this sensor. * @pkt_size - number of bytes in that buffer. * @attn_size - Size of the HID attention report (only contains abs data). * position when two fingers are on the device. When this is true, we * assume we have one of those sensors and report events appropriately. * @sensor_type - indicates whether we're touchscreen or touchpad. * @input - input device for absolute pointing stream * @input_phys - buffer for the absolute phys name for this sensor. */ struct rmi_2d_sensor { … }; int rmi_2d_sensor_of_probe(struct device *dev, struct rmi_2d_sensor_platform_data *pdata); void rmi_2d_sensor_abs_process(struct rmi_2d_sensor *sensor, struct rmi_2d_sensor_abs_object *obj, int slot); void rmi_2d_sensor_abs_report(struct rmi_2d_sensor *sensor, struct rmi_2d_sensor_abs_object *obj, int slot); void rmi_2d_sensor_rel_report(struct rmi_2d_sensor *sensor, int x, int y); int rmi_2d_sensor_configure_input(struct rmi_function *fn, struct rmi_2d_sensor *sensor); #endif /* _RMI_2D_SENSOR_H */