Rev 2263 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2263 | Rev 2274 | ||
---|---|---|---|
Line 32... | Line 32... | ||
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 <arch/console.h> |
37 | #include <arch/drivers/gxemul.h> |
37 | #include <arch/machine.h> |
38 | 38 | ||
39 | void console_init(devno_t devno) |
39 | void console_init(devno_t devno) |
40 | { |
40 | { |
41 | #if MACHINE == MACHINE_GXEMUL_TESTARM |
- | |
42 | gxemul_console(devno); |
41 | machine_console_init(devno); |
43 | #endif |
- | |
44 | } |
42 | } |
45 | 43 | ||
46 | /** Acquire console back for kernel |
44 | /** Acquire console back for kernel |
47 | * |
45 | * |
48 | */ |
46 | */ |
49 | void arch_grab_console(void) |
47 | void arch_grab_console(void) |
50 | { |
48 | { |
51 | #if MACHINE == MACHINE_GXEMUL_TESTARM |
- | |
52 | gxemul_kbd_grab(); |
49 | machine_grab_console(); |
53 | #endif |
- | |
54 | } |
50 | } |
55 | 51 | ||
56 | /** Return console to userspace |
52 | /** Return console to userspace |
57 | * |
53 | * |
58 | */ |
54 | */ |
59 | void arch_release_console(void) |
55 | void arch_release_console(void) |
60 | { |
56 | { |
61 | #if MACHINE == MACHINE_GXEMUL_TESTARM |
- | |
62 | gxemul_kbd_release(); |
57 | machine_release_console(); |
63 | #endif |
- | |
64 | } |
58 | } |
65 | 59 | ||
66 | /** @} |
60 | /** @} |
67 | */ |
61 | */ |