Changeset 26e7d6d in mainline for kernel/arch/sparc64/src/console.c
- Timestamp:
- 2011-09-19T16:31:00Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a347a11
- Parents:
- 3842a955 (diff), 086290d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/console.c
r3842a955 r26e7d6d 38 38 #include <arch/drivers/scr.h> 39 39 #include <arch/drivers/kbd.h> 40 #include <arch/drivers/sgcn.h>41 40 #include <genarch/srln/srln.h> 42 41 #include <console/chardev.h> … … 89 88 } 90 89 91 /** Initilize I/O on the Serengeti machine. */92 static void serengeti_init(void)93 {94 #ifdef CONFIG_SGCN_KBD95 sgcn_instance_t *sgcn_instance = sgcnin_init();96 if (sgcn_instance) {97 srln_instance_t *srln_instance = srln_init();98 if (srln_instance) {99 indev_t *sink = stdin_wire();100 indev_t *srln = srln_wire(srln_instance, sink);101 sgcnin_wire(sgcn_instance, srln);102 }103 }104 #endif105 106 #ifdef CONFIG_SGCN_PRN107 outdev_t *sgcndev = sgcnout_init();108 if (sgcndev)109 stdout_wire(sgcndev);110 #endif111 }112 113 90 /** 114 91 * Initialize input/output. Auto-detects the type of machine … … 127 104 prop = ofw_tree_getprop(aliases, "def-cn"); 128 105 129 if ((!prop) || (!prop->value) || (str_cmp(prop->value, "/sgcn") != 0)) {106 if ((!prop) || (!prop->value)) 130 107 standard_console_init(aliases); 131 } else {132 serengeti_init();133 }134 108 } 135 109
Note:
See TracChangeset
for help on using the changeset viewer.