Rev 1874 | Rev 2071 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1874 | Rev 1942 | ||
---|---|---|---|
Line 65... | Line 65... | ||
65 | }; |
65 | }; |
66 | 66 | ||
67 | int kbd_arch_init(void) |
67 | int kbd_arch_init(void) |
68 | { |
68 | { |
69 | if (sysinfo_value("kbd")) { |
69 | if (sysinfo_value("kbd")) { |
70 | ipc_register_irq(sysinfo_value("kbd.irq"), &ski_kbd); |
70 | ipc_register_irq(sysinfo_value("kbd.inr"), sysinfo_value("kbd.devno"), 0, &ski_kbd); |
71 | return 0; |
71 | return 0; |
72 | } |
72 | } |
73 | return 1; |
73 | return 1; |
74 | } |
74 | } |
75 | 75 | ||
Line 82... | Line 82... | ||
82 | } |
82 | } |
83 | */ |
83 | */ |
84 | 84 | ||
85 | int kbd_arch_process(keybuffer_t *keybuffer, ipc_call_t *call) |
85 | int kbd_arch_process(keybuffer_t *keybuffer, ipc_call_t *call) |
86 | { |
86 | { |
87 | static unsigned long long buf=0; |
87 | static unsigned long long buf = 0; |
88 | static int count=0; |
88 | static int count = 0; |
89 | static int esc_count=0; |
89 | static int esc_count = 0; |
90 | int scan_code = IPC_GET_ARG2(*call); |
90 | int scan_code = IPC_GET_ARG2(*call); |
91 | 91 | ||
92 | /* |
92 | /* |
93 | * Please preserve this code (it can be used to determine scancodes) |
93 | * Please preserve this code (it can be used to determine scancodes) |
94 | */ |
94 | */ |