Changeset a46e56b in mainline for uspace/drv/bus/adb/cuda_adb/cuda_adb.c
- Timestamp:
- 2018-03-22T06:49:35Z (7 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
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/adb/cuda_adb/cuda_adb.c
r3e242d2 ra46e56b 198 198 199 199 /** Device connection handler */ 200 static void cuda_dev_connection(cap_call_handle_t iid, ipc_call_t *icall, void *arg) 200 static void cuda_dev_connection(cap_call_handle_t icall_handle, 201 ipc_call_t *icall, void *arg) 201 202 { 202 203 adb_dev_t *dev = (adb_dev_t *) ddf_fun_data_get((ddf_fun_t *) arg); 203 cap_call_handle_t c allid;204 cap_call_handle_t chandle; 204 205 ipc_call_t call; 205 206 sysarg_t method; 206 207 207 208 /* Answer the IPC_M_CONNECT_ME_TO call. */ 208 async_answer_0(i id, EOK);209 async_answer_0(icall_handle, EOK); 209 210 210 211 while (true) { 211 c allid= async_get_call(&call);212 chandle = async_get_call(&call); 212 213 method = IPC_GET_IMETHOD(call); 213 214 214 215 if (!method) { 215 216 /* The other side has hung up. */ 216 async_answer_0(c allid, EOK);217 async_answer_0(chandle, EOK); 217 218 return; 218 219 } … … 222 223 if (sess != NULL) { 223 224 dev->client_sess = sess; 224 async_answer_0(c allid, EOK);225 async_answer_0(chandle, EOK); 225 226 } else { 226 async_answer_0(c allid, EINVAL);227 async_answer_0(chandle, EINVAL); 227 228 } 228 229 }
Note:
See TracChangeset
for help on using the changeset viewer.