Changeset f0450658 in mainline for kernel/arch/ia64/src/ski/ski.c
- Timestamp:
- 2006-10-19T18:07:18Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8cee705
- Parents:
- 3dea17f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia64/src/ski/ski.c
r3dea17f rf0450658 43 43 #include <ddi/irq.h> 44 44 #include <ipc/irq.h> 45 #include <proc/thread.h> 45 46 #include <synch/spinlock.h> 46 47 #include <arch/asm.h> … … 124 125 125 126 /** Ask keyboard if a key was pressed. */ 126 void poll_keyboard(void)127 static void poll_keyboard(void) 127 128 { 128 129 char ch; … … 225 226 irq_register(&ski_kbd_irq); 226 227 227 }228 229 /** Setup console sysinfo (i.e. Keyboard IRQ)230 *231 * Because sysinfo neads memory allocation/dealocation232 * this functions should be called separetely from init.233 *234 */235 void ski_set_console_sysinfo(void)236 {237 228 sysinfo_set_item_val("kbd", NULL, true); 238 229 sysinfo_set_item_val("kbd.inr", NULL, SKI_KBD_INR); … … 259 250 } 260 251 252 253 #define POLL_INTERVAL 50000 /* 50 ms */ 254 255 /** Kernel thread for polling keyboard. */ 256 void kkbdpoll(void *arg) 257 { 258 while (1) { 259 poll_keyboard(); 260 thread_usleep(POLL_INTERVAL); 261 } 262 } 263 261 264 /** @} 262 265 */
Note:
See TracChangeset
for help on using the changeset viewer.