Changeset 1402402 in mainline for uspace/srv/hid/input/port/gxemul.c
- Timestamp:
- 2012-02-14T23:58:33Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 21063c2
- Parents:
- 27ed3edd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/input/port/gxemul.c
r27ed3edd r1402402 57 57 static kbd_dev_t *kbd_dev; 58 58 59 static irq_pio_range_t gxemul_ranges[] = { 60 { 61 .base = 0, 62 .size = 1 63 } 64 }; 65 59 66 static irq_cmd_t gxemul_cmds[] = { 60 67 { … … 69 76 70 77 static irq_code_t gxemul_kbd = { 71 0, // FIXME72 NULL, // FIXME78 sizeof(gxemul_ranges) / sizeof(irq_pio_range_t), 79 gxemul_ranges, 73 80 sizeof(gxemul_cmds) / sizeof(irq_cmd_t), 74 81 gxemul_cmds … … 83 90 84 91 sysarg_t addr; 85 if (sysinfo_get_value("kbd.address. virtual", &addr) != EOK)92 if (sysinfo_get_value("kbd.address.physical", &addr) != EOK) 86 93 return -1; 87 94 … … 91 98 92 99 async_set_interrupt_received(gxemul_irq_handler); 100 gxemul_ranges[0].base = addr; 93 101 gxemul_cmds[0].addr = (void *) addr; 94 102 irq_register(inr, device_assign_devno(), 0, &gxemul_kbd);
Note:
See TracChangeset
for help on using the changeset viewer.