Changeset 7bdcc45 in mainline for uspace/srv/devmap/devmap.c


Ignore:
Timestamp:
2010-12-16T16:38:49Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7837101
Parents:
8e58f94 (diff), eb221e5 (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/devmap/devmap.c

    r8e58f94 r7bdcc45  
    6161        link_t devices;
    6262        /** Phone asociated with this driver */
    63         ipcarg_t phone;
     63        sysarg_t phone;
    6464        /** Device driver name */
    6565        char *name;
     
    387387        ipc_callid_t iid = async_get_call(&icall);
    388388       
    389         if (IPC_GET_METHOD(icall) != DEVMAP_DRIVER_REGISTER) {
     389        if (IPC_GET_IMETHOD(icall) != DEVMAP_DRIVER_REGISTER) {
    390390                ipc_answer_0(iid, EREFUSED);
    391391                return NULL;
     
    416416        ipc_callid_t callid = async_get_call(&call);
    417417       
    418         if (IPC_GET_METHOD(call) != IPC_M_CONNECT_TO_ME) {
     418        if (IPC_GET_IMETHOD(call) != IPC_M_CONNECT_TO_ME) {
    419419                free(driver->name);
    420420                free(driver);
     
    555555        if (devmap_device_find_name(namespace->name, device->name) != NULL) {
    556556                printf("%s: Device '%s/%s' already registered\n", NAME,
    557                     device->namespace, device->name);
     557                    device->namespace->name, device->name);
    558558                devmap_namespace_destroy(namespace);
    559559                fibril_mutex_unlock(&devices_list_mutex);
     
    823823        }
    824824       
    825         ipcarg_t retval = async_data_read_finalize(callid, desc, size);
     825        sysarg_t retval = async_data_read_finalize(callid, desc, size);
    826826       
    827827        free(desc);
     
    890890        }
    891891       
    892         ipcarg_t retval = async_data_read_finalize(callid, desc, size);
     892        sysarg_t retval = async_data_read_finalize(callid, desc, size);
    893893       
    894894        free(desc);
     
    964964        fibril_mutex_unlock(&null_devices_mutex);
    965965       
    966         ipc_answer_1(iid, EOK, (ipcarg_t) i);
     966        ipc_answer_1(iid, EOK, (sysarg_t) i);
    967967}
    968968
    969969static void devmap_null_destroy(ipc_callid_t iid, ipc_call_t *icall)
    970970{
    971         ipcarg_t i = IPC_GET_ARG1(*icall);
     971        sysarg_t i = IPC_GET_ARG1(*icall);
    972972        if (i >= NULL_DEVICES) {
    973973                ipc_answer_0(iid, ELIMIT);
     
    10271027                ipc_callid_t callid = async_get_call(&call);
    10281028               
    1029                 switch (IPC_GET_METHOD(call)) {
     1029                switch (IPC_GET_IMETHOD(call)) {
    10301030                case IPC_M_PHONE_HUNGUP:
    10311031                        cont = false;
     
    10521052                        break;
    10531053                default:
    1054                         if (!(callid & IPC_CALLID_NOTIFICATION))
    1055                                 ipc_answer_0(callid, ENOENT);
     1054                        ipc_answer_0(callid, ENOENT);
    10561055                }
    10571056        }
     
    10791078                ipc_callid_t callid = async_get_call(&call);
    10801079               
    1081                 switch (IPC_GET_METHOD(call)) {
     1080                switch (IPC_GET_IMETHOD(call)) {
    10821081                case IPC_M_PHONE_HUNGUP:
    10831082                        cont = false;
     
    11111110                        break;
    11121111                default:
    1113                         if (!(callid & IPC_CALLID_NOTIFICATION))
    1114                                 ipc_answer_0(callid, ENOENT);
     1112                        ipc_answer_0(callid, ENOENT);
    11151113                }
    11161114        }
     
    11231121{
    11241122        /* Select interface */
    1125         switch ((ipcarg_t) (IPC_GET_ARG1(*icall))) {
     1123        switch ((sysarg_t) (IPC_GET_ARG1(*icall))) {
    11261124        case DEVMAP_DRIVER:
    11271125                devmap_connection_driver(iid, icall);
     
    11561154       
    11571155        /* Register device mapper at naming service */
    1158         ipcarg_t phonead;
     1156        sysarg_t phonead;
    11591157        if (ipc_connect_to_me(PHONE_NS, SERVICE_DEVMAP, 0, 0, &phonead) != 0)
    11601158                return -1;
Note: See TracChangeset for help on using the changeset viewer.