Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef __LINUX_KEYBOARD_H
0003 #define __LINUX_KEYBOARD_H
0004 
0005 #include <uapi/linux/keyboard.h>
0006 
0007 struct notifier_block;
0008 extern unsigned short *key_maps[MAX_NR_KEYMAPS];
0009 extern unsigned short plain_map[NR_KEYS];
0010 
0011 struct keyboard_notifier_param {
0012     struct vc_data *vc; /* VC on which the keyboard press was done */
0013     int down;       /* Pressure of the key? */
0014     int shift;      /* Current shift mask */
0015     int ledstate;       /* Current led state */
0016     unsigned int value; /* keycode, unicode value or keysym */
0017 };
0018 
0019 extern int register_keyboard_notifier(struct notifier_block *nb);
0020 extern int unregister_keyboard_notifier(struct notifier_block *nb);
0021 #endif