usfcdev.h 1.0 KB

12345678910111213141516171819202122232425262728
  1. /* Copyright (c) 2012, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. *
  12. */
  13. #ifndef __USFCDEV_H__
  14. #define __USFCDEV_H__
  15. #include <linux/input.h>
  16. /* TSC event type index in the containers of the handlers & handles */
  17. #define TSC_EVENT_TYPE_IND 0
  18. /* Number of supported event types to be filtered */
  19. #define MAX_EVENT_TYPE_NUM 1
  20. bool usfcdev_register(
  21. uint16_t event_type_ind,
  22. bool (*match_cb)(uint16_t, struct input_dev *dev));
  23. void usfcdev_unregister(uint16_t event_type_ind);
  24. bool usfcdev_set_filter(uint16_t event_type_ind, bool filter);
  25. #endif /* __USFCDEV_H__ */