Changeset 3debedec in mainline for arch/ppc32/src/console.c
- Timestamp:
- 2006-02-16T20:26:14Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ba52899
- Parents:
- 2a46e10
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ppc32/src/console.c
r2a46e10 r3debedec 31 31 #include <console/chardev.h> 32 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_putchar46 };47 35 48 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);52 stdout = &ofw_ppc32_console;39 /* TODO: PCI detection etc. etc. - this is fine in PearPC for now */ 40 fb_init(0x84000000,800,600,4); 53 41 }
Note:
See TracChangeset
for help on using the changeset viewer.