root / hw / pxa2xx_keypad.c @ eb173de6
History | View | Annotate | Download (9.6 kB)
1 | 31b87f2e | balrog | /*
|
---|---|---|---|
2 | 31b87f2e | balrog | * Intel PXA27X Keypad Controller emulation.
|
3 | 31b87f2e | balrog | *
|
4 | 31b87f2e | balrog | * Copyright (c) 2007 MontaVista Software, Inc
|
5 | 31b87f2e | balrog | * Written by Armin Kuster <akuster@kama-aina.net>
|
6 | 31b87f2e | balrog | * or <Akuster@mvista.com>
|
7 | 31b87f2e | balrog | *
|
8 | 31b87f2e | balrog | * This code is licensed under the GPLv2.
|
9 | 31b87f2e | balrog | */
|
10 | 31b87f2e | balrog | |
11 | 31b87f2e | balrog | #include "hw.h" |
12 | 31b87f2e | balrog | #include "pxa.h" |
13 | 31b87f2e | balrog | #include "console.h" |
14 | 31b87f2e | balrog | |
15 | 31b87f2e | balrog | /*
|
16 | 31b87f2e | balrog | * Keypad
|
17 | 31b87f2e | balrog | */
|
18 | 31b87f2e | balrog | #define KPC 0x00 /* Keypad Interface Control register */ |
19 | 31b87f2e | balrog | #define KPDK 0x08 /* Keypad Interface Direct Key register */ |
20 | 31b87f2e | balrog | #define KPREC 0x10 /* Keypad Interface Rotary Encoder register */ |
21 | 31b87f2e | balrog | #define KPMK 0x18 /* Keypad Interface Matrix Key register */ |
22 | 31b87f2e | balrog | #define KPAS 0x20 /* Keypad Interface Automatic Scan register */ |
23 | 31b87f2e | balrog | #define KPASMKP0 0x28 /* Keypad Interface Automatic Scan Multiple |
24 | 31b87f2e | balrog | Key Presser register 0 */
|
25 | 31b87f2e | balrog | #define KPASMKP1 0x30 /* Keypad Interface Automatic Scan Multiple |
26 | 31b87f2e | balrog | Key Presser register 1 */
|
27 | 31b87f2e | balrog | #define KPASMKP2 0x38 /* Keypad Interface Automatic Scan Multiple |
28 | 31b87f2e | balrog | Key Presser register 2 */
|
29 | 31b87f2e | balrog | #define KPASMKP3 0x40 /* Keypad Interface Automatic Scan Multiple |
30 | 31b87f2e | balrog | Key Presser register 3 */
|
31 | 31b87f2e | balrog | #define KPKDI 0x48 /* Keypad Interface Key Debounce Interval |
32 | 31b87f2e | balrog | register */
|
33 | 31b87f2e | balrog | |
34 | 31b87f2e | balrog | /* Keypad defines */
|
35 | 31b87f2e | balrog | #define KPC_AS (0x1 << 30) /* Automatic Scan bit */ |
36 | 31b87f2e | balrog | #define KPC_ASACT (0x1 << 29) /* Automatic Scan on Activity */ |
37 | 31b87f2e | balrog | #define KPC_MI (0x1 << 22) /* Matrix interrupt bit */ |
38 | 31b87f2e | balrog | #define KPC_IMKP (0x1 << 21) /* Ignore Multiple Key Press */ |
39 | 31b87f2e | balrog | #define KPC_MS7 (0x1 << 20) /* Matrix scan line 7 */ |
40 | 31b87f2e | balrog | #define KPC_MS6 (0x1 << 19) /* Matrix scan line 6 */ |
41 | 31b87f2e | balrog | #define KPC_MS5 (0x1 << 18) /* Matrix scan line 5 */ |
42 | 31b87f2e | balrog | #define KPC_MS4 (0x1 << 17) /* Matrix scan line 4 */ |
43 | 31b87f2e | balrog | #define KPC_MS3 (0x1 << 16) /* Matrix scan line 3 */ |
44 | 31b87f2e | balrog | #define KPC_MS2 (0x1 << 15) /* Matrix scan line 2 */ |
45 | 31b87f2e | balrog | #define KPC_MS1 (0x1 << 14) /* Matrix scan line 1 */ |
46 | 31b87f2e | balrog | #define KPC_MS0 (0x1 << 13) /* Matrix scan line 0 */ |
47 | 31b87f2e | balrog | #define KPC_ME (0x1 << 12) /* Matrix Keypad Enable */ |
48 | 31b87f2e | balrog | #define KPC_MIE (0x1 << 11) /* Matrix Interrupt Enable */ |
49 | 31b87f2e | balrog | #define KPC_DK_DEB_SEL (0x1 << 9) /* Direct Keypad Debounce Select */ |
50 | 31b87f2e | balrog | #define KPC_DI (0x1 << 5) /* Direct key interrupt bit */ |
51 | 31b87f2e | balrog | #define KPC_RE_ZERO_DEB (0x1 << 4) /* Rotary Encoder Zero Debounce */ |
52 | 31b87f2e | balrog | #define KPC_REE1 (0x1 << 3) /* Rotary Encoder1 Enable */ |
53 | 31b87f2e | balrog | #define KPC_REE0 (0x1 << 2) /* Rotary Encoder0 Enable */ |
54 | 31b87f2e | balrog | #define KPC_DE (0x1 << 1) /* Direct Keypad Enable */ |
55 | 31b87f2e | balrog | #define KPC_DIE (0x1 << 0) /* Direct Keypad interrupt Enable */ |
56 | 31b87f2e | balrog | |
57 | 31b87f2e | balrog | #define KPDK_DKP (0x1 << 31) |
58 | 31b87f2e | balrog | #define KPDK_DK7 (0x1 << 7) |
59 | 31b87f2e | balrog | #define KPDK_DK6 (0x1 << 6) |
60 | 31b87f2e | balrog | #define KPDK_DK5 (0x1 << 5) |
61 | 31b87f2e | balrog | #define KPDK_DK4 (0x1 << 4) |
62 | 31b87f2e | balrog | #define KPDK_DK3 (0x1 << 3) |
63 | 31b87f2e | balrog | #define KPDK_DK2 (0x1 << 2) |
64 | 31b87f2e | balrog | #define KPDK_DK1 (0x1 << 1) |
65 | 31b87f2e | balrog | #define KPDK_DK0 (0x1 << 0) |
66 | 31b87f2e | balrog | |
67 | 31b87f2e | balrog | #define KPREC_OF1 (0x1 << 31) |
68 | 31b87f2e | balrog | #define KPREC_UF1 (0x1 << 30) |
69 | 31b87f2e | balrog | #define KPREC_OF0 (0x1 << 15) |
70 | 31b87f2e | balrog | #define KPREC_UF0 (0x1 << 14) |
71 | 31b87f2e | balrog | |
72 | 31b87f2e | balrog | #define KPMK_MKP (0x1 << 31) |
73 | 31b87f2e | balrog | #define KPAS_SO (0x1 << 31) |
74 | 31b87f2e | balrog | #define KPASMKPx_SO (0x1 << 31) |
75 | 31b87f2e | balrog | |
76 | 31b87f2e | balrog | |
77 | 31b87f2e | balrog | #define KPASMKPx_MKC(row, col) (1 << (row + 16 * (col % 2))) |
78 | 31b87f2e | balrog | |
79 | 31b87f2e | balrog | #define PXAKBD_MAXROW 8 |
80 | 31b87f2e | balrog | #define PXAKBD_MAXCOL 8 |
81 | 31b87f2e | balrog | |
82 | 31b87f2e | balrog | struct pxa2xx_keypad_s{
|
83 | 31b87f2e | balrog | target_phys_addr_t base; |
84 | 31b87f2e | balrog | qemu_irq irq; |
85 | 31b87f2e | balrog | struct keymap *map;
|
86 | 31b87f2e | balrog | |
87 | 31b87f2e | balrog | uint32_t kpc; |
88 | 31b87f2e | balrog | uint32_t kpdk; |
89 | 31b87f2e | balrog | uint32_t kprec; |
90 | 31b87f2e | balrog | uint32_t kpmk; |
91 | 31b87f2e | balrog | uint32_t kpas; |
92 | 31b87f2e | balrog | uint32_t kpasmkp0; |
93 | 31b87f2e | balrog | uint32_t kpasmkp1; |
94 | 31b87f2e | balrog | uint32_t kpasmkp2; |
95 | 31b87f2e | balrog | uint32_t kpasmkp3; |
96 | 31b87f2e | balrog | uint32_t kpkdi; |
97 | 31b87f2e | balrog | }; |
98 | 31b87f2e | balrog | |
99 | 31b87f2e | balrog | static void pxa27x_keyboard_event (struct pxa2xx_keypad_s *kp, int keycode) |
100 | 31b87f2e | balrog | { |
101 | 31b87f2e | balrog | int row, col,rel;
|
102 | 31b87f2e | balrog | |
103 | 31b87f2e | balrog | if(!(kp->kpc & KPC_ME)) /* skip if not enabled */ |
104 | 31b87f2e | balrog | return;
|
105 | 31b87f2e | balrog | |
106 | 31b87f2e | balrog | if(kp->kpc & KPC_AS || kp->kpc & KPC_ASACT) {
|
107 | 31b87f2e | balrog | if(kp->kpc & KPC_AS)
|
108 | 31b87f2e | balrog | kp->kpc &= ~(KPC_AS); |
109 | 31b87f2e | balrog | |
110 | 31b87f2e | balrog | rel = (keycode & 0x80) ? 1 : 0; /* key release from qemu */ |
111 | 31b87f2e | balrog | keycode &= ~(0x80); /* strip qemu key release bit */ |
112 | 31b87f2e | balrog | row = kp->map[keycode].row; |
113 | 31b87f2e | balrog | col = kp->map[keycode].column; |
114 | 31b87f2e | balrog | if(row == -1 || col == -1) |
115 | 31b87f2e | balrog | return;
|
116 | 31b87f2e | balrog | switch (col) {
|
117 | 31b87f2e | balrog | case 0: |
118 | 31b87f2e | balrog | case 1: |
119 | 31b87f2e | balrog | if(rel)
|
120 | 31b87f2e | balrog | kp->kpasmkp0 = ~(0xffffffff);
|
121 | 31b87f2e | balrog | else
|
122 | 31b87f2e | balrog | kp->kpasmkp0 |= KPASMKPx_MKC(row,col); |
123 | 31b87f2e | balrog | break;
|
124 | 31b87f2e | balrog | case 2: |
125 | 31b87f2e | balrog | case 3: |
126 | 31b87f2e | balrog | if(rel)
|
127 | 31b87f2e | balrog | kp->kpasmkp1 = ~(0xffffffff);
|
128 | 31b87f2e | balrog | else
|
129 | 31b87f2e | balrog | kp->kpasmkp1 |= KPASMKPx_MKC(row,col); |
130 | 31b87f2e | balrog | break;
|
131 | 31b87f2e | balrog | case 4: |
132 | 31b87f2e | balrog | case 5: |
133 | 31b87f2e | balrog | if(rel)
|
134 | 31b87f2e | balrog | kp->kpasmkp2 = ~(0xffffffff);
|
135 | 31b87f2e | balrog | else
|
136 | 31b87f2e | balrog | kp->kpasmkp2 |= KPASMKPx_MKC(row,col); |
137 | 31b87f2e | balrog | break;
|
138 | 31b87f2e | balrog | case 6: |
139 | 31b87f2e | balrog | case 7: |
140 | 31b87f2e | balrog | if(rel)
|
141 | 31b87f2e | balrog | kp->kpasmkp3 = ~(0xffffffff);
|
142 | 31b87f2e | balrog | else
|
143 | 31b87f2e | balrog | kp->kpasmkp3 |= KPASMKPx_MKC(row,col); |
144 | 31b87f2e | balrog | break;
|
145 | 31b87f2e | balrog | } /* switch */
|
146 | 31b87f2e | balrog | goto out;
|
147 | 31b87f2e | balrog | } |
148 | 31b87f2e | balrog | return;
|
149 | 31b87f2e | balrog | |
150 | 31b87f2e | balrog | out:
|
151 | 31b87f2e | balrog | if(kp->kpc & KPC_MIE) {
|
152 | 31b87f2e | balrog | kp->kpc |= KPC_MI; |
153 | 31b87f2e | balrog | qemu_irq_raise(kp->irq); |
154 | 31b87f2e | balrog | } |
155 | 31b87f2e | balrog | return;
|
156 | 31b87f2e | balrog | } |
157 | 31b87f2e | balrog | |
158 | 31b87f2e | balrog | static uint32_t pxa2xx_keypad_read(void *opaque, target_phys_addr_t offset) |
159 | 31b87f2e | balrog | { |
160 | 31b87f2e | balrog | struct pxa2xx_keypad_s *s = (struct pxa2xx_keypad_s *) opaque; |
161 | 31b87f2e | balrog | uint32_t tmp; |
162 | 31b87f2e | balrog | offset -= s->base; |
163 | 31b87f2e | balrog | |
164 | 31b87f2e | balrog | switch (offset) {
|
165 | 31b87f2e | balrog | case KPC:
|
166 | 31b87f2e | balrog | tmp = s->kpc; |
167 | 31b87f2e | balrog | if(tmp & KPC_MI)
|
168 | 31b87f2e | balrog | s->kpc &= ~(KPC_MI); |
169 | 31b87f2e | balrog | if(tmp & KPC_DI)
|
170 | 31b87f2e | balrog | s->kpc &= ~(KPC_DI); |
171 | 31b87f2e | balrog | qemu_irq_lower(s->irq); |
172 | 31b87f2e | balrog | return tmp;
|
173 | 31b87f2e | balrog | break;
|
174 | 31b87f2e | balrog | case KPDK:
|
175 | 31b87f2e | balrog | return s->kpdk;
|
176 | 31b87f2e | balrog | break;
|
177 | 31b87f2e | balrog | case KPREC:
|
178 | 31b87f2e | balrog | tmp = s->kprec; |
179 | 31b87f2e | balrog | if(tmp & KPREC_OF1)
|
180 | 31b87f2e | balrog | s->kprec &= ~(KPREC_OF1); |
181 | 31b87f2e | balrog | if(tmp & KPREC_UF1)
|
182 | 31b87f2e | balrog | s->kprec &= ~(KPREC_UF1); |
183 | 31b87f2e | balrog | if(tmp & KPREC_OF0)
|
184 | 31b87f2e | balrog | s->kprec &= ~(KPREC_OF0); |
185 | 31b87f2e | balrog | if(tmp & KPREC_UF0)
|
186 | 31b87f2e | balrog | s->kprec &= ~(KPREC_UF0); |
187 | 31b87f2e | balrog | return tmp;
|
188 | 31b87f2e | balrog | break;
|
189 | 31b87f2e | balrog | case KPMK:
|
190 | 31b87f2e | balrog | tmp = s->kpmk; |
191 | 31b87f2e | balrog | if(tmp & KPMK_MKP)
|
192 | 31b87f2e | balrog | s->kpmk &= ~(KPMK_MKP); |
193 | 31b87f2e | balrog | return tmp;
|
194 | 31b87f2e | balrog | break;
|
195 | 31b87f2e | balrog | case KPAS:
|
196 | 31b87f2e | balrog | return s->kpas;
|
197 | 31b87f2e | balrog | break;
|
198 | 31b87f2e | balrog | case KPASMKP0:
|
199 | 31b87f2e | balrog | return s->kpasmkp0;
|
200 | 31b87f2e | balrog | break;
|
201 | 31b87f2e | balrog | case KPASMKP1:
|
202 | 31b87f2e | balrog | return s->kpasmkp1;
|
203 | 31b87f2e | balrog | break;
|
204 | 31b87f2e | balrog | case KPASMKP2:
|
205 | 31b87f2e | balrog | return s->kpasmkp2;
|
206 | 31b87f2e | balrog | break;
|
207 | 31b87f2e | balrog | case KPASMKP3:
|
208 | 31b87f2e | balrog | return s->kpasmkp3;
|
209 | 31b87f2e | balrog | break;
|
210 | 31b87f2e | balrog | case KPKDI:
|
211 | 31b87f2e | balrog | return s->kpkdi;
|
212 | 31b87f2e | balrog | break;
|
213 | 31b87f2e | balrog | default:
|
214 | 31b87f2e | balrog | cpu_abort(cpu_single_env, "%s: Bad offset " REG_FMT "\n", |
215 | 31b87f2e | balrog | __FUNCTION__, offset); |
216 | 31b87f2e | balrog | } |
217 | 31b87f2e | balrog | |
218 | 31b87f2e | balrog | return 0; |
219 | 31b87f2e | balrog | } |
220 | 31b87f2e | balrog | |
221 | 31b87f2e | balrog | static void pxa2xx_keypad_write(void *opaque, |
222 | 31b87f2e | balrog | target_phys_addr_t offset, uint32_t value) |
223 | 31b87f2e | balrog | { |
224 | 31b87f2e | balrog | struct pxa2xx_keypad_s *s = (struct pxa2xx_keypad_s *) opaque; |
225 | 31b87f2e | balrog | offset -= s->base; |
226 | 31b87f2e | balrog | |
227 | 31b87f2e | balrog | switch (offset) {
|
228 | 31b87f2e | balrog | case KPC:
|
229 | 31b87f2e | balrog | s->kpc = value; |
230 | 31b87f2e | balrog | break;
|
231 | 31b87f2e | balrog | case KPDK:
|
232 | 31b87f2e | balrog | s->kpdk = value; |
233 | 31b87f2e | balrog | break;
|
234 | 31b87f2e | balrog | case KPREC:
|
235 | 31b87f2e | balrog | s->kprec = value; |
236 | 31b87f2e | balrog | break;
|
237 | 31b87f2e | balrog | case KPMK:
|
238 | 31b87f2e | balrog | s->kpmk = value; |
239 | 31b87f2e | balrog | break;
|
240 | 31b87f2e | balrog | case KPAS:
|
241 | 31b87f2e | balrog | s->kpas = value; |
242 | 31b87f2e | balrog | break;
|
243 | 31b87f2e | balrog | case KPASMKP0:
|
244 | 31b87f2e | balrog | s->kpasmkp0 = value; |
245 | 31b87f2e | balrog | break;
|
246 | 31b87f2e | balrog | case KPASMKP1:
|
247 | 31b87f2e | balrog | s->kpasmkp1 = value; |
248 | 31b87f2e | balrog | break;
|
249 | 31b87f2e | balrog | case KPASMKP2:
|
250 | 31b87f2e | balrog | s->kpasmkp2 = value; |
251 | 31b87f2e | balrog | break;
|
252 | 31b87f2e | balrog | case KPASMKP3:
|
253 | 31b87f2e | balrog | s->kpasmkp3 = value; |
254 | 31b87f2e | balrog | break;
|
255 | 31b87f2e | balrog | case KPKDI:
|
256 | 31b87f2e | balrog | s->kpkdi = value; |
257 | 31b87f2e | balrog | break;
|
258 | 31b87f2e | balrog | |
259 | 31b87f2e | balrog | default:
|
260 | 31b87f2e | balrog | cpu_abort(cpu_single_env, "%s: Bad offset " REG_FMT "\n", |
261 | 31b87f2e | balrog | __FUNCTION__, offset); |
262 | 31b87f2e | balrog | } |
263 | 31b87f2e | balrog | } |
264 | 31b87f2e | balrog | |
265 | 31b87f2e | balrog | static CPUReadMemoryFunc *pxa2xx_keypad_readfn[] = {
|
266 | 31b87f2e | balrog | pxa2xx_keypad_read, |
267 | 31b87f2e | balrog | pxa2xx_keypad_read, |
268 | 31b87f2e | balrog | pxa2xx_keypad_read |
269 | 31b87f2e | balrog | }; |
270 | 31b87f2e | balrog | |
271 | 31b87f2e | balrog | static CPUWriteMemoryFunc *pxa2xx_keypad_writefn[] = {
|
272 | 31b87f2e | balrog | pxa2xx_keypad_write, |
273 | 31b87f2e | balrog | pxa2xx_keypad_write, |
274 | 31b87f2e | balrog | pxa2xx_keypad_write |
275 | 31b87f2e | balrog | }; |
276 | 31b87f2e | balrog | |
277 | 31b87f2e | balrog | static void pxa2xx_keypad_save(QEMUFile *f, void *opaque) |
278 | 31b87f2e | balrog | { |
279 | 31b87f2e | balrog | struct pxa2xx_keypad_s *s = (struct pxa2xx_keypad_s *) opaque; |
280 | 31b87f2e | balrog | |
281 | 31b87f2e | balrog | qemu_put_be32s(f, &s->kpc); |
282 | 31b87f2e | balrog | qemu_put_be32s(f, &s->kpdk); |
283 | 31b87f2e | balrog | qemu_put_be32s(f, &s->kprec); |
284 | 31b87f2e | balrog | qemu_put_be32s(f, &s->kpmk); |
285 | 31b87f2e | balrog | qemu_put_be32s(f, &s->kpas); |
286 | 31b87f2e | balrog | qemu_put_be32s(f, &s->kpasmkp0); |
287 | 31b87f2e | balrog | qemu_put_be32s(f, &s->kpasmkp1); |
288 | 31b87f2e | balrog | qemu_put_be32s(f, &s->kpasmkp2); |
289 | 31b87f2e | balrog | qemu_put_be32s(f, &s->kpasmkp3); |
290 | 31b87f2e | balrog | qemu_put_be32s(f, &s->kpkdi); |
291 | 31b87f2e | balrog | |
292 | 31b87f2e | balrog | } |
293 | 31b87f2e | balrog | |
294 | 31b87f2e | balrog | static int pxa2xx_keypad_load(QEMUFile *f, void *opaque, int version_id) |
295 | 31b87f2e | balrog | { |
296 | 31b87f2e | balrog | struct pxa2xx_keypad_s *s = (struct pxa2xx_keypad_s *) opaque; |
297 | 31b87f2e | balrog | |
298 | 31b87f2e | balrog | qemu_get_be32s(f, &s->kpc); |
299 | 31b87f2e | balrog | qemu_get_be32s(f, &s->kpdk); |
300 | 31b87f2e | balrog | qemu_get_be32s(f, &s->kprec); |
301 | 31b87f2e | balrog | qemu_get_be32s(f, &s->kpmk); |
302 | 31b87f2e | balrog | qemu_get_be32s(f, &s->kpas); |
303 | 31b87f2e | balrog | qemu_get_be32s(f, &s->kpasmkp0); |
304 | 31b87f2e | balrog | qemu_get_be32s(f, &s->kpasmkp1); |
305 | 31b87f2e | balrog | qemu_get_be32s(f, &s->kpasmkp2); |
306 | 31b87f2e | balrog | qemu_get_be32s(f, &s->kpasmkp3); |
307 | 31b87f2e | balrog | qemu_get_be32s(f, &s->kpkdi); |
308 | 31b87f2e | balrog | |
309 | 31b87f2e | balrog | return 0; |
310 | 31b87f2e | balrog | } |
311 | 31b87f2e | balrog | |
312 | 31b87f2e | balrog | struct pxa2xx_keypad_s *pxa27x_keypad_init(target_phys_addr_t base,
|
313 | 31b87f2e | balrog | qemu_irq irq) |
314 | 31b87f2e | balrog | { |
315 | 31b87f2e | balrog | int iomemtype;
|
316 | 31b87f2e | balrog | struct pxa2xx_keypad_s *s;
|
317 | 31b87f2e | balrog | |
318 | 31b87f2e | balrog | s = (struct pxa2xx_keypad_s *) qemu_mallocz(sizeof(struct pxa2xx_keypad_s)); |
319 | 31b87f2e | balrog | s->base = base; |
320 | 31b87f2e | balrog | s->irq = irq; |
321 | 31b87f2e | balrog | |
322 | 31b87f2e | balrog | iomemtype = cpu_register_io_memory(0, pxa2xx_keypad_readfn,
|
323 | 31b87f2e | balrog | pxa2xx_keypad_writefn, s); |
324 | bd464c2e | balrog | cpu_register_physical_memory(base, 0x00100000, iomemtype);
|
325 | 31b87f2e | balrog | |
326 | 31b87f2e | balrog | register_savevm("pxa2xx_keypad", 0, 0, |
327 | 31b87f2e | balrog | pxa2xx_keypad_save, pxa2xx_keypad_load, s); |
328 | 31b87f2e | balrog | |
329 | 31b87f2e | balrog | return s;
|
330 | 31b87f2e | balrog | } |
331 | 31b87f2e | balrog | |
332 | 31b87f2e | balrog | void pxa27x_register_keypad(struct pxa2xx_keypad_s *kp, struct keymap *map, |
333 | 31b87f2e | balrog | int size)
|
334 | 31b87f2e | balrog | { |
335 | bd464c2e | balrog | if(!map || size < 0x80) { |
336 | 31b87f2e | balrog | fprintf(stderr, "%s - No PXA keypad map defined\n", __FUNCTION__);
|
337 | 31b87f2e | balrog | exit(-1);
|
338 | 31b87f2e | balrog | } |
339 | 31b87f2e | balrog | |
340 | 31b87f2e | balrog | kp->map = map; |
341 | 31b87f2e | balrog | qemu_add_kbd_event_handler((QEMUPutKBDEvent *) pxa27x_keyboard_event, kp); |
342 | 31b87f2e | balrog | } |