Rev 1787 | Rev 1942 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1787 | Rev 1888 | ||
---|---|---|---|
Line 24... | Line 24... | ||
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | */ |
27 | */ |
28 | 28 | ||
29 | /** @addtogroup ia64 |
29 | /** @addtogroup ia64 |
30 | * @{ |
30 | * @{ |
31 | */ |
31 | */ |
32 | /** @file |
32 | /** @file |
33 | */ |
33 | */ |
34 | 34 | ||
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 198... | Line 197... | ||
198 | { |
197 | { |
199 | sysinfo_set_item_val("kbd",NULL,true); |
198 | sysinfo_set_item_val("kbd",NULL,true); |
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 | - |