Changeset cfb79747 in mainline for uspace/drv/char/ps2mouse/ps2mouse.c
- Timestamp:
- 2012-02-14T22:06:15Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a31aad1
- Parents:
- 199112e4 (diff), e10d41a (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/drv/char/ps2mouse/ps2mouse.c
r199112e4 rcfb79747 116 116 assert(mouse); 117 117 assert(dev); 118 mouse-> input_sess = NULL;118 mouse->client_sess = NULL; 119 119 mouse->parent_sess = devman_parent_device_connect(EXCHANGE_SERIALIZE, 120 120 dev->handle, IPC_FLAG_BLOCKING); … … 218 218 219 219 async_exch_t *exch = 220 async_exchange_begin(mouse-> input_sess);220 async_exchange_begin(mouse->client_sess); 221 221 if (!exch) { 222 222 ddf_msg(LVL_ERROR, 223 "Failed to create inputexchange.");223 "Failed creating exchange."); 224 224 continue; 225 225 } … … 277 277 278 278 async_exch_t *exch = 279 async_exchange_begin(mouse-> input_sess);279 async_exchange_begin(mouse->client_sess); 280 280 if (!exch) { 281 281 ddf_msg(LVL_ERROR, 282 "Failed to create inputexchange.");282 "Failed creating exchange."); 283 283 continue; 284 284 } … … 386 386 if (sess == NULL) { 387 387 ddf_msg(LVL_WARN, 388 "Failed to create start inputsession");388 "Failed creating client callback session"); 389 389 async_answer_0(icallid, EAGAIN); 390 390 break; 391 391 } 392 if (mouse-> input_sess == NULL) {393 mouse-> input_sess = sess;394 ddf_msg(LVL_DEBUG, "Set input session");392 if (mouse->client_sess == NULL) { 393 mouse->client_sess = sess; 394 ddf_msg(LVL_DEBUG, "Set client session"); 395 395 async_answer_0(icallid, EOK); 396 396 } else { 397 ddf_msg(LVL_ERROR, " Input session already set");397 ddf_msg(LVL_ERROR, "Client session already set"); 398 398 async_answer_0(icallid, ELIMIT); 399 399 }
Note:
See TracChangeset
for help on using the changeset viewer.