Rev 4153 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4153 | Rev 4327 | ||
---|---|---|---|
Line 38... | Line 38... | ||
38 | #include <ipc/bus.h> |
38 | #include <ipc/bus.h> |
39 | #include <async.h> |
39 | #include <async.h> |
40 | #include <sysinfo.h> |
40 | #include <sysinfo.h> |
41 | #include <kbd.h> |
41 | #include <kbd.h> |
42 | #include <kbd_port.h> |
42 | #include <kbd_port.h> |
- | 43 | #include <sun.h> |
|
43 | #include <sys/types.h> |
44 | #include <sys/types.h> |
44 | #include <ddi.h> |
45 | #include <ddi.h> |
45 | 46 | ||
46 | #define CHAN_A_STATUS 4 |
47 | #define CHAN_A_STATUS 4 |
47 | #define CHAN_A_DATA 6 |
48 | #define CHAN_A_DATA 6 |
Line 80... | Line 81... | ||
80 | z8530_cmds |
81 | z8530_cmds |
81 | }; |
82 | }; |
82 | 83 | ||
83 | static void z8530_irq_handler(ipc_callid_t iid, ipc_call_t *call); |
84 | static void z8530_irq_handler(ipc_callid_t iid, ipc_call_t *call); |
84 | 85 | ||
85 | int kbd_port_init(void) |
86 | int z8530_port_init(void) |
86 | { |
87 | { |
87 | async_set_interrupt_received(z8530_irq_handler); |
88 | async_set_interrupt_received(z8530_irq_handler); |
88 | z8530_cmds[0].addr = (void *) sysinfo_value("kbd.address.kernel") + |
89 | z8530_cmds[0].addr = (void *) sysinfo_value("kbd.address.kernel") + |
89 | CHAN_A_STATUS; |
90 | CHAN_A_STATUS; |
90 | z8530_cmds[3].addr = (void *) sysinfo_value("kbd.address.kernel") + |
91 | z8530_cmds[3].addr = (void *) sysinfo_value("kbd.address.kernel") + |