Changes in uspace/srv/hid/kbd/port/msim.c [d9fae235:36e9cd1] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/kbd/port/msim.c
rd9fae235 r36e9cd1 30 30 * @ingroup kbd 31 31 * @{ 32 */ 32 */ 33 33 /** @file 34 * @brief 34 * @brief Msim keyboard port driver. 35 35 */ 36 36 … … 41 41 #include <kbd.h> 42 42 #include <ddi.h> 43 #include <errno.h>44 43 45 44 irq_cmd_t msim_cmds[] = { … … 64 63 int kbd_port_init(void) 65 64 { 66 sysarg_t vaddr;67 if (sysinfo_get_value("kbd.address.virtual", &vaddr) != EOK)68 return -1;69 70 sysarg_t inr;71 if (sysinfo_get_value("kbd.inr", &inr) != EOK)72 return -1;73 74 msim_cmds[0].addr = (void *) vaddr;75 65 async_set_interrupt_received(msim_irq_handler); 76 ipc_register_irq(inr, device_assign_devno(), 0, &msim_kbd); 77 66 msim_cmds[0].addr = (void *) sysinfo_value("kbd.address.virtual"); 67 ipc_register_irq(sysinfo_value("kbd.inr"), device_assign_devno(), 68 0, &msim_kbd); 78 69 return 0; 79 70 }
Note:
See TracChangeset
for help on using the changeset viewer.