Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 96b02eb9 in mainline for uspace/srv/devmap/devmap.c


Ignore:
Timestamp:
2010-12-14T12:52:38Z (11 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master
Children:
6b10dab
Parents:
554debd
Message:

more unification of basic types

  • use sysarg_t and native_t (unsigned and signed variant) in both kernel and uspace
  • remove ipcarg_t in favour of sysarg_t

(no change in functionality)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/devmap/devmap.c

    r554debd r96b02eb9  
    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;
     
    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);
     
    11211121{
    11221122        /* Select interface */
    1123         switch ((ipcarg_t) (IPC_GET_ARG1(*icall))) {
     1123        switch ((sysarg_t) (IPC_GET_ARG1(*icall))) {
    11241124        case DEVMAP_DRIVER:
    11251125                devmap_connection_driver(iid, icall);
     
    11541154       
    11551155        /* Register device mapper at naming service */
    1156         ipcarg_t phonead;
     1156        sysarg_t phonead;
    11571157        if (ipc_connect_to_me(PHONE_NS, SERVICE_DEVMAP, 0, 0, &phonead) != 0)
    11581158                return -1;
Note: See TracChangeset for help on using the changeset viewer.