]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - include/linux/keyboard.h
ACPI: fix acpi_find_child_device() invocation in acpi_preset_companion()
[mirror_ubuntu-bionic-kernel.git] / include / linux / keyboard.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
1da177e4
LT
2#ifndef __LINUX_KEYBOARD_H
3#define __LINUX_KEYBOARD_H
4
607ca46e 5#include <uapi/linux/keyboard.h>
1da177e4 6
41ab4396 7struct notifier_block;
1da177e4
LT
8extern unsigned short *key_maps[MAX_NR_KEYMAPS];
9extern unsigned short plain_map[NR_KEYS];
41ab4396
ST
10
11struct 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 */
0beb4f6f 15 int ledstate; /* Current led state */
41ab4396
ST
16 unsigned int value; /* keycode, unicode value or keysym */
17};
18
19extern int register_keyboard_notifier(struct notifier_block *nb);
20extern int unregister_keyboard_notifier(struct notifier_block *nb);
1da177e4 21#endif