Subversion Repositories HelenOS

Rev

Rev 4420 | Rev 4668 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4420 Rev 4537
Line 39... Line 39...
39
#include <fibril.h>
39
#include <fibril.h>
40
#include <errno.h>
40
#include <errno.h>
41
#include <udebug.h>
41
#include <udebug.h>
42
#include <async.h>
42
#include <async.h>
43
#include <task.h>
43
#include <task.h>
-
 
44
#include <mem.h>
-
 
45
#include <string.h>
44
#include <loader/loader.h>
46
#include <loader/loader.h>
45
 
47
 
46
#include <libc.h>
48
#include <libc.h>
47
 
49
 
48
// Temporary: service and method names
50
// Temporary: service and method names
Line 659... Line 661...
659
 
661
 
660
    p = proto_new("console");
662
    p = proto_new("console");
661
    resp_def[0] = V_INTEGER; resp_def[1] = V_INTEGER;
663
    resp_def[0] = V_INTEGER; resp_def[1] = V_INTEGER;
662
    resp_def[2] = V_INTEGER; resp_def[3] = V_CHAR;
664
    resp_def[2] = V_INTEGER; resp_def[3] = V_CHAR;
663
    o = oper_new("getkey", 0, arg_def, V_ERRNO, 4, resp_def);
665
    o = oper_new("getkey", 0, arg_def, V_ERRNO, 4, resp_def);
664
    proto_add_oper(p, CONSOLE_GETKEY, o);
-
 
665
 
666
 
666
    arg_def[0] = V_CHAR;
667
    arg_def[0] = V_CHAR;
667
    o = oper_new("putchar", 1, arg_def, V_VOID, 0, resp_def);
-
 
668
    proto_add_oper(p, CONSOLE_PUTCHAR, o);
-
 
669
    o = oper_new("write", 0, arg_def, V_VOID, 0, resp_def);
-
 
670
    proto_add_oper(p, CONSOLE_WRITE, o);
-
 
671
    o = oper_new("clear", 0, arg_def, V_VOID, 0, resp_def);
668
    o = oper_new("clear", 0, arg_def, V_VOID, 0, resp_def);
672
    proto_add_oper(p, CONSOLE_CLEAR, o);
669
    proto_add_oper(p, CONSOLE_CLEAR, o);
673
 
670
 
674
    arg_def[0] = V_INTEGER; arg_def[1] = V_INTEGER;
671
    arg_def[0] = V_INTEGER; arg_def[1] = V_INTEGER;
675
    o = oper_new("goto", 2, arg_def, V_VOID, 0, resp_def);
672
    o = oper_new("goto", 2, arg_def, V_VOID, 0, resp_def);
676
    proto_add_oper(p, CONSOLE_GOTO, o);
673
    proto_add_oper(p, CONSOLE_GOTO, o);
677
 
674
 
678
    resp_def[0] = V_INTEGER; resp_def[1] = V_INTEGER;
675
    resp_def[0] = V_INTEGER; resp_def[1] = V_INTEGER;
679
    o = oper_new("getsize", 0, arg_def, V_INTEGER, 2, resp_def);
676
    o = oper_new("getsize", 0, arg_def, V_INTEGER, 2, resp_def);
680
    proto_add_oper(p, CONSOLE_GETSIZE, o);
677
    proto_add_oper(p, CONSOLE_GET_SIZE, o);
681
    o = oper_new("flush", 0, arg_def, V_VOID, 0, resp_def);
-
 
682
    proto_add_oper(p, CONSOLE_FLUSH, o);
-
 
683
 
678
 
684
    arg_def[0] = V_INTEGER;
679
    arg_def[0] = V_INTEGER;
685
    o = oper_new("set_style", 1, arg_def, V_VOID, 0, resp_def);
680
    o = oper_new("set_style", 1, arg_def, V_VOID, 0, resp_def);
686
    proto_add_oper(p, CONSOLE_SET_STYLE, o);
681
    proto_add_oper(p, CONSOLE_SET_STYLE, o);
687
    arg_def[0] = V_INTEGER; arg_def[1] = V_INTEGER; arg_def[2] = V_INTEGER;
682
    arg_def[0] = V_INTEGER; arg_def[1] = V_INTEGER; arg_def[2] = V_INTEGER;