Changeset ab87db5 in mainline for uspace/lib/drv/generic/driver.c


Ignore:
Timestamp:
2019-02-23T17:16:01Z (5 years ago)
Author:
GitHub <noreply@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8c193d83, ca0e838
Parents:
bc417660 (diff), 95a47b0 (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.
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-23 17:16:01)
git-committer:
GitHub <noreply@…> (2019-02-23 17:16:01)
Message:

Merge pull request #157

Turn some function-like macros into functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/drv/generic/driver.c

    rbc417660 rab87db5  
    119119static void driver_dev_add(ipc_call_t *icall)
    120120{
    121         devman_handle_t dev_handle = IPC_GET_ARG1(*icall);
    122         devman_handle_t parent_fun_handle = IPC_GET_ARG2(*icall);
     121        devman_handle_t dev_handle = ipc_get_arg1(icall);
     122        devman_handle_t parent_fun_handle = ipc_get_arg2(icall);
    123123
    124124        char *dev_name = NULL;
     
    173173static void driver_dev_remove(ipc_call_t *icall)
    174174{
    175         devman_handle_t devh = IPC_GET_ARG1(*icall);
     175        devman_handle_t devh = ipc_get_arg1(icall);
    176176
    177177        fibril_mutex_lock(&devices_mutex);
     
    206206static void driver_dev_gone(ipc_call_t *icall)
    207207{
    208         devman_handle_t devh = IPC_GET_ARG1(*icall);
     208        devman_handle_t devh = ipc_get_arg1(icall);
    209209
    210210        fibril_mutex_lock(&devices_mutex);
     
    239239static void driver_fun_online(ipc_call_t *icall)
    240240{
    241         devman_handle_t funh = IPC_GET_ARG1(*icall);
     241        devman_handle_t funh = ipc_get_arg1(icall);
    242242
    243243        /*
     
    274274static void driver_fun_offline(ipc_call_t *icall)
    275275{
    276         devman_handle_t funh = IPC_GET_ARG1(*icall);
     276        devman_handle_t funh = ipc_get_arg1(icall);
    277277
    278278        /*
     
    343343                async_get_call(&call);
    344344
    345                 if (!IPC_GET_IMETHOD(call)) {
     345                if (!ipc_get_imethod(&call)) {
    346346                        async_answer_0(&call, EOK);
    347347                        break;
    348348                }
    349349
    350                 switch (IPC_GET_IMETHOD(call)) {
     350                switch (ipc_get_imethod(&call)) {
    351351                case DRIVER_DEV_ADD:
    352352                        driver_dev_add(&call);
     
    385385         * the device to which the client connected.
    386386         */
    387         devman_handle_t handle = IPC_GET_ARG2(*icall);
     387        devman_handle_t handle = ipc_get_arg2(icall);
    388388
    389389        fibril_mutex_lock(&functions_mutex);
     
    429429                async_get_call(&call);
    430430
    431                 sysarg_t method = IPC_GET_IMETHOD(call);
     431                sysarg_t method = ipc_get_imethod(&call);
    432432
    433433                if (!method) {
     
    483483
    484484                /* get the method of the remote interface */
    485                 sysarg_t iface_method_idx = IPC_GET_ARG1(call);
     485                sysarg_t iface_method_idx = ipc_get_arg1(&call);
    486486                remote_iface_func_ptr_t iface_method_ptr =
    487487                    get_remote_method(rem_iface, iface_method_idx);
Note: See TracChangeset for help on using the changeset viewer.