Rev 1339 | Rev 1353 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1339 | Rev 1347 | ||
---|---|---|---|
Line 26... | Line 26... | ||
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | */ |
27 | */ |
28 | 28 | ||
29 | #include <arch/kbd.h> |
29 | #include <arch/kbd.h> |
30 | #include <ipc.h> |
30 | #include <ipc.h> |
- | 31 | #include <key_buffer.h> |
|
31 | 32 | ||
32 | irq_cmd_t msim_cmds[1] = { |
33 | irq_cmd_t msim_cmds[1] = { |
33 | { CMD_MEM_READ_1, (void *)0xB0000000, 0 } |
34 | { CMD_MEM_READ_1, (void *)0xB0000000, 0 } |
34 | }; |
35 | }; |
35 | 36 | ||
36 | irq_code_t msim_kbd = { |
37 | irq_code_t msim_kbd = { |
37 | 1, |
38 | 1, |
38 | msim_cmds |
39 | msim_cmds |
39 | }; |
40 | }; |
40 | 41 | ||
41 | void kbd_arch_init(void) |
42 | int kbd_arch_init(void) |
42 | { |
43 | { |
43 | ipc_register_irq(2, &msim_kbd); |
44 | ipc_register_irq(2, &msim_kbd); |
- | 45 | return 1; |
|
44 | } |
46 | } |
45 | 47 | ||
- | 48 | int kbd_arch_process(int scan_code) |
|
- | 49 | { |
|
- | 50 | key_buffer_push(scan_code); |
|
- | 51 | return 1; |
|
46 | 52 | } |