Changes in uspace/srv/hid/input/ctl/sun.c [1875a0c:60e5a856] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/input/ctl/sun.c
r1875a0c r60e5a856 34 34 /** 35 35 * @file 36 * @brief 36 * @brief Sun keyboard controller driver. 37 37 */ 38 38 … … 43 43 #include <kbd_port.h> 44 44 45 static void sun_ctl_parse (sysarg_t);45 static void sun_ctl_parse_scancode(int); 46 46 static int sun_ctl_init(kbd_dev_t *); 47 static void sun_ctl_set_ind(kbd_dev_t *, unsigned int);47 static void sun_ctl_set_ind(kbd_dev_t *, unsigned); 48 48 49 49 kbd_ctl_ops_t sun_ctl = { 50 .parse = sun_ctl_parse,50 .parse_scancode = sun_ctl_parse_scancode, 51 51 .init = sun_ctl_init, 52 52 .set_ind = sun_ctl_set_ind … … 66 66 } 67 67 68 static void sun_ctl_parse (sysarg_t scancode)68 static void sun_ctl_parse_scancode(int scancode) 69 69 { 70 70 kbd_event_type_t type; 71 71 unsigned int key; 72 72 73 if (scancode >= 0x100)73 if (scancode < 0 || scancode >= 0x100) 74 74 return; 75 75 … … 86 86 key = scanmap_simple[scancode]; 87 87 if (key != 0) 88 kbd_push_ev ent(kbd_dev, type, key);88 kbd_push_ev(kbd_dev, type, key); 89 89 } 90 90
Note:
See TracChangeset
for help on using the changeset viewer.