Rev 4342 | Rev 4344 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 4342 | Rev 4343 | ||
|---|---|---|---|
| Line 139... | Line 139... | ||
| 139 | */ |
139 | */ |
| 140 | void kkbdpoll(void *arg) |
140 | void kkbdpoll(void *arg) |
| 141 | { |
141 | { |
| 142 | thread_detach(THREAD); |
142 | thread_detach(THREAD); |
| 143 | 143 | ||
| 144 | #ifdef CONFIG_Z8530 |
- | |
| 145 | if (kbd_type == KBD_Z8530) { |
144 | if (kbd_type != KBD_SGCN) |
| 146 | /* |
- | |
| 147 | * The z8530 driver is interrupt-driven. |
- | |
| 148 | */ |
- | |
| 149 | return; |
145 | return; |
| 150 | } |
- | |
| 151 | #endif |
- | |
| 152 | 146 | ||
| 153 | #ifdef CONFIG_NS16550 |
- | |
| 154 | #ifdef CONFIG_NS16550_INTERRUPT_DRIVEN |
- | |
| 155 | if (kbd_type == KBD_NS16550) { |
- | |
| 156 | /* |
- | |
| 157 | * The ns16550 driver is interrupt-driven. |
- | |
| 158 | */ |
- | |
| 159 | return; |
- | |
| 160 | } |
- | |
| 161 | #endif |
- | |
| 162 | #endif |
- | |
| 163 | while (1) { |
147 | while (1) { |
| 164 | #ifdef CONFIG_NS16550 |
- | |
| 165 | #ifndef CONFIG_NS16550_INTERRUPT_DRIVEN |
- | |
| 166 | if (kbd_type == KBD_NS16550) |
- | |
| 167 | ns16550_poll(); |
- | |
| 168 | #endif |
- | |
| 169 | #endif |
- | |
| 170 | #ifdef CONFIG_SGCN |
148 | #ifdef CONFIG_SGCN |
| 171 | if (kbd_type == KBD_SGCN) |
149 | if (kbd_type == KBD_SGCN) |
| 172 | sgcn_poll(); |
150 | sgcn_poll(); |
| 173 | #endif |
151 | #endif |
| 174 | thread_usleep(KEYBOARD_POLL_PAUSE); |
152 | thread_usleep(KEYBOARD_POLL_PAUSE); |