Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/input/port/msim.c

    r27ed3edd r1875a0c  
    5757static kbd_dev_t *kbd_dev;
    5858
    59 static irq_pio_range_t msim_ranges[] = {
    60         {
    61                 .base = 0,
    62                 .size = 1
    63         }
    64 };
    65 
    6659static irq_cmd_t msim_cmds[] = {
    6760        {
     
    7669
    7770static irq_code_t msim_kbd = {
    78         sizeof(msim_ranges) / sizeof(irq_pio_range_t),
    79         msim_ranges,
    8071        sizeof(msim_cmds) / sizeof(irq_cmd_t),
    8172        msim_cmds
     
    8879        kbd_dev = kdev;
    8980
    90         sysarg_t paddr;
    91         if (sysinfo_get_value("kbd.address.physical", &paddr) != EOK)
     81        sysarg_t vaddr;
     82        if (sysinfo_get_value("kbd.address.virtual", &vaddr) != EOK)
    9283                return -1;
    9384       
     
    9687                return -1;
    9788       
    98         msim_ranges[0].base = paddr;
    99         msim_cmds[0].addr = (void *) paddr;
     89        msim_cmds[0].addr = (void *) vaddr;
    10090        async_set_interrupt_received(msim_irq_handler);
    101         irq_register(inr, device_assign_devno(), 0, &msim_kbd);
     91        register_irq(inr, device_assign_devno(), 0, &msim_kbd);
    10292       
    10393        return 0;
Note: See TracChangeset for help on using the changeset viewer.