usfcdev.h 608 B

1234567891011121314151617181920
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright (c) 2012, The Linux Foundation. All rights reserved.
  4. */
  5. #ifndef __USFCDEV_H__
  6. #define __USFCDEV_H__
  7. #include <linux/input.h>
  8. /* TSC event type index in the containers of the handlers & handles */
  9. #define TSC_EVENT_TYPE_IND 0
  10. /* Number of supported event types to be filtered */
  11. #define MAX_EVENT_TYPE_NUM 1
  12. bool usfcdev_register(
  13. uint16_t event_type_ind,
  14. bool (*match_cb)(uint16_t, struct input_dev *dev));
  15. void usfcdev_unregister(uint16_t event_type_ind);
  16. bool usfcdev_set_filter(uint16_t event_type_ind, bool filter);
  17. #endif /* __USFCDEV_H__ */