Rev 4156 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4156 | Rev 4296 | ||
---|---|---|---|
Line 93... | Line 93... | ||
93 | { |
93 | { |
94 | #ifdef CONFIG_SGCN_KBD |
94 | #ifdef CONFIG_SGCN_KBD |
95 | indev_t *kbrdin; |
95 | indev_t *kbrdin; |
96 | kbrdin = sgcnin_init(); |
96 | kbrdin = sgcnin_init(); |
97 | if (kbrdin) |
97 | if (kbrdin) |
98 | srlnin_init(kbrdin); |
98 | srln_init(kbrdin); |
99 | #endif |
99 | #endif |
100 | #ifdef CONFIG_SGCN_PRN |
100 | #ifdef CONFIG_SGCN_PRN |
101 | sgcnout_init(); |
101 | sgcnout_init(); |
102 | #endif |
102 | #endif |
103 | } |
103 | } |
Line 116... | Line 116... | ||
116 | panic("Cannot find '/aliases'."); |
116 | panic("Cannot find '/aliases'."); |
117 | 117 | ||
118 | /* "def-cn" = "default console" */ |
118 | /* "def-cn" = "default console" */ |
119 | prop = ofw_tree_getprop(aliases, "def-cn"); |
119 | prop = ofw_tree_getprop(aliases, "def-cn"); |
120 | 120 | ||
121 | if ((!prop) || (!prop->value) || (strcmp(prop->value, "/sgcn") != 0)) { |
121 | if ((!prop) || (!prop->value) || (str_cmp(prop->value, "/sgcn") != 0)) { |
122 | standard_console_init(aliases); |
122 | standard_console_init(aliases); |
123 | } else { |
123 | } else { |
124 | serengeti_init(); |
124 | serengeti_init(); |
125 | } |
125 | } |
126 | } |
126 | } |
Line 132... | Line 132... | ||
132 | void arch_grab_console(void) |
132 | void arch_grab_console(void) |
133 | { |
133 | { |
134 | #ifdef CONFIG_FB |
134 | #ifdef CONFIG_FB |
135 | scr_redraw(); |
135 | scr_redraw(); |
136 | #endif |
136 | #endif |
- | 137 | ||
137 | switch (kbd_type) { |
138 | switch (kbd_type) { |
138 | #ifdef CONFIG_SGCN |
139 | #ifdef CONFIG_SGCN_KBD |
139 | case KBD_SGCN: |
140 | case KBD_SGCN: |
140 | sgcn_grab(); |
141 | sgcn_grab(); |
141 | break; |
142 | break; |
142 | #endif |
143 | #endif |
143 | default: |
144 | default: |
Line 149... | Line 150... | ||
149 | * |
150 | * |
150 | */ |
151 | */ |
151 | void arch_release_console(void) |
152 | void arch_release_console(void) |
152 | { |
153 | { |
153 | switch (kbd_type) { |
154 | switch (kbd_type) { |
154 | #ifdef CONFIG_SGCN |
155 | #ifdef CONFIG_SGCN_KBD |
155 | case KBD_SGCN: |
156 | case KBD_SGCN: |
156 | sgcn_release(); |
157 | sgcn_release(); |
157 | break; |
158 | break; |
158 | #endif |
159 | #endif |
159 | default: |
160 | default: |