blob: d169c647bdafa6cec38bda559433a9b6045c261c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef __INPUT_H
#define __INPUT_H
#include <linux/types.h>
#include <linux/list.h>
#include <dt-bindings/input/linux-event-codes.h>
struct input_event {
uint16_t code;
uint16_t value;
};
struct input_device {
struct list_head list;
DECLARE_BITMAP(keys, KEY_CNT);
};
void input_report_key_event(struct input_device *idev, unsigned int code, int value);
int input_device_register(struct input_device *);
void input_device_unregister(struct input_device *);
void input_key_get_status(unsigned long *keys, int bits);
struct input_notifier {
void (*notify)(struct input_notifier *in, struct input_event *event);
struct list_head list;
};
int input_register_notfier(struct input_notifier *in);
void input_unregister_notfier(struct input_notifier *in);
#endif /* __INPUT_H */
|