Changeset a46e56b in mainline for uspace/srv/net/ethip/ethip_nic.c
- Timestamp:
- 2018-03-22T06:49:35Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 77f0a1d
- Parents:
- 3e242d2
- git-author:
- Jakub Jermar <jakub@…> (2018-03-21 23:29:06)
- git-committer:
- Jakub Jermar <jakub@…> (2018-03-22 06:49:35)
- File:
-
- 1 edited
-
uspace/srv/net/ethip/ethip_nic.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/ethip/ethip_nic.c
r3e242d2 ra46e56b 52 52 53 53 static errno_t ethip_nic_open(service_id_t sid); 54 static void ethip_nic_cb_conn(cap_call_handle_t i id, ipc_call_t *icall, void *arg);54 static void ethip_nic_cb_conn(cap_call_handle_t icall_handle, ipc_call_t *icall, void *arg); 55 55 56 56 static LIST_INITIALIZE(ethip_nic_list); … … 229 229 } 230 230 231 static void ethip_nic_addr_changed(ethip_nic_t *nic, cap_call_handle_t c allid,231 static void ethip_nic_addr_changed(ethip_nic_t *nic, cap_call_handle_t chandle, 232 232 ipc_call_t *call) 233 233 { … … 255 255 256 256 free(addr); 257 async_answer_0(c allid, EOK);258 } 259 260 static void ethip_nic_received(ethip_nic_t *nic, cap_call_handle_t c allid,257 async_answer_0(chandle, EOK); 258 } 259 260 static void ethip_nic_received(ethip_nic_t *nic, cap_call_handle_t chandle, 261 261 ipc_call_t *call) 262 262 { … … 282 282 283 283 log_msg(LOG_DEFAULT, LVL_DEBUG, "ethip_nic_received() done, rc=%s", str_error_name(rc)); 284 async_answer_0(c allid, rc);285 } 286 287 static void ethip_nic_device_state(ethip_nic_t *nic, cap_call_handle_t c allid,284 async_answer_0(chandle, rc); 285 } 286 287 static void ethip_nic_device_state(ethip_nic_t *nic, cap_call_handle_t chandle, 288 288 ipc_call_t *call) 289 289 { 290 290 log_msg(LOG_DEFAULT, LVL_DEBUG, "ethip_nic_device_state()"); 291 async_answer_0(c allid, ENOTSUP);292 } 293 294 static void ethip_nic_cb_conn(cap_call_handle_t i id, ipc_call_t *icall, void *arg)291 async_answer_0(chandle, ENOTSUP); 292 } 293 294 static void ethip_nic_cb_conn(cap_call_handle_t icall_handle, ipc_call_t *icall, void *arg) 295 295 { 296 296 ethip_nic_t *nic = (ethip_nic_t *)arg; … … 300 300 while (true) { 301 301 ipc_call_t call; 302 cap_call_handle_t c allid= async_get_call(&call);302 cap_call_handle_t chandle = async_get_call(&call); 303 303 304 304 if (!IPC_GET_IMETHOD(call)) { … … 309 309 switch (IPC_GET_IMETHOD(call)) { 310 310 case NIC_EV_ADDR_CHANGED: 311 ethip_nic_addr_changed(nic, c allid, &call);311 ethip_nic_addr_changed(nic, chandle, &call); 312 312 break; 313 313 case NIC_EV_RECEIVED: 314 ethip_nic_received(nic, c allid, &call);314 ethip_nic_received(nic, chandle, &call); 315 315 break; 316 316 case NIC_EV_DEVICE_STATE: 317 ethip_nic_device_state(nic, c allid, &call);317 ethip_nic_device_state(nic, chandle, &call); 318 318 break; 319 319 default: 320 320 log_msg(LOG_DEFAULT, LVL_DEBUG, "unknown IPC method: %" PRIun, IPC_GET_IMETHOD(call)); 321 async_answer_0(c allid, ENOTSUP);321 async_answer_0(chandle, ENOTSUP); 322 322 } 323 323 }
Note:
See TracChangeset
for help on using the changeset viewer.
