Rev 3386 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3386 | Rev 4153 | ||
---|---|---|---|
Line 31... | Line 31... | ||
31 | */ |
31 | */ |
32 | /** @file |
32 | /** @file |
33 | */ |
33 | */ |
34 | 34 | ||
35 | #include <console/console.h> |
35 | #include <console/console.h> |
36 | #include <arch/console.h> |
36 | #include <genarch/fb/fb.h> |
37 | #include <arch/drivers/serial.h> |
- | |
38 | #include <arch/drivers/msim.h> |
- | |
39 | - | ||
40 | void console_init(devno_t devno) |
- | |
41 | { |
- | |
42 | if (serial_init()) |
- | |
43 | serial_console(devno); |
- | |
44 | else |
- | |
45 | msim_console(devno); |
- | |
46 | } |
- | |
47 | 37 | ||
48 | /** Acquire console back for kernel |
38 | /** Acquire console back for kernel |
49 | * |
39 | * |
50 | */ |
40 | */ |
51 | void arch_grab_console(void) |
41 | void arch_grab_console(void) |
52 | { |
42 | { |
- | 43 | #ifdef CONFIG_FB |
|
53 | msim_kbd_grab(); |
44 | fb_redraw(); |
- | 45 | #endif |
|
54 | } |
46 | } |
55 | 47 | ||
56 | /** Return console to userspace |
48 | /** Return console to userspace |
57 | * |
49 | * |
58 | */ |
50 | */ |
59 | void arch_release_console(void) |
51 | void arch_release_console(void) |
60 | { |
52 | { |
61 | msim_kbd_release(); |
- | |
62 | } |
53 | } |
63 | 54 | ||
64 | /** @} |
55 | /** @} |
65 | */ |
56 | */ |