Rev 586 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 586 | Rev 843 | ||
---|---|---|---|
Line 28... | Line 28... | ||
28 | 28 | ||
29 | #include <arch/console.h> |
29 | #include <arch/console.h> |
30 | #include <genarch/ofw/ofw.h> |
30 | #include <genarch/ofw/ofw.h> |
31 | #include <console/chardev.h> |
31 | #include <console/chardev.h> |
32 | #include <console/console.h> |
32 | #include <console/console.h> |
- | 33 | #include <genarch/fb/fb.h> |
|
33 | 34 | ||
34 | /** Print one character. |
- | |
35 | * |
- | |
36 | * @param ch Character to be printed. |
- | |
37 | */ |
- | |
38 | static void ofw_ppc32_putchar(chardev_t *d, const char ch) |
- | |
39 | { |
- | |
40 | ofw_putchar(ch); |
- | |
41 | } |
- | |
42 | - | ||
43 | static chardev_t ofw_ppc32_console; |
- | |
44 | static chardev_operations_t ofw_ppc32_console_ops = { |
- | |
45 | .write = ofw_ppc32_putchar |
- | |
46 | }; |
- | |
47 | 35 | ||
48 | /** Initialize console to use ofw output */ |
36 | /** Initialize console to use ofw output */ |
49 | void ofw_ppc32_console_init(void) |
37 | void ppc32_console_init(void) |
50 | { |
38 | { |
51 | chardev_initialize("ofw_out", &ofw_ppc32_console, &ofw_ppc32_console_ops); |
39 | /* TODO: PCI detection etc. etc. - this is fine in PearPC for now */ |
52 | stdout = &ofw_ppc32_console; |
40 | fb_init(0x84000000,800,600,4); |
53 | } |
41 | } |