Rev 3618 | Rev 3742 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3618 | Rev 3665 | ||
---|---|---|---|
Line 143... | Line 143... | ||
143 | */ |
143 | */ |
144 | return; |
144 | return; |
145 | } |
145 | } |
146 | #endif |
146 | #endif |
147 | 147 | ||
- | 148 | #ifdef CONFIG_NS16550 |
|
- | 149 | #ifdef CONFIG_NS16550_INTERRUPT_DRIVEN |
|
- | 150 | if (kbd_type == KBD_NS16550) { |
|
- | 151 | /* |
|
- | 152 | * The ns16550 driver is interrupt-driven. |
|
- | 153 | */ |
|
- | 154 | return; |
|
- | 155 | } |
|
- | 156 | #endif |
|
- | 157 | #endif |
|
148 | while (1) { |
158 | while (1) { |
149 | #ifdef CONFIG_NS16550 |
159 | #ifdef CONFIG_NS16550 |
- | 160 | #ifndef CONFIG_NS16550_INTERRUPT_DRIVEN |
|
150 | if (kbd_type == KBD_NS16550) |
161 | if (kbd_type == KBD_NS16550) |
151 | ns16550_poll(); |
162 | ns16550_poll(); |
152 | #endif |
163 | #endif |
- | 164 | #endif |
|
153 | #ifdef CONFIG_SGCN |
165 | #ifdef CONFIG_SGCN |
154 | if (kbd_type == KBD_SGCN) |
166 | if (kbd_type == KBD_SGCN) |
155 | sgcn_poll(); |
167 | sgcn_poll(); |
156 | #endif |
168 | #endif |
157 | - | ||
158 | thread_usleep(KEYBOARD_POLL_PAUSE); |
169 | thread_usleep(KEYBOARD_POLL_PAUSE); |
159 | } |
170 | } |
160 | } |
171 | } |
161 | 172 | ||
162 | /** Acquire console back for kernel |
173 | /** Acquire console back for kernel |