Rev 3831 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3831 | Rev 3882 | ||
---|---|---|---|
Line 38... | Line 38... | ||
38 | #include <ipc/ipc.h> |
38 | #include <ipc/ipc.h> |
39 | #include <sysinfo.h> |
39 | #include <sysinfo.h> |
40 | #include <kbd.h> |
40 | #include <kbd.h> |
41 | #include <keys.h> |
41 | #include <keys.h> |
42 | 42 | ||
43 | irq_cmd_t cuda_cmds[1] = { |
- | |
44 | { CMD_PPC32_GETCHAR, 0, 0, 2 } |
- | |
45 | }; |
- | |
46 | - | ||
47 | irq_code_t cuda_kbd = { |
- | |
48 | 1, |
- | |
49 | cuda_cmds |
- | |
50 | }; |
- | |
51 | - | ||
52 | 43 | ||
53 | #define SPECIAL 255 |
44 | #define SPECIAL 255 |
54 | #define FUNCTION_KEYS 0x100 |
45 | #define FUNCTION_KEYS 0x100 |
55 | 46 | ||
56 | 47 | ||
Line 184... | Line 175... | ||
184 | int kbd_arch_init(void) |
175 | int kbd_arch_init(void) |
185 | { |
176 | { |
186 | if (!sysinfo_value("kbd")) |
177 | if (!sysinfo_value("kbd")) |
187 | return 0; |
178 | return 0; |
188 | 179 | ||
189 | return ipc_register_irq(sysinfo_value("kbd.inr"), sysinfo_value("kbd.devno"), 0, &cuda_kbd); |
180 | return ipc_register_irq(sysinfo_value("kbd.inr"), sysinfo_value("kbd.devno"), 0, 0); |
190 | } |
181 | } |
191 | 182 | ||
192 | 183 | ||
193 | int kbd_arch_process(keybuffer_t *keybuffer, ipc_call_t *call) |
184 | int kbd_arch_process(keybuffer_t *keybuffer, ipc_call_t *call) |
194 | { |
185 | { |