Changes in uspace/srv/hid/input/port/gxemul.c [1402402:1875a0c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/input/port/gxemul.c
r1402402 r1875a0c 57 57 static kbd_dev_t *kbd_dev; 58 58 59 static irq_pio_range_t gxemul_ranges[] = {60 {61 .base = 0,62 .size = 163 }64 };65 66 59 static irq_cmd_t gxemul_cmds[] = { 67 60 { … … 76 69 77 70 static irq_code_t gxemul_kbd = { 78 sizeof(gxemul_ranges) / sizeof(irq_pio_range_t),79 gxemul_ranges,80 71 sizeof(gxemul_cmds) / sizeof(irq_cmd_t), 81 72 gxemul_cmds … … 90 81 91 82 sysarg_t addr; 92 if (sysinfo_get_value("kbd.address. physical", &addr) != EOK)83 if (sysinfo_get_value("kbd.address.virtual", &addr) != EOK) 93 84 return -1; 94 85 … … 98 89 99 90 async_set_interrupt_received(gxemul_irq_handler); 100 gxemul_ranges[0].base = addr;101 91 gxemul_cmds[0].addr = (void *) addr; 102 irq_register(inr, device_assign_devno(), 0, &gxemul_kbd);92 register_irq(inr, device_assign_devno(), 0, &gxemul_kbd); 103 93 return 0; 104 94 }
Note:
See TracChangeset
for help on using the changeset viewer.