Ignore:
File:
1 edited

Legend:

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

    rc0699467 rffa2c8ef  
    4141#include <devmap.h>
    4242#include <async.h>
    43 #include <async_obsolete.h>
    4443#include <unistd.h>
    4544#include <sysinfo.h>
     
    4746#include <errno.h>
    4847#include <inttypes.h>
     48
    4949#include "i8042.h"
    50 
    51 // FIXME: remove this header
    52 #include <abi/ipc/methods.h>
    5350
    5451#define NAME "i8042"
     
    122119
    123120static void i8042_irq_handler(ipc_callid_t iid, ipc_call_t *call);
    124 static void i8042_connection(ipc_callid_t iid, ipc_call_t *icall, void *arg);
     121static void i8042_connection(ipc_callid_t iid, ipc_call_t *icall);
    125122static int i8042_init(void);
    126123static void i8042_port_write(int devid, uint8_t data);
     
    216213
    217214/** Character device connection handler */
    218 static void i8042_connection(ipc_callid_t iid, ipc_call_t *icall, void *arg)
     215static void i8042_connection(ipc_callid_t iid, ipc_call_t *icall)
    219216{
    220217        ipc_callid_t callid;
     
    250247                callid = async_get_call(&call);
    251248                method = IPC_GET_IMETHOD(call);
    252                
    253                 if (!method) {
     249                switch (method) {
     250                case IPC_M_PHONE_HUNGUP:
    254251                        /* The other side has hung up. */
    255252                        async_answer_0(callid, EOK);
    256253                        return;
    257                 }
    258                
    259                 switch (method) {
    260254                case IPC_M_CONNECT_TO_ME:
    261255                        printf(NAME ": creating callback connection\n");
     
    306300
    307301        if (i8042_port[devid].client_phone != -1) {
    308                 async_obsolete_msg_1(i8042_port[devid].client_phone,
     302                async_msg_1(i8042_port[devid].client_phone,
    309303                    IPC_FIRST_USER_METHOD, data);
    310304        }
Note: See TracChangeset for help on using the changeset viewer.