Rev 1490 | Rev 1505 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1490 | Rev 1493 | ||
---|---|---|---|
Line 31... | Line 31... | ||
31 | #include <sysinfo.h> |
31 | #include <sysinfo.h> |
32 | #include <async.h> |
32 | #include <async.h> |
33 | 33 | ||
34 | #include "fb.h" |
34 | #include "fb.h" |
35 | #include "sysio.h" |
35 | #include "sysio.h" |
- | 36 | #include "ega.h" |
|
36 | 37 | ||
37 | int main(int argc, char *argv[]) |
38 | int main(int argc, char *argv[]) |
38 | { |
39 | { |
39 | ipcarg_t phonead; |
40 | ipcarg_t phonead; |
40 | int initialized = 0; |
41 | int initialized = 0; |
41 | 42 | ||
42 | if (sysinfo_value("fb.kind") == 1) { |
43 | if (sysinfo_value("fb.kind") == 1) { |
43 | if (fb_init() == 0) |
44 | if (fb_init() == 0) |
44 | initialized = 1; |
45 | initialized = 1; |
- | 46 | } else if (sysinfo_value("fb.kind") == 2) { |
|
- | 47 | if (ega_init() == 0) |
|
- | 48 | initialized = 1; |
|
45 | } |
49 | } |
- | 50 | ||
46 | if (!initialized) |
51 | if (!initialized) |
47 | sysio_init(); |
52 | sysio_init(); |
48 | 53 | ||
49 | if (ipc_connect_to_me(PHONE_NS, SERVICE_VIDEO, 0, &phonead) != 0) |
54 | if (ipc_connect_to_me(PHONE_NS, SERVICE_VIDEO, 0, &phonead) != 0) |
50 | return -1; |
55 | return -1; |