Subversion Repositories HelenOS

Rev

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

Rev 3425 Rev 3675
Line 36... Line 36...
36
#include <stdio.h>
36
#include <stdio.h>
37
 
37
 
38
#include "fb.h"
38
#include "fb.h"
39
#include "ega.h"
39
#include "ega.h"
40
#include "msim.h"
40
#include "msim.h"
-
 
41
#include "sgcn.h"
41
#include "main.h"
42
#include "main.h"
42
 
43
 
43
#define NAME "fb"
44
#define NAME "fb"
44
 
45
 
45
void receive_comm_area(ipc_callid_t callid, ipc_call_t *call, void **area)
46
void receive_comm_area(ipc_callid_t callid, ipc_call_t *call, void **area)
Line 77... Line 78...
77
    if ((!initialized) && (sysinfo_value("fb.kind") == 3)) {
78
    if ((!initialized) && (sysinfo_value("fb.kind") == 3)) {
78
        if (msim_init() == 0)
79
        if (msim_init() == 0)
79
            initialized = true;
80
            initialized = true;
80
    }
81
    }
81
#endif
82
#endif
-
 
83
#ifdef SGCN_ENABLED
-
 
84
    if ((!initialized) && (sysinfo_value("fb.kind") == 4)) {
-
 
85
        if (sgcn_init() == 0)
-
 
86
            initialized = true;
-
 
87
    }
-
 
88
#endif
82
 
89
 
83
    if (!initialized)
90
    if (!initialized)
84
        return -1;
91
        return -1;
85
 
92
 
86
    if (ipc_connect_to_me(PHONE_NS, SERVICE_VIDEO, 0, 0, &phonead) != 0)
93
    if (ipc_connect_to_me(PHONE_NS, SERVICE_VIDEO, 0, 0, &phonead) != 0)