Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | #ifndef __LINUX_KEYBOARD_H |
| 3 | #define __LINUX_KEYBOARD_H |
| 4 | |
David Howells | 607ca46 | 2012-10-13 10:46:48 +0100 | [diff] [blame] | 5 | #include <uapi/linux/keyboard.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 6 | |
Samuel Thibault | 41ab439 | 2007-10-18 23:39:12 -0700 | [diff] [blame] | 7 | struct notifier_block; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 8 | extern unsigned short *key_maps[MAX_NR_KEYMAPS]; |
| 9 | extern unsigned short plain_map[NR_KEYS]; |
Samuel Thibault | 41ab439 | 2007-10-18 23:39:12 -0700 | [diff] [blame] | 10 | |
| 11 | struct keyboard_notifier_param { |
| 12 | struct vc_data *vc; /* VC on which the keyboard press was done */ |
| 13 | int down; /* Pressure of the key? */ |
| 14 | int shift; /* Current shift mask */ |
Karl Dahlke | 0beb4f6 | 2008-04-15 01:30:32 -0400 | [diff] [blame] | 15 | int ledstate; /* Current led state */ |
Samuel Thibault | 41ab439 | 2007-10-18 23:39:12 -0700 | [diff] [blame] | 16 | unsigned int value; /* keycode, unicode value or keysym */ |
| 17 | }; |
| 18 | |
| 19 | extern int register_keyboard_notifier(struct notifier_block *nb); |
| 20 | extern int unregister_keyboard_notifier(struct notifier_block *nb); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 21 | #endif |