Changeset 250717cc in mainline for kbd


Ignore:
Timestamp:
2006-05-16T09:30:42Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ec153a0
Parents:
51d6f80
Message:

Add services.h to codify service numbers.
Assign codes for PCI, keyboard and frame buffer services.

Rename ipc_answer() to ipc_answer_fast() and add the basic
slower variant and call it ipc_answer(). Add some doxygen comments.

Remove unused bits from the libpci library.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kbd/generic/kbd.c

    r51d6f80 r250717cc  
    2828
    2929#include <ipc.h>
     30#include <services.h>
    3031#include <stdio.h>
    3132#include <unistd.h>
     
    7172        printf("%s: Registering at naming service.\n", NAME);
    7273
    73         if ((res = ipc_connect_to_me(PHONE_NS, 30, 60, &phonead)) != 0) {
     74        if ((res = ipc_connect_to_me(PHONE_NS, SERVICE_KEYBOARD, 0, &phonead)) != 0) {
    7475                printf("%s: Error: Registering at naming service failed.\n", NAME);
    7576                return -1;
     
    139140                if (! (callid & IPC_CALLID_NOTIFICATION)) {
    140141                //      printf("%s: Answering\n", NAME);
    141                         ipc_answer(callid, retval, arg1, arg2);
     142                        ipc_answer_fast(callid, retval, arg1, arg2);
    142143                }
    143144        }
Note: See TracChangeset for help on using the changeset viewer.