Rev 1787 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1787 | Rev 1888 | ||
---|---|---|---|
Line 156... | Line 156... | ||
156 | static void ski_kb_disable(chardev_t *d) |
156 | static void ski_kb_disable(chardev_t *d) |
157 | { |
157 | { |
158 | kb_disable = true; |
158 | kb_disable = true; |
159 | } |
159 | } |
160 | 160 | ||
161 | - | ||
162 | static chardev_operations_t ski_ops = { |
161 | static chardev_operations_t ski_ops = { |
163 | .resume = ski_kb_enable, |
162 | .resume = ski_kb_enable, |
164 | .suspend = ski_kb_disable, |
163 | .suspend = ski_kb_disable, |
165 | .write = ski_putchar, |
164 | .write = ski_putchar, |
166 | .read = ski_getchar_blocking |
165 | .read = ski_getchar_blocking |
167 | }; |
166 | }; |
168 | 167 | ||
169 | - | ||
170 | /** Initialize debug console |
168 | /** Initialize debug console |
171 | * |
169 | * |
172 | * Issue SSC (Simulator System Call) to |
170 | * Issue SSC (Simulator System Call) to |
173 | * to open debug console. |
171 | * to open debug console. |
174 | */ |
172 | */ |
Line 186... | Line 184... | ||
186 | chardev_initialize("ski_uconsole", &ski_uconsole, &ski_ops); |
184 | chardev_initialize("ski_uconsole", &ski_uconsole, &ski_ops); |
187 | stdin = &ski_console; |
185 | stdin = &ski_console; |
188 | stdout = &ski_console; |
186 | stdout = &ski_console; |
189 | 187 | ||
190 | } |
188 | } |
- | 189 | ||
191 | /** Setup console sysinfo (i.e. Keyboard IRQ) |
190 | /** Setup console sysinfo (i.e. Keyboard IRQ) |
192 | * |
191 | * |
193 | * Because sysinfo neads memory allocation/dealocation |
192 | * Because sysinfo neads memory allocation/dealocation |
194 | * this functions should be called separetely from init. |
193 | * this functions should be called separetely from init. |
195 | * |
194 | * |
Line 200... | Line 199... | ||
200 | sysinfo_set_item_val("kbd.irq",NULL,IRQ_KBD); |
199 | sysinfo_set_item_val("kbd.irq",NULL,IRQ_KBD); |
201 | } |
200 | } |
202 | 201 | ||
203 | /** @} |
202 | /** @} |
204 | */ |
203 | */ |
205 | - |