Changeset 9be360ee in mainline for uspace/srv/hid/kbd/ctl/pc.c
- Timestamp:
- 2011-06-11T22:06:47Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4f3f9659
- Parents:
- 56ad818
- File:
-
- 1 edited
-
uspace/srv/hid/kbd/ctl/pc.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/kbd/ctl/pc.c
r56ad818 r9be360ee 1 1 /* 2 * Copyright (c) 20 09Jiri Svoboda2 * Copyright (c) 2011 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 43 43 #include <gsp.h> 44 44 45 static void pc_ctl_parse_scancode(int scancode);46 static int pc_ctl_init(kbd_ port_ops_t *kbd_port);47 static void pc_ctl_set_ind(unsigned mods);45 static void pc_ctl_parse_scancode(int); 46 static int pc_ctl_init(kbd_dev_t *); 47 static void pc_ctl_set_ind(unsigned); 48 48 49 49 kbd_ctl_ops_t pc_ctl = { … … 74 74 75 75 static enum dec_state ds; 76 static kbd_ port_ops_t *kbd_port;76 static kbd_dev_t *kbd_dev; 77 77 78 78 static int scanmap_simple[] = { … … 208 208 }; 209 209 210 static int pc_ctl_init(kbd_ port_ops_t *kbd_p)210 static int pc_ctl_init(kbd_dev_t *kdev) 211 211 { 212 kbd_ port = kbd_p;212 kbd_dev = kdev; 213 213 ds = ds_s; 214 214 return 0; … … 262 262 key = map[scancode]; 263 263 if (key != 0) 264 kbd_push_ev( type, key);264 kbd_push_ev(kbd_dev, type, key); 265 265 } 266 266 … … 277 277 b = b | LI_SCROLL; 278 278 279 (*kbd_ port->write)(KBD_CMD_SET_LEDS);280 (*kbd_ port->write)(b);279 (*kbd_dev->port_ops->write)(KBD_CMD_SET_LEDS); 280 (*kbd_dev->port_ops->write)(b); 281 281 } 282 282
Note:
See TracChangeset
for help on using the changeset viewer.
