keyreset.h 833 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * include/linux/keyreset.h - platform data structure for resetkeys driver
  3. *
  4. * Copyright (C) 2014 Google, Inc.
  5. *
  6. * This software is licensed under the terms of the GNU General Public
  7. * License version 2, as published by the Free Software Foundation, and
  8. * may be copied, distributed, and modified under those terms.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. */
  16. #ifndef _LINUX_KEYRESET_H
  17. #define _LINUX_KEYRESET_H
  18. #define KEYRESET_NAME "keyreset"
  19. struct keyreset_platform_data {
  20. int (*reset_fn)(void);
  21. int key_down_delay;
  22. int *keys_up;
  23. int keys_down[]; /* 0 terminated */
  24. };
  25. #endif /* _LINUX_KEYRESET_H */