Changeset 4f14e1f8 in mainline
- Timestamp:
- 2011-01-29T12:04:43Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0b6931a
- Parents:
- 8add9ca5
- Location:
- uspace/srv
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/fb/serial_console.c
r8add9ca5 r4f14e1f8 318 318 319 319 if (client_connected) { 320 ipc_answer_0(iid, ELIMIT);320 async_answer_0(iid, ELIMIT); 321 321 return; 322 322 } 323 323 324 324 client_connected = 1; 325 ipc_answer_0(iid, EOK);325 async_answer_0(iid, EOK); 326 326 327 327 /* Clear the terminal, set scrolling region … … 347 347 case IPC_M_PHONE_HUNGUP: 348 348 client_connected = 0; 349 ipc_answer_0(callid, EOK);349 async_answer_0(callid, EOK); 350 350 351 351 /* Exit thread */ … … 406 406 break; 407 407 case FB_GET_CSIZE: 408 ipc_answer_2(callid, EOK, scr_width, scr_height);408 async_answer_2(callid, EOK, scr_width, scr_height); 409 409 continue; 410 410 case FB_GET_COLOR_CAP: 411 ipc_answer_1(callid, EOK, color ? FB_CCAP_INDEXED :411 async_answer_1(callid, EOK, color ? FB_CCAP_INDEXED : 412 412 FB_CCAP_STYLE); 413 413 continue; … … 477 477 retval = ENOENT; 478 478 } 479 ipc_answer_0(callid, retval);479 async_answer_0(callid, retval); 480 480 } 481 481 } -
uspace/srv/hid/kbd/port/adb.c
r8add9ca5 r4f14e1f8 70 70 71 71 /* NB: The callback connection is slotted for removal */ 72 sysarg_t taskhash; 73 sysarg_t phonehash; 74 if (ipc_connect_to_me(dev_phone, 0, 0, 0, &taskhash, &phonehash) != 0) { 72 if (async_connect_to_me(dev_phone, 0, 0, 0, kbd_port_events) != 0) { 75 73 printf(NAME ": Failed to create callback from device\n"); 76 74 return false; 77 75 } 78 79 async_new_connection(taskhash, phonehash, 0, NULL, kbd_port_events);80 76 81 77 return 0; … … 115 111 retval = ENOENT; 116 112 } 117 ipc_answer_0(callid, retval);113 async_answer_0(callid, retval); 118 114 } 119 115 } -
uspace/srv/hw/bus/cuda_adb/cuda_adb.c
r8add9ca5 r4f14e1f8 209 209 210 210 if (dev_addr < 0) { 211 ipc_answer_0(iid, EINVAL);211 async_answer_0(iid, EINVAL); 212 212 return; 213 213 } 214 214 215 215 /* Answer the IPC_M_CONNECT_ME_TO call. */ 216 ipc_answer_0(iid, EOK);216 async_answer_0(iid, EOK); 217 217 218 218 while (1) { … … 222 222 case IPC_M_PHONE_HUNGUP: 223 223 /* The other side has hung up. */ 224 ipc_answer_0(callid, EOK);224 async_answer_0(callid, EOK); 225 225 return; 226 226 case IPC_M_CONNECT_TO_ME: … … 245 245 break; 246 246 } 247 ipc_answer_0(callid, retval);247 async_answer_0(callid, retval); 248 248 } 249 249 }
Note:
See TracChangeset
for help on using the changeset viewer.