Subversion Repositories HelenOS

Rev

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

Rev 3955 Rev 4148
Line 37... Line 37...
37
#include <ipc/ipc.h>
37
#include <ipc/ipc.h>
38
#include <async.h>
38
#include <async.h>
39
#include <sysinfo.h>
39
#include <sysinfo.h>
40
#include <kbd_port.h>
40
#include <kbd_port.h>
41
#include <kbd.h>
41
#include <kbd.h>
-
 
42
#include <ddi.h>
42
 
43
 
43
irq_cmd_t msim_cmds[] = {
44
irq_cmd_t msim_cmds[] = {
44
    {
45
    {
45
        .cmd = CMD_PIO_READ_8,
46
        .cmd = CMD_PIO_READ_8,
46
        .addr = (void *) 0, /* will be patched in run-time */
47
        .addr = (void *) 0, /* will be patched in run-time */
Line 61... Line 62...
61
 
62
 
62
int kbd_port_init(void)
63
int kbd_port_init(void)
63
{
64
{
64
    async_set_interrupt_received(msim_irq_handler);
65
    async_set_interrupt_received(msim_irq_handler);
65
    msim_cmds[0].addr = sysinfo_value("kbd.address.virtual");
66
    msim_cmds[0].addr = sysinfo_value("kbd.address.virtual");
66
    ipc_register_irq(sysinfo_value("kbd.inr"), sysinfo_value("kbd.devno"),
67
    ipc_register_irq(sysinfo_value("kbd.inr"), device_assign_devno(),
67
        0, &msim_kbd);
68
        0, &msim_kbd);
68
    return 0;
69
    return 0;
69
}
70
}
70
 
71
 
71
static void msim_irq_handler(ipc_callid_t iid, ipc_call_t *call)
72
static void msim_irq_handler(ipc_callid_t iid, ipc_call_t *call)