Changeset 9be360ee in mainline for uspace/srv/hid/kbd/ctl/sun.c
- Timestamp:
- 2011-06-11T22:06:47Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4f3f9659
- Parents:
- 56ad818
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/kbd/ctl/sun.c
r56ad818 r9be360ee 1 1 /* 2 2 * Copyright (c) 2006 Jakub Jermar 3 * Copyright (c) 2011 Jiri Svoboda 3 4 * All rights reserved. 4 5 * … … 42 43 #include <kbd_port.h> 43 44 44 static void sun_ctl_parse_scancode(int scancode);45 static int sun_ctl_init(kbd_ port_ops_t *kbd_port);46 static void sun_ctl_set_ind(unsigned mods);45 static void sun_ctl_parse_scancode(int); 46 static int sun_ctl_init(kbd_dev_t *); 47 static void sun_ctl_set_ind(unsigned); 47 48 48 49 kbd_ctl_ops_t sun_ctl = { … … 52 53 }; 53 54 55 static kbd_dev_t *kbd_dev; 56 54 57 #define KBD_KEY_RELEASE 0x80 55 58 #define KBD_ALL_KEYS_UP 0x7f … … 57 60 static int scanmap_simple[]; 58 61 59 static int sun_ctl_init(kbd_ port_ops_t *kbd_port)62 static int sun_ctl_init(kbd_dev_t *kdev) 60 63 { 64 kbd_dev = kdev; 61 65 return 0; 62 66 } … … 82 86 key = scanmap_simple[scancode]; 83 87 if (key != 0) 84 kbd_push_ev( type, key);88 kbd_push_ev(kbd_dev, type, key); 85 89 } 86 90
Note:
See TracChangeset
for help on using the changeset viewer.