Changeset afa6e74 in mainline for init/init.c


Ignore:
Timestamp:
2006-05-16T23:37:58Z (19 years ago)
Author:
Jakub Vana <jakub.vana@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
04a73cdf
Parents:
6efe0ddf
Message:

Earliest version of Userspace Framebuffer driver, with stream support in libc.
Also Virtual framebuffers made as split on main fb and its usage by streams

(please test it and report)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • init/init.c

    r6efe0ddf rafa6e74  
    4343#include <errno.h>
    4444#include <kbd.h>
     45#include <ipc/fb.h>
    4546
    4647int a;
     
    349350}
    350351
     352static void test_fb()
     353{
     354        int res;
     355        ipcarg_t result;
     356        int phoneid;
     357
     358//      printf("Test: Starting connect...\n");
     359
     360        phoneid = ipc_connect_me_to(PHONE_NS, SERVICE_VIDEO, 0);
     361
     362        while ((phoneid = ipc_connect_me_to(PHONE_NS, SERVICE_VIDEO, 0)) < 0) {
     363                volatile int a;
     364                for(a=0;a<1048576;a++);
     365        };
     366       
     367//      printf("Test: Connected: %d\n", res);
     368//      printf("Test: pinging.\n");
     369        while (1) {
     370                res = ipc_call_sync(phoneid, FB_GET_VFB, 0xbeef,&result);
     371//              printf("Test: Retval: %d - received: %c\n", res, result);
     372//              printf("%c", result);
     373        }
     374       
     375//      printf("Test: Hangin up\n");
     376        ipc_hangup(phoneid);
     377}
     378
     379
    351380int main(int argc, char *argv[])
    352381{
     
    354383        int tid;
    355384       
    356         version_print();
     385//      version_print();
    357386
    358387//      test_printf();
     
    366395//      test_as_send();
    367396//      test_pci();
    368         test_kbd();
     397//      test_kbd();
     398//      test_fb();
     399
     400        printf("Hello\nThis is Init\n\nBye.");
     401       
    369402
    370403/*     
Note: See TracChangeset for help on using the changeset viewer.