Ignore:
File:
1 edited

Legend:

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

    rffa2c8ef r9934f7d  
    4141#include <devmap.h>
    4242#include <async.h>
     43#include <async_obsolete.h>
    4344#include <unistd.h>
    4445#include <sysinfo.h>
     
    4647#include <errno.h>
    4748#include <inttypes.h>
    48 
    4949#include "i8042.h"
     50
     51// FIXME: remove this header
     52#include <kernel/ipc/ipc_methods.h>
    5053
    5154#define NAME "i8042"
     
    119122
    120123static void i8042_irq_handler(ipc_callid_t iid, ipc_call_t *call);
    121 static void i8042_connection(ipc_callid_t iid, ipc_call_t *icall);
     124static void i8042_connection(ipc_callid_t iid, ipc_call_t *icall, void *arg);
    122125static int i8042_init(void);
    123126static void i8042_port_write(int devid, uint8_t data);
     
    213216
    214217/** Character device connection handler */
    215 static void i8042_connection(ipc_callid_t iid, ipc_call_t *icall)
     218static void i8042_connection(ipc_callid_t iid, ipc_call_t *icall, void *arg)
    216219{
    217220        ipc_callid_t callid;
     
    247250                callid = async_get_call(&call);
    248251                method = IPC_GET_IMETHOD(call);
    249                 switch (method) {
    250                 case IPC_M_PHONE_HUNGUP:
     252               
     253                if (!method) {
    251254                        /* The other side has hung up. */
    252255                        async_answer_0(callid, EOK);
    253256                        return;
     257                }
     258               
     259                switch (method) {
    254260                case IPC_M_CONNECT_TO_ME:
    255261                        printf(NAME ": creating callback connection\n");
     
    300306
    301307        if (i8042_port[devid].client_phone != -1) {
    302                 async_msg_1(i8042_port[devid].client_phone,
     308                async_obsolete_msg_1(i8042_port[devid].client_phone,
    303309                    IPC_FIRST_USER_METHOD, data);
    304310        }
Note: See TracChangeset for help on using the changeset viewer.