Rev 3924 | Rev 3961 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3924 | Rev 3925 | ||
---|---|---|---|
Line 29... | Line 29... | ||
29 | /** @addtogroup kbd_port |
29 | /** @addtogroup kbd_port |
30 | * @ingroup kbd |
30 | * @ingroup kbd |
31 | * @{ |
31 | * @{ |
32 | */ |
32 | */ |
33 | /** @file |
33 | /** @file |
34 | * @brief Z8350 keyboard port driver. |
34 | * @brief Z8530 keyboard port driver. |
35 | */ |
35 | */ |
36 | 36 | ||
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> |
Line 59... | Line 59... | ||
59 | 59 | ||
60 | static void z8530_irq_handler(ipc_callid_t iid, ipc_call_t *call); |
60 | static void z8530_irq_handler(ipc_callid_t iid, ipc_call_t *call); |
61 | 61 | ||
62 | int kbd_port_init(void) |
62 | int kbd_port_init(void) |
63 | { |
63 | { |
64 | async_set_interrupt_received(z8350_irq_handler); |
64 | async_set_interrupt_received(z8530_irq_handler); |
65 | z8530_cmds[0].addr = (void *) sysinfo_value("kbd.address.virtual") + 6; |
65 | z8530_cmds[0].addr = (void *) sysinfo_value("kbd.address.virtual") + 6; |
66 | ipc_register_irq(sysinfo_value("kbd.inr"), sysinfo_value("kbd.devno"), |
66 | ipc_register_irq(sysinfo_value("kbd.inr"), sysinfo_value("kbd.devno"), |
67 | 0, &z8530_kbd); |
67 | 0, &z8530_kbd); |
68 | return 0; |
68 | return 0; |
69 | } |
69 | } |