Ignore:
File:
1 edited

Legend:

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

    r09ab0a9a rfafb8e5  
    10101010        async_wait_for(message_id, &res);
    10111011
    1012         *id = IPC_GET_ARG1(result);
     1012        *id = ipc_get_arg1(&result);
    10131013        return res;
    10141014}
     
    13851385        assert(nic_iface->set_state);
    13861386
    1387         nic_device_state_t state = (nic_device_state_t) IPC_GET_ARG2(*call);
     1387        nic_device_state_t state = (nic_device_state_t) ipc_get_arg2(call);
    13881388
    13891389        errno_t rc = nic_iface->set_state(dev, state);
     
    15691569        }
    15701570
    1571         int speed = (int) IPC_GET_ARG2(*call);
    1572         nic_channel_mode_t duplex = (nic_channel_mode_t) IPC_GET_ARG3(*call);
    1573         nic_role_t role = (nic_role_t) IPC_GET_ARG4(*call);
     1571        int speed = (int) ipc_get_arg2(call);
     1572        nic_channel_mode_t duplex = (nic_channel_mode_t) ipc_get_arg3(call);
     1573        nic_role_t role = (nic_role_t) ipc_get_arg4(call);
    15741574
    15751575        errno_t rc = nic_iface->set_operation_mode(dev, speed, duplex, role);
     
    15861586        }
    15871587
    1588         uint32_t advertisement = (uint32_t) IPC_GET_ARG2(*call);
     1588        uint32_t advertisement = (uint32_t) ipc_get_arg2(call);
    15891589
    15901590        errno_t rc = nic_iface->autoneg_enable(dev, advertisement);
     
    16641664        }
    16651665
    1666         int allow_send = (int) IPC_GET_ARG2(*call);
    1667         int allow_receive = (int) IPC_GET_ARG3(*call);
    1668         uint16_t pause = (uint16_t) IPC_GET_ARG4(*call);
     1666        int allow_send = (int) ipc_get_arg2(call);
     1667        int allow_receive = (int) ipc_get_arg3(call);
     1668        uint16_t pause = (uint16_t) ipc_get_arg4(call);
    16691669
    16701670        errno_t rc = nic_iface->set_pause(dev, allow_send, allow_receive,
     
    16821682        }
    16831683
    1684         size_t max_count = IPC_GET_ARG2(*call);
     1684        size_t max_count = ipc_get_arg2(call);
    16851685        nic_address_t *address_list = NULL;
    16861686
     
    17331733
    17341734        size_t length;
    1735         nic_unicast_mode_t mode = IPC_GET_ARG2(*call);
    1736         size_t address_count = IPC_GET_ARG3(*call);
     1735        nic_unicast_mode_t mode = ipc_get_arg2(call);
     1736        size_t address_count = ipc_get_arg3(call);
    17371737        nic_address_t *address_list = NULL;
    17381738
     
    17851785        }
    17861786
    1787         size_t max_count = IPC_GET_ARG2(*call);
     1787        size_t max_count = ipc_get_arg2(call);
    17881788        nic_address_t *address_list = NULL;
    17891789
     
    18351835        nic_iface_t *nic_iface = (nic_iface_t *) iface;
    18361836
    1837         nic_multicast_mode_t mode = IPC_GET_ARG2(*call);
    1838         size_t address_count = IPC_GET_ARG3(*call);
     1837        nic_multicast_mode_t mode = ipc_get_arg2(call);
     1838        size_t address_count = ipc_get_arg3(call);
    18391839        nic_address_t *address_list = NULL;
    18401840
     
    19031903        }
    19041904
    1905         nic_broadcast_mode_t mode = IPC_GET_ARG2(*call);
     1905        nic_broadcast_mode_t mode = ipc_get_arg2(call);
    19061906
    19071907        errno_t rc = nic_iface->broadcast_set_mode(dev, mode);
     
    19331933        }
    19341934
    1935         uint32_t mode = IPC_GET_ARG2(*call);
     1935        uint32_t mode = ipc_get_arg2(call);
    19361936
    19371937        errno_t rc = nic_iface->defective_set_mode(dev, mode);
     
    19481948        }
    19491949
    1950         size_t max_count = IPC_GET_ARG2(*call);
     1950        size_t max_count = ipc_get_arg2(call);
    19511951        nic_address_t *address_list = NULL;
    19521952
     
    19981998
    19991999        size_t length;
    2000         size_t address_count = IPC_GET_ARG2(*call);
     2000        size_t address_count = ipc_get_arg2(call);
    20012001        nic_address_t *address_list = NULL;
    20022002
     
    20812081        nic_vlan_mask_t vlan_mask;
    20822082        nic_vlan_mask_t *vlan_mask_pointer = NULL;
    2083         bool vlan_mask_set = (bool) IPC_GET_ARG2(*call);
     2083        bool vlan_mask_set = (bool) ipc_get_arg2(call);
    20842084
    20852085        if (vlan_mask_set) {
     
    21242124        }
    21252125
    2126         uint16_t tag = (uint16_t) IPC_GET_ARG2(*call);
    2127         bool add = (int) IPC_GET_ARG3(*call);
    2128         bool strip = (int) IPC_GET_ARG4(*call);
     2126        uint16_t tag = (uint16_t) ipc_get_arg2(call);
     2127        bool add = (int) ipc_get_arg3(call);
     2128        bool strip = (int) ipc_get_arg4(call);
    21292129
    21302130        errno_t rc = nic_iface->vlan_set_tag(dev, tag, add, strip);
     
    21372137        nic_iface_t *nic_iface = (nic_iface_t *) iface;
    21382138
    2139         int send_data = (int) IPC_GET_ARG3(*call);
     2139        int send_data = (int) ipc_get_arg3(call);
    21402140        ipc_call_t data;
    21412141
     
    21752175
    21762176        nic_wv_id_t id = 0;
    2177         nic_wv_type_t type = (nic_wv_type_t) IPC_GET_ARG2(*call);
     2177        nic_wv_type_t type = (nic_wv_type_t) ipc_get_arg2(call);
    21782178
    21792179        errno_t rc = nic_iface->wol_virtue_add(dev, type, virtue, length, &id);
     
    21922192        }
    21932193
    2194         nic_wv_id_t id = (nic_wv_id_t) IPC_GET_ARG2(*call);
     2194        nic_wv_id_t id = (nic_wv_id_t) ipc_get_arg2(call);
    21952195
    21962196        errno_t rc = nic_iface->wol_virtue_remove(dev, id);
     
    22082208        }
    22092209
    2210         nic_wv_id_t id = (nic_wv_id_t) IPC_GET_ARG2(*call);
    2211         size_t max_length = IPC_GET_ARG3(*call);
     2210        nic_wv_id_t id = (nic_wv_id_t) ipc_get_arg2(call);
     2211        size_t max_length = ipc_get_arg3(call);
    22122212        nic_wv_type_t type = NIC_WV_NONE;
    22132213        size_t length = 0;
     
    22592259        }
    22602260
    2261         nic_wv_type_t type = (nic_wv_type_t) IPC_GET_ARG2(*call);
    2262         size_t max_count = IPC_GET_ARG3(*call);
     2261        nic_wv_type_t type = (nic_wv_type_t) ipc_get_arg2(call);
     2262        size_t max_count = ipc_get_arg3(call);
    22632263        size_t count = 0;
    22642264        nic_wv_id_t *id_list = NULL;
     
    23102310
    23112311        int count = -1;
    2312         nic_wv_type_t type = (nic_wv_type_t) IPC_GET_ARG2(*call);
     2312        nic_wv_type_t type = (nic_wv_type_t) ipc_get_arg2(call);
    23132313
    23142314        errno_t rc = nic_iface->wol_virtue_get_caps(dev, type, &count);
     
    23252325        }
    23262326
    2327         size_t max_length = (size_t) IPC_GET_ARG2(*call);
     2327        size_t max_length = (size_t) ipc_get_arg2(call);
    23282328        size_t frame_length = 0;
    23292329        nic_wv_type_t type = NIC_WV_NONE;
     
    23862386        }
    23872387
    2388         uint32_t mask = (uint32_t) IPC_GET_ARG2(*call);
    2389         uint32_t active = (uint32_t) IPC_GET_ARG3(*call);
     2388        uint32_t mask = (uint32_t) ipc_get_arg2(call);
     2389        uint32_t active = (uint32_t) ipc_get_arg3(call);
    23902390
    23912391        errno_t rc = nic_iface->offload_set(dev, mask, active);
     
    24032403
    24042404        nic_poll_mode_t mode = NIC_POLL_IMMEDIATE;
    2405         int request_data = IPC_GET_ARG2(*call);
     2405        int request_data = ipc_get_arg2(call);
    24062406        struct timespec period = {
    24072407                .tv_sec = 0,
     
    24382438        nic_iface_t *nic_iface = (nic_iface_t *) iface;
    24392439
    2440         nic_poll_mode_t mode = IPC_GET_ARG2(*call);
    2441         int has_period = IPC_GET_ARG3(*call);
     2440        nic_poll_mode_t mode = ipc_get_arg2(call);
     2441        int has_period = ipc_get_arg3(call);
    24422442        struct timespec period_buf;
    24432443        struct timespec *period = NULL;
Note: See TracChangeset for help on using the changeset viewer.