Subversion Repositories HelenOS

Rev

Rev 4026 | Rev 4284 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4026 Rev 4148
Line 97... Line 97...
97
 
97
 
98
    ns16550_physical = sysinfo_value("kbd.address.physical");
98
    ns16550_physical = sysinfo_value("kbd.address.physical");
99
    ns16550_kernel = sysinfo_value("kbd.address.kernel");
99
    ns16550_kernel = sysinfo_value("kbd.address.kernel");
100
    ns16550_kbd.cmds[0].addr = (void *) (ns16550_kernel + LSR_REG);
100
    ns16550_kbd.cmds[0].addr = (void *) (ns16550_kernel + LSR_REG);
101
    ns16550_kbd.cmds[3].addr = (void *) (ns16550_kernel + RBR_REG);
101
    ns16550_kbd.cmds[3].addr = (void *) (ns16550_kernel + RBR_REG);
102
    ipc_register_irq(sysinfo_value("kbd.inr"), sysinfo_value("kbd.devno"),
102
    ipc_register_irq(sysinfo_value("kbd.inr"), device_assign_devno(),
103
        0, &ns16550_kbd);
103
        0, &ns16550_kbd);
104
    return pio_enable((void *) ns16550_physical, 8, &vaddr);
104
    return pio_enable((void *) ns16550_physical, 8, &vaddr);
105
}
105
}
106
 
106
 
107
static void ns16550_irq_handler(ipc_callid_t iid, ipc_call_t *call)
107
static void ns16550_irq_handler(ipc_callid_t iid, ipc_call_t *call)