6b13f685e
김민수
BSP 최초 추가
|
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
|
#ifndef _INPUT_H
#define _INPUT_H
enum {
INPUT_MAX_MODIFIERS = 4,
INPUT_BUFFER_LEN = 16,
};
enum {
INPUT_LED_SCROLL = 1 << 0,
INPUT_LED_CAPS = 1 << 1,
INPUT_LED_NUM = 1 << 2,
};
struct input_key_xlate {
int left_keycode;
int right_keycode;
const uchar *xlate;
int num_entries;
};
struct input_config {
uchar fifo[INPUT_BUFFER_LEN];
int fifo_in, fifo_out;
uchar modifiers;
uchar flags;
uchar leds;
uchar num_tables;
int prev_keycodes[INPUT_BUFFER_LEN];
int num_prev_keycodes;
struct input_key_xlate table[INPUT_MAX_MODIFIERS];
int (*read_keys)(struct input_config *config);
unsigned int next_repeat_ms;
unsigned int repeat_delay_ms;
unsigned int repeat_rate_ms;
};
struct stdio_dev;
int input_send_keycodes(struct input_config *config, int keycode[], int count);
int input_add_table(struct input_config *config, int left_keycode,
int right_keycode, const uchar *xlate, int num_entries);
int input_tstc(struct input_config *config);
int input_getc(struct input_config *config);
int input_stdio_register(struct stdio_dev *dev);
void input_set_delays(struct input_config *config, int repeat_delay_ms,
int repeat_rate_ms);
int input_init(struct input_config *config, int leds);
#ifdef CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE
extern int overwrite_console(void);
#define OVERWRITE_CONSOLE overwrite_console()
#else
#define OVERWRITE_CONSOLE 0
#endif /* CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE */
#endif
|