Changeset 30ab05f in mainline for arch/sparc64/src/console.c
- Timestamp:
- 2006-02-27T20:33:36Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d87c3f3
- Parents:
- 02f441c0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/sparc64/src/console.c
r02f441c0 r30ab05f 32 32 #include <genarch/fb/fb.h> 33 33 #include <arch/drivers/fb.h> 34 #include <arch/drivers/keyboard.h> 34 #include <arch/drivers/i8042.h> 35 #include <genarch/i8042/i8042.h> 35 36 #include <genarch/ofw/ofw.h> 36 37 #include <console/chardev.h> … … 40 41 #include <proc/thread.h> 41 42 #include <synch/mutex.h> 43 44 #define KEYBOARD_POLL_PAUSE 50000 /* 50ms */ 42 45 43 46 static void ofw_sparc64_putchar(chardev_t *d, const char ch); … … 74 77 stdin = NULL; 75 78 fb_init(FB_VIRT_ADDRESS, FB_X_RES, FB_Y_RES, FB_COLOR_DEPTH/8); 79 i8042_init(); 76 80 } 77 81 … … 156 160 chardev_push_character(&ofw_sparc64_console, ch); 157 161 } 158 thread_usleep( 25000);162 thread_usleep(KEYBOARD_POLL_PAUSE); 159 163 } 160 164 } 165 166 /** Kernel thread for polling keyboard. 167 * 168 * @param arg Ignored. 169 */ 170 void kkbdpoll(void *arg) 171 { 172 while (1) { 173 i8042_poll(); 174 thread_usleep(KEYBOARD_POLL_PAUSE); 175 } 176 }
Note:
See TracChangeset
for help on using the changeset viewer.