blob: 131ed5146521cd609488c2dc2d65620fdd96386f [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef __LINUX_KEYBOARD_H
2#define __LINUX_KEYBOARD_H
3
David Howells607ca462012-10-13 10:46:48 +01004#include <uapi/linux/keyboard.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07005
Samuel Thibault41ab4392007-10-18 23:39:12 -07006struct notifier_block;
Linus Torvalds1da177e2005-04-16 15:20:36 -07007extern unsigned short *key_maps[MAX_NR_KEYMAPS];
8extern unsigned short plain_map[NR_KEYS];
Samuel Thibault41ab4392007-10-18 23:39:12 -07009
10struct keyboard_notifier_param {
11 struct vc_data *vc; /* VC on which the keyboard press was done */
12 int down; /* Pressure of the key? */
13 int shift; /* Current shift mask */
Karl Dahlke0beb4f62008-04-15 01:30:32 -040014 int ledstate; /* Current led state */
Samuel Thibault41ab4392007-10-18 23:39:12 -070015 unsigned int value; /* keycode, unicode value or keysym */
16};
17
18extern int register_keyboard_notifier(struct notifier_block *nb);
19extern int unregister_keyboard_notifier(struct notifier_block *nb);
Linus Torvalds1da177e2005-04-16 15:20:36 -070020#endif