Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hw/char/i8042/i8042.c

    r7ea7db31 rffa2c8ef  
    4040#include <libarch/ddi.h>
    4141#include <devmap.h>
    42 #include <ipc/ipc.h>
    4342#include <async.h>
    4443#include <unistd.h>
     
    199198        i8042_kbd.cmds[0].addr = (void *) &((i8042_t *) i8042_kernel)->status;
    200199        i8042_kbd.cmds[3].addr = (void *) &((i8042_t *) i8042_kernel)->data;
    201         ipc_register_irq(inr_a, device_assign_devno(), 0, &i8042_kbd);
    202         ipc_register_irq(inr_b, device_assign_devno(), 0, &i8042_kbd);
     200        register_irq(inr_a, device_assign_devno(), 0, &i8042_kbd);
     201        register_irq(inr_b, device_assign_devno(), 0, &i8042_kbd);
    203202        printf("%s: registered for interrupts %" PRIun " and %" PRIun "\n",
    204203            NAME, inr_a, inr_b);
     
    236235
    237236        if (dev_id < 0) {
    238                 ipc_answer_0(iid, EINVAL);
     237                async_answer_0(iid, EINVAL);
    239238                return;
    240239        }
    241240
    242241        /* Answer the IPC_M_CONNECT_ME_TO call. */
    243         ipc_answer_0(iid, EOK);
     242        async_answer_0(iid, EOK);
    244243
    245244        printf(NAME ": accepted connection\n");
     
    251250                case IPC_M_PHONE_HUNGUP:
    252251                        /* The other side has hung up. */
    253                         ipc_answer_0(callid, EOK);
     252                        async_answer_0(callid, EOK);
    254253                        return;
    255254                case IPC_M_CONNECT_TO_ME:
     
    272271                        break;
    273272                }
    274                 ipc_answer_0(callid, retval);
     273                async_answer_0(callid, retval);
    275274        }
    276275}
Note: See TracChangeset for help on using the changeset viewer.