Changeset d0c5901 in mainline for arch/ia64/src/ski/ski.c


Ignore:
Timestamp:
2006-06-02T14:07:29Z (19 years ago)
Author:
Jakub Vana <jakub.vana@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c034b16
Parents:
116d1ef4
Message:

IA64 uspace keyboard kernel part

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ia64/src/ski/ski.c

    r116d1ef4 rd0c5901  
    3030#include <console/console.h>
    3131#include <console/chardev.h>
     32#include <arch/interrupt.h>
     33#include <sysinfo/sysinfo.h>
    3234
    33 static chardev_t ski_console;
     35chardev_t ski_console;
     36chardev_t ski_uconsole;
    3437static bool kb_disable;
     38int kbd_uspace=0;
    3539
    3640static void ski_putchar(chardev_t *d, const char ch);
     
    112116        if(ch == '\r')
    113117                ch = '\n';
    114         if (ch)
    115                 chardev_push_character(&ski_console, ch);
     118        if (ch){
     119                if(kbd_uspace){
     120                        chardev_push_character(&ski_uconsole, ch);
     121                        virtual_interrupt(IRQ_KBD,NULL);
     122                }
     123                else {
     124                        chardev_push_character(&ski_console, ch);
     125
     126                }       
     127               
     128        }       
    116129}
    117130
     
    153166
    154167        chardev_initialize("ski_console", &ski_console, &ski_ops);
     168        chardev_initialize("ski_uconsole", &ski_uconsole, &ski_ops);
    155169        stdin = &ski_console;
    156170        stdout = &ski_console;
     171
    157172}
     173/** Setup console sysinfo (i.e. Keyboard IRQ)
     174 *
     175 * Because sysinfo neads memory allocation/dealocation
     176 * this functions should be called separetely from init.
     177 *
     178 */
     179void ski_set_console_sysinfo(void)
     180{
     181        sysinfo_set_item_val("kbd",NULL,true);
     182        sysinfo_set_item_val("kbd.irq",NULL,IRQ_KBD);
     183}
Note: See TracChangeset for help on using the changeset viewer.