Changeset 27ed3edd in mainline
- Timestamp:
- 2012-02-14T23:57:35Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1402402
- Parents:
- a31aad1
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/mips32/src/mips32.c
ra31aad1 r27ed3edd 196 196 sysinfo_set_item_val("kbd", NULL, true); 197 197 sysinfo_set_item_val("kbd.inr", NULL, MSIM_KBD_IRQ); 198 sysinfo_set_item_val("kbd.address.virtual", NULL, MSIM_KBD_ADDRESS); 198 sysinfo_set_item_val("kbd.address.physical", NULL, 199 PA2KA(MSIM_KBD_ADDRESS)); 199 200 #endif 200 201 } -
uspace/srv/hid/input/port/msim.c
ra31aad1 r27ed3edd 57 57 static kbd_dev_t *kbd_dev; 58 58 59 static irq_pio_range_t msim_ranges[] = { 60 { 61 .base = 0, 62 .size = 1 63 } 64 }; 65 59 66 static irq_cmd_t msim_cmds[] = { 60 67 { … … 69 76 70 77 static irq_code_t msim_kbd = { 71 0, // FIXME72 NULL, // FIXME78 sizeof(msim_ranges) / sizeof(irq_pio_range_t), 79 msim_ranges, 73 80 sizeof(msim_cmds) / sizeof(irq_cmd_t), 74 81 msim_cmds … … 81 88 kbd_dev = kdev; 82 89 83 sysarg_t vaddr;84 if (sysinfo_get_value("kbd.address. virtual", &vaddr) != EOK)90 sysarg_t paddr; 91 if (sysinfo_get_value("kbd.address.physical", &paddr) != EOK) 85 92 return -1; 86 93 … … 89 96 return -1; 90 97 91 msim_cmds[0].addr = (void *) vaddr; 98 msim_ranges[0].base = paddr; 99 msim_cmds[0].addr = (void *) paddr; 92 100 async_set_interrupt_received(msim_irq_handler); 93 101 irq_register(inr, device_assign_devno(), 0, &msim_kbd);
Note:
See TracChangeset
for help on using the changeset viewer.