Changeset 1875a0c in mainline for uspace/srv/hid/input/ctl
- Timestamp:
- 2011-06-21T19:10:20Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 022d9f67
- Parents:
- a9d85df
- Location:
- uspace/srv/hid/input/ctl
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/input/ctl/apple.c
ra9d85df r1875a0c 33 33 /** 34 34 * @file 35 * @brief 35 * @brief Apple ADB keyboard controller driver. 36 36 */ 37 37 … … 42 42 #include <kbd_port.h> 43 43 44 static void apple_ctl_parse _scancode(int);44 static void apple_ctl_parse(sysarg_t); 45 45 static int apple_ctl_init(kbd_dev_t *); 46 static void apple_ctl_set_ind(kbd_dev_t *, unsigned );46 static void apple_ctl_set_ind(kbd_dev_t *, unsigned int); 47 47 48 48 kbd_ctl_ops_t apple_ctl = { 49 .parse _scancode = apple_ctl_parse_scancode,49 .parse = apple_ctl_parse, 50 50 .init = apple_ctl_init, 51 51 .set_ind = apple_ctl_set_ind … … 64 64 } 65 65 66 static void apple_ctl_parse _scancode(int scancode)66 static void apple_ctl_parse(sysarg_t scancode) 67 67 { 68 68 kbd_event_type_t type; 69 69 unsigned int key; 70 70 71 if (scancode < 0 || scancode>= 0x100)71 if (scancode >= 0x100) 72 72 return; 73 73 … … 81 81 key = scanmap[scancode]; 82 82 if (key != 0) 83 kbd_push_ev (kbd_dev, type, key);83 kbd_push_event(kbd_dev, type, key); 84 84 } 85 85 -
uspace/srv/hid/input/ctl/gxe_fb.c
ra9d85df r1875a0c 44 44 #include <stroke.h> 45 45 46 static void gxe_fb_ctl_parse _scancode(int);46 static void gxe_fb_ctl_parse(sysarg_t); 47 47 static int gxe_fb_ctl_init(kbd_dev_t *); 48 static void gxe_fb_ctl_set_ind(kbd_dev_t *, unsigned );48 static void gxe_fb_ctl_set_ind(kbd_dev_t *, unsigned int); 49 49 50 50 kbd_ctl_ops_t gxe_fb_ctl = { 51 .parse _scancode = gxe_fb_ctl_parse_scancode,51 .parse = gxe_fb_ctl_parse, 52 52 .init = gxe_fb_ctl_init, 53 53 .set_ind = gxe_fb_ctl_set_ind … … 229 229 } 230 230 231 static void gxe_fb_ctl_parse _scancode(int scancode)231 static void gxe_fb_ctl_parse(sysarg_t scancode) 232 232 { 233 233 unsigned mods, key; -
uspace/srv/hid/input/ctl/kbdev.c
ra9d85df r1875a0c 53 53 54 54 static int kbdev_ctl_init(kbd_dev_t *); 55 static void kbdev_ctl_set_ind(kbd_dev_t *, unsigned );55 static void kbdev_ctl_set_ind(kbd_dev_t *, unsigned int); 56 56 57 57 static void kbdev_callback_conn(ipc_callid_t, ipc_call_t *, void *arg); 58 58 59 59 kbd_ctl_ops_t kbdev_ctl = { 60 .parse _scancode= NULL,60 .parse = NULL, 61 61 .init = kbdev_ctl_init, 62 62 .set_ind = kbdev_ctl_set_ind … … 116 116 sess = fd_session(EXCHANGE_SERIALIZE, fd); 117 117 if (sess == NULL) { 118 printf( NAME ": Failed starting session with '%s'\n", pathname);118 printf("%s: Failed starting session with '%s'\n", NAME, pathname); 119 119 close(fd); 120 120 return -1; … … 123 123 kbdev = kbdev_new(kdev); 124 124 if (kbdev == NULL) { 125 printf( NAME ": Failed allocating device structure for '%s'.\n",126 pathname);125 printf("%s: Failed allocating device structure for '%s'.\n", 126 NAME, pathname); 127 127 return -1; 128 128 } … … 133 133 exch = async_exchange_begin(sess); 134 134 if (exch == NULL) { 135 printf( NAME ": Failed starting exchange with '%s'.\n", pathname);135 printf("%s: Failed starting exchange with '%s'.\n", NAME, pathname); 136 136 kbdev_destroy(kbdev); 137 137 return -1; … … 140 140 rc = async_connect_to_me(exch, 0, 0, 0, kbdev_callback_conn, kbdev); 141 141 if (rc != EOK) { 142 printf( NAME ": Failed creating callback connection from '%s'.\n",143 pathname);142 printf("%s: Failed creating callback connection from '%s'.\n", 143 NAME, pathname); 144 144 async_exchange_end(exch); 145 145 kbdev_destroy(kbdev); … … 193 193 type = IPC_GET_ARG1(call); 194 194 key = IPC_GET_ARG2(call); 195 kbd_push_ev (kbdev->kbd_dev, type, key);195 kbd_push_event(kbdev->kbd_dev, type, key); 196 196 break; 197 197 default: -
uspace/srv/hid/input/ctl/pc.c
ra9d85df r1875a0c 43 43 #include <gsp.h> 44 44 45 static void pc_ctl_parse _scancode(int);45 static void pc_ctl_parse(sysarg_t); 46 46 static int pc_ctl_init(kbd_dev_t *); 47 static void pc_ctl_set_ind(kbd_dev_t *, unsigned );47 static void pc_ctl_set_ind(kbd_dev_t *, unsigned int); 48 48 49 49 kbd_ctl_ops_t pc_ctl = { 50 .parse _scancode = pc_ctl_parse_scancode,50 .parse = pc_ctl_parse, 51 51 .init = pc_ctl_init, 52 52 .set_ind = pc_ctl_set_ind … … 215 215 } 216 216 217 static void pc_ctl_parse _scancode(int scancode)217 static void pc_ctl_parse(sysarg_t scancode) 218 218 { 219 219 kbd_event_type_t type; … … 257 257 } 258 258 259 if ((s cancode < 0) || ((size_t) scancode >= map_length))259 if ((size_t) scancode >= map_length) 260 260 return; 261 261 262 262 key = map[scancode]; 263 263 if (key != 0) 264 kbd_push_ev (kbd_dev, type, key);264 kbd_push_event(kbd_dev, type, key); 265 265 } 266 266 -
uspace/srv/hid/input/ctl/stty.c
ra9d85df r1875a0c 33 33 /** 34 34 * @file 35 * @brief 35 * @brief Serial TTY-like keyboard controller driver. 36 36 */ 37 37 … … 43 43 #include <stroke.h> 44 44 45 static void stty_ctl_parse _scancode(int);45 static void stty_ctl_parse(sysarg_t); 46 46 static int stty_ctl_init(kbd_dev_t *); 47 static void stty_ctl_set_ind(kbd_dev_t *, unsigned );47 static void stty_ctl_set_ind(kbd_dev_t *, unsigned int); 48 48 49 49 kbd_ctl_ops_t stty_ctl = { 50 .parse _scancode = stty_ctl_parse_scancode,50 .parse = stty_ctl_parse, 51 51 .init = stty_ctl_init, 52 52 .set_ind = stty_ctl_set_ind … … 228 228 } 229 229 230 static void stty_ctl_parse _scancode(int scancode)230 static void stty_ctl_parse(sysarg_t scancode) 231 231 { 232 232 unsigned mods, key; -
uspace/srv/hid/input/ctl/sun.c
ra9d85df r1875a0c 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 _scancode(int);45 static void sun_ctl_parse(sysarg_t); 46 46 static int sun_ctl_init(kbd_dev_t *); 47 static void sun_ctl_set_ind(kbd_dev_t *, unsigned );47 static void sun_ctl_set_ind(kbd_dev_t *, unsigned int); 48 48 49 49 kbd_ctl_ops_t sun_ctl = { 50 .parse _scancode = sun_ctl_parse_scancode,50 .parse = sun_ctl_parse, 51 51 .init = sun_ctl_init, 52 52 .set_ind = sun_ctl_set_ind … … 66 66 } 67 67 68 static void sun_ctl_parse _scancode(int scancode)68 static void sun_ctl_parse(sysarg_t scancode) 69 69 { 70 70 kbd_event_type_t type; 71 71 unsigned int key; 72 72 73 if (scancode < 0 || scancode>= 0x100)73 if (scancode >= 0x100) 74 74 return; 75 75 … … 86 86 key = scanmap_simple[scancode]; 87 87 if (key != 0) 88 kbd_push_ev (kbd_dev, type, key);88 kbd_push_event(kbd_dev, type, key); 89 89 } 90 90
Note:
See TracChangeset
for help on using the changeset viewer.