Rev 1713 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1713 | Rev 1720 | ||
---|---|---|---|
Line 263... | Line 263... | ||
263 | irq_code_t i8042_kbd = { |
263 | irq_code_t i8042_kbd = { |
264 | 2, |
264 | 2, |
265 | i8042_cmds |
265 | i8042_cmds |
266 | }; |
266 | }; |
267 | 267 | ||
268 | static int key_released(keybuffer_t *keybuffer, unsigned char key) |
268 | static void key_released(keybuffer_t *keybuffer, unsigned char key) |
269 | { |
269 | { |
270 | switch (key) { |
270 | switch (key) { |
271 | case SC_LSHIFT: |
271 | case SC_LSHIFT: |
272 | case SC_RSHIFT: |
272 | case SC_RSHIFT: |
273 | keyflags &= ~PRESSED_SHIFT; |
273 | keyflags &= ~PRESSED_SHIFT; |
Line 282... | Line 282... | ||
282 | default: |
282 | default: |
283 | break; |
283 | break; |
284 | } |
284 | } |
285 | } |
285 | } |
286 | 286 | ||
287 | static int key_pressed(keybuffer_t *keybuffer, unsigned char key) |
287 | static void key_pressed(keybuffer_t *keybuffer, unsigned char key) |
288 | { |
288 | { |
289 | int *map = sc_primary_map; |
289 | int *map = sc_primary_map; |
290 | int ascii = sc_primary_map[key]; |
290 | int ascii = sc_primary_map[key]; |
291 | int shift, capslock; |
291 | int shift, capslock; |
292 | int letter = 0; |
292 | int letter = 0; |
Line 388... | Line 388... | ||
388 | /** Register uspace irq handler |
388 | /** Register uspace irq handler |
389 | * @return |
389 | * @return |
390 | */ |
390 | */ |
391 | int kbd_arch_init(void) |
391 | int kbd_arch_init(void) |
392 | { |
392 | { |
393 | int rc1, i; |
393 | int i; |
394 | int mouseenabled = 0; |
394 | int mouseenabled = 0; |
395 | 395 | ||
396 | iospace_enable(task_get_id(),(void *)i8042_DATA, 5); |
396 | iospace_enable(task_get_id(),(void *)i8042_DATA, 5); |
397 | /* Disable kbd, enable mouse */ |
397 | /* Disable kbd, enable mouse */ |
398 | i8042_command_write(i8042_CMD_KBD); |
398 | i8042_command_write(i8042_CMD_KBD); |