Changeset 8b5690f in mainline for uspace/srv/hw/char/i8042/i8042.c


Ignore:
Timestamp:
2011-02-03T05:11:01Z (13 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ba38f72c
Parents:
22027b6e (diff), 86d7bfa (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 edited

Legend:

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

    r22027b6e r8b5690f  
    4040#include <libarch/ddi.h>
    4141#include <devmap.h>
    42 #include <ipc/ipc.h>
    4342#include <async.h>
    4443#include <unistd.h>
     
    148147                rc = devmap_device_register(name, &i8042_port[i].devmap_handle);
    149148                if (rc != EOK) {
    150                         devmap_hangup_phone(DEVMAP_DRIVER);
    151149                        printf(NAME ": Unable to register device %s.\n", name);
    152150                        return rc;
     
    200198        i8042_kbd.cmds[0].addr = (void *) &((i8042_t *) i8042_kernel)->status;
    201199        i8042_kbd.cmds[3].addr = (void *) &((i8042_t *) i8042_kernel)->data;
    202         ipc_register_irq(inr_a, device_assign_devno(), 0, &i8042_kbd);
    203         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);
    204202        printf("%s: registered for interrupts %" PRIun " and %" PRIun "\n",
    205203            NAME, inr_a, inr_b);
     
    237235
    238236        if (dev_id < 0) {
    239                 ipc_answer_0(iid, EINVAL);
     237                async_answer_0(iid, EINVAL);
    240238                return;
    241239        }
    242240
    243241        /* Answer the IPC_M_CONNECT_ME_TO call. */
    244         ipc_answer_0(iid, EOK);
     242        async_answer_0(iid, EOK);
    245243
    246244        printf(NAME ": accepted connection\n");
     
    252250                case IPC_M_PHONE_HUNGUP:
    253251                        /* The other side has hung up. */
    254                         ipc_answer_0(callid, EOK);
     252                        async_answer_0(callid, EOK);
    255253                        return;
    256254                case IPC_M_CONNECT_TO_ME:
     
    273271                        break;
    274272                }
    275                 ipc_answer_0(callid, retval);
     273                async_answer_0(callid, retval);
    276274        }
    277275}
Note: See TracChangeset for help on using the changeset viewer.