Rev 1841 | Rev 1844 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1841 | Rev 1842 | ||
|---|---|---|---|
| Line 35... | Line 35... | ||
| 35 | #include <arch/console.h> |
35 | #include <arch/console.h> |
| 36 | #include <arch/types.h> |
36 | #include <arch/types.h> |
| 37 | #include <typedefs.h> |
37 | #include <typedefs.h> |
| 38 | #include <genarch/fb/fb.h> |
38 | #include <genarch/fb/fb.h> |
| 39 | #include <arch/drivers/fb.h> |
39 | #include <arch/drivers/fb.h> |
| - | 40 | ||
| 40 | #include <arch/drivers/i8042.h> |
41 | #include <arch/drivers/kbd.h> |
| - | 42 | #ifdef CONFIG_Z8530 |
|
| 41 | #include <genarch/i8042/i8042.h> |
43 | #include <genarch/kbd/z8530.h> |
| - | 44 | #endif |
|
| - | 45 | #ifdef CONFIG_16550A |
|
| - | 46 | #include <genarch/kbd/16550a.h> |
|
| - | 47 | #endif |
|
| - | 48 | ||
| 42 | #include <console/chardev.h> |
49 | #include <console/chardev.h> |
| 43 | #include <console/console.h> |
50 | #include <console/console.h> |
| 44 | #include <arch/asm.h> |
51 | #include <arch/asm.h> |
| 45 | #include <arch/register.h> |
52 | #include <arch/register.h> |
| 46 | #include <proc/thread.h> |
53 | #include <proc/thread.h> |
| Line 69... | Line 76... | ||
| 69 | { |
76 | { |
| 70 | if (!bootinfo.keyboard.addr) |
77 | if (!bootinfo.keyboard.addr) |
| 71 | return; |
78 | return; |
| 72 | 79 | ||
| 73 | while (1) { |
80 | while (1) { |
| - | 81 | #ifdef CONFIG_Z8530 |
|
| 74 | i8042_poll(); |
82 | z8530_poll(); |
| - | 83 | #endif |
|
| - | 84 | #ifdef CONFIG_16550A |
|
| - | 85 | 16550a_poll(); |
|
| - | 86 | #endif |
|
| 75 | thread_usleep(KEYBOARD_POLL_PAUSE); |
87 | thread_usleep(KEYBOARD_POLL_PAUSE); |
| 76 | } |
88 | } |
| 77 | } |
89 | } |
| 78 | 90 | ||
| 79 | /** @} |
91 | /** @} |