Changeset 132ab5d1 in mainline for uspace/lib/drv/generic/remote_nic.c
- Timestamp:
- 2018-01-30T03:20:45Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5a6cc679
- Parents:
- 8bfb163 (diff), 6a5d05b (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/remote_nic.c
r8bfb163 r132ab5d1 105 105 aid_t req = async_send_1(exch, DEV_IFACE_ID(NIC_DEV_IFACE), 106 106 NIC_SEND_MESSAGE, &answer); 107 sysarg_t retval = async_data_write_start(exch, data, size);107 int retval = async_data_write_start(exch, data, size); 108 108 109 109 async_exchange_end(exch); … … 131 131 ipc_call_t answer; 132 132 int rc; 133 sysarg_t retval;133 int retval; 134 134 135 135 async_exch_t *exch = async_exchange_begin(dev_sess); … … 147 147 148 148 async_wait_for(req, &retval); 149 return (int)retval;149 return retval; 150 150 } 151 151 … … 210 210 async_exchange_end(exch); 211 211 212 sysarg_t res;212 int res; 213 213 async_wait_for(aid, &res); 214 214 … … 216 216 return rc; 217 217 218 return (int)res;218 return res; 219 219 } 220 220 … … 237 237 async_exchange_end(exch); 238 238 239 sysarg_t res;239 int res; 240 240 async_wait_for(aid, &res); 241 241 … … 243 243 return rc; 244 244 245 return (int)res;245 return res; 246 246 } 247 247 … … 295 295 async_exchange_end(exch); 296 296 297 sysarg_t res;297 int res; 298 298 async_wait_for(aid, &res); 299 299 … … 301 301 return rc; 302 302 303 return (int)res;303 return res; 304 304 } 305 305 … … 629 629 async_exchange_end(exch); 630 630 631 sysarg_t res;631 int res; 632 632 async_wait_for(message_id, &res); 633 633 … … 635 635 return rc; 636 636 637 return (int)res;637 return res; 638 638 } 639 639 … … 717 717 async_exchange_end(exch); 718 718 719 sysarg_t res;719 int res; 720 720 async_wait_for(message_id, &res); 721 721 … … 723 723 return rc; 724 724 725 return (int)res;725 return res; 726 726 } 727 727 … … 878 878 async_exchange_end(exch); 879 879 880 sysarg_t res;880 int res; 881 881 async_wait_for(message_id, &res); 882 882 … … 884 884 return rc; 885 885 886 return (int)res;886 return res; 887 887 } 888 888 … … 938 938 async_exchange_end(exch); 939 939 940 sysarg_t res;940 int res; 941 941 async_wait_for(message_id, &res); 942 942 … … 944 944 return rc; 945 945 946 return (int)res;946 return res; 947 947 } 948 948 … … 997 997 NIC_WOL_VIRTUE_ADD, (sysarg_t) type, send_data, &result); 998 998 999 sysarg_t res;999 int res; 1000 1000 if (send_data) { 1001 1001 int rc = async_data_write_start(exch, data, length); … … 1011 1011 1012 1012 *id = IPC_GET_ARG1(result); 1013 return (int)res;1013 return res; 1014 1014 } 1015 1015 … … 1311 1311 async_exchange_end(exch); 1312 1312 1313 sysarg_t res;1313 int res; 1314 1314 async_wait_for(message_id, &res); 1315 1315 … … 1317 1317 return rc; 1318 1318 1319 return (int)res;1319 return res; 1320 1320 } 1321 1321
Note:
See TracChangeset
for help on using the changeset viewer.