Ignore:
Timestamp:
2011-02-09T11:46:47Z (14 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cb15135a
Parents:
a49c4002 (diff), 0b37882 (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

Local modifications:

  • change pipefs and ext2 to build again (use async_* calls instead of ipc_*)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hw/bus/cuda_adb/cuda_adb.c

    ra49c4002 rcf2af94  
    162162        rc = devmap_device_register("adb/kbd", &devmap_handle);
    163163        if (rc != EOK) {
    164                 devmap_hangup_phone(DEVMAP_DRIVER);
    165164                printf(NAME ": Unable to register device %s.\n", "adb/kdb");
    166165                return rc;
     
    172171        rc = devmap_device_register("adb/mouse", &devmap_handle);
    173172        if (rc != EOK) {
    174                 devmap_hangup_phone(DEVMAP_DRIVER);
    175173                printf(NAME ": Unable to register device %s.\n", "adb/mouse");
    176174                return rc;
     
    195193        ipc_callid_t callid;
    196194        ipc_call_t call;
    197         ipcarg_t method;
     195        sysarg_t method;
    198196        devmap_handle_t dh;
    199197        int retval;
     
    211209
    212210        if (dev_addr < 0) {
    213                 ipc_answer_0(iid, EINVAL);
     211                async_answer_0(iid, EINVAL);
    214212                return;
    215213        }
    216214
    217215        /* Answer the IPC_M_CONNECT_ME_TO call. */
    218         ipc_answer_0(iid, EOK);
     216        async_answer_0(iid, EOK);
    219217
    220218        while (1) {
    221219                callid = async_get_call(&call);
    222                 method = IPC_GET_METHOD(call);
     220                method = IPC_GET_IMETHOD(call);
    223221                switch (method) {
    224222                case IPC_M_PHONE_HUNGUP:
    225223                        /* The other side has hung up. */
    226                         ipc_answer_0(callid, EOK);
     224                        async_answer_0(callid, EOK);
    227225                        return;
    228226                case IPC_M_CONNECT_TO_ME:
     
    247245                        break;
    248246                }
    249                 ipc_answer_0(callid, retval);
     247                async_answer_0(callid, retval);
    250248        }
    251249}
     
    278276        cuda_irq_code.cmds[0].addr = (void *) &((cuda_t *) instance->cuda_kernel)->ifr;
    279277        async_set_interrupt_received(cuda_irq_handler);
    280         ipc_register_irq(10, device_assign_devno(), 0, &cuda_irq_code);
     278        register_irq(10, device_assign_devno(), 0, &cuda_irq_code);
    281279
    282280        /* Enable SR interrupt. */
Note: See TracChangeset for help on using the changeset viewer.