keyboard.h 665 B

123456789101112131415161718192021
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __LINUX_KEYBOARD_H
  3. #define __LINUX_KEYBOARD_H
  4. #include <uapi/linux/keyboard.h>
  5. struct notifier_block;
  6. extern unsigned short *key_maps[MAX_NR_KEYMAPS];
  7. extern unsigned short plain_map[NR_KEYS];
  8. struct keyboard_notifier_param {
  9. struct vc_data *vc; /* VC on which the keyboard press was done */
  10. int down; /* Pressure of the key? */
  11. int shift; /* Current shift mask */
  12. int ledstate; /* Current led state */
  13. unsigned int value; /* keycode, unicode value or keysym */
  14. };
  15. extern int register_keyboard_notifier(struct notifier_block *nb);
  16. extern int unregister_keyboard_notifier(struct notifier_block *nb);
  17. #endif