Changeset 51d6f80 in mainline for init/init.c


Ignore:
Timestamp:
2006-05-15T21:08:29Z (19 years ago)
Author:
Josef Cejka <malyzelenyhnus@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
250717cc
Parents:
108602e
Message:

Uspace keyboard handler for ia32.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • init/init.c

    r108602e r51d6f80  
    4040#include <ddi.h>
    4141#include <string.h>
     42#include <kbd.h>
    4243
    4344int a;
     
    293294}
    294295
     296static void test_kbd()
     297{
     298        int res;
     299        ipcarg_t result;
     300        int phoneid;
     301
     302        printf("Test: Starting connect...\n");
     303        while ((phoneid = ipc_connect_me_to(PHONE_NS, 30, 60)) < 0) {
     304        };
     305       
     306        printf("Test: Connected: %d\n", res);
     307        printf("Test: pinging.\n");
     308        while (1) {
     309                res = ipc_call_sync(phoneid, KBD_GETCHAR, 0xbeef,&result);
     310//              printf("Test: Retval: %d - received: %c\n", res, result);
     311                printf("%c", result);
     312        }
     313       
     314        printf("Test: Hangin up\n");
     315        ipc_hangup(phoneid);
     316}
     317
    295318static int test_as_send()
    296319{
     
    331354//      test_hangup();
    332355//      test_slam();
    333         test_as_send();
     356//      test_as_send();
     357        test_kbd();
     358
    334359/*     
    335360        printf("Userspace task, taskid=%llX\n", task_get_id());
Note: See TracChangeset for help on using the changeset viewer.