Changes in uspace/lib/drv/generic/remote_nic.c [09ab0a9a:fafb8e5] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/remote_nic.c
r09ab0a9a rfafb8e5 1010 1010 async_wait_for(message_id, &res); 1011 1011 1012 *id = IPC_GET_ARG1(result);1012 *id = ipc_get_arg1(&result); 1013 1013 return res; 1014 1014 } … … 1385 1385 assert(nic_iface->set_state); 1386 1386 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); 1388 1388 1389 1389 errno_t rc = nic_iface->set_state(dev, state); … … 1569 1569 } 1570 1570 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); 1574 1574 1575 1575 errno_t rc = nic_iface->set_operation_mode(dev, speed, duplex, role); … … 1586 1586 } 1587 1587 1588 uint32_t advertisement = (uint32_t) IPC_GET_ARG2(*call);1588 uint32_t advertisement = (uint32_t) ipc_get_arg2(call); 1589 1589 1590 1590 errno_t rc = nic_iface->autoneg_enable(dev, advertisement); … … 1664 1664 } 1665 1665 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); 1669 1669 1670 1670 errno_t rc = nic_iface->set_pause(dev, allow_send, allow_receive, … … 1682 1682 } 1683 1683 1684 size_t max_count = IPC_GET_ARG2(*call);1684 size_t max_count = ipc_get_arg2(call); 1685 1685 nic_address_t *address_list = NULL; 1686 1686 … … 1733 1733 1734 1734 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); 1737 1737 nic_address_t *address_list = NULL; 1738 1738 … … 1785 1785 } 1786 1786 1787 size_t max_count = IPC_GET_ARG2(*call);1787 size_t max_count = ipc_get_arg2(call); 1788 1788 nic_address_t *address_list = NULL; 1789 1789 … … 1835 1835 nic_iface_t *nic_iface = (nic_iface_t *) iface; 1836 1836 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); 1839 1839 nic_address_t *address_list = NULL; 1840 1840 … … 1903 1903 } 1904 1904 1905 nic_broadcast_mode_t mode = IPC_GET_ARG2(*call);1905 nic_broadcast_mode_t mode = ipc_get_arg2(call); 1906 1906 1907 1907 errno_t rc = nic_iface->broadcast_set_mode(dev, mode); … … 1933 1933 } 1934 1934 1935 uint32_t mode = IPC_GET_ARG2(*call);1935 uint32_t mode = ipc_get_arg2(call); 1936 1936 1937 1937 errno_t rc = nic_iface->defective_set_mode(dev, mode); … … 1948 1948 } 1949 1949 1950 size_t max_count = IPC_GET_ARG2(*call);1950 size_t max_count = ipc_get_arg2(call); 1951 1951 nic_address_t *address_list = NULL; 1952 1952 … … 1998 1998 1999 1999 size_t length; 2000 size_t address_count = IPC_GET_ARG2(*call);2000 size_t address_count = ipc_get_arg2(call); 2001 2001 nic_address_t *address_list = NULL; 2002 2002 … … 2081 2081 nic_vlan_mask_t vlan_mask; 2082 2082 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); 2084 2084 2085 2085 if (vlan_mask_set) { … … 2124 2124 } 2125 2125 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); 2129 2129 2130 2130 errno_t rc = nic_iface->vlan_set_tag(dev, tag, add, strip); … … 2137 2137 nic_iface_t *nic_iface = (nic_iface_t *) iface; 2138 2138 2139 int send_data = (int) IPC_GET_ARG3(*call);2139 int send_data = (int) ipc_get_arg3(call); 2140 2140 ipc_call_t data; 2141 2141 … … 2175 2175 2176 2176 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); 2178 2178 2179 2179 errno_t rc = nic_iface->wol_virtue_add(dev, type, virtue, length, &id); … … 2192 2192 } 2193 2193 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); 2195 2195 2196 2196 errno_t rc = nic_iface->wol_virtue_remove(dev, id); … … 2208 2208 } 2209 2209 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); 2212 2212 nic_wv_type_t type = NIC_WV_NONE; 2213 2213 size_t length = 0; … … 2259 2259 } 2260 2260 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); 2263 2263 size_t count = 0; 2264 2264 nic_wv_id_t *id_list = NULL; … … 2310 2310 2311 2311 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); 2313 2313 2314 2314 errno_t rc = nic_iface->wol_virtue_get_caps(dev, type, &count); … … 2325 2325 } 2326 2326 2327 size_t max_length = (size_t) IPC_GET_ARG2(*call);2327 size_t max_length = (size_t) ipc_get_arg2(call); 2328 2328 size_t frame_length = 0; 2329 2329 nic_wv_type_t type = NIC_WV_NONE; … … 2386 2386 } 2387 2387 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); 2390 2390 2391 2391 errno_t rc = nic_iface->offload_set(dev, mask, active); … … 2403 2403 2404 2404 nic_poll_mode_t mode = NIC_POLL_IMMEDIATE; 2405 int request_data = IPC_GET_ARG2(*call);2405 int request_data = ipc_get_arg2(call); 2406 2406 struct timespec period = { 2407 2407 .tv_sec = 0, … … 2438 2438 nic_iface_t *nic_iface = (nic_iface_t *) iface; 2439 2439 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); 2442 2442 struct timespec period_buf; 2443 2443 struct timespec *period = NULL;
Note:
See TracChangeset
for help on using the changeset viewer.