Changeset e98fe28c in mainline
- Timestamp:
- 2012-01-21T17:07:13Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8d7ec69d, eaa0c3f
- Parents:
- 01380b1
- Location:
- uspace/drv/char
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/char/ps2mouse/ps2mouse.c
r01380b1 re98fe28c 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 } -
uspace/drv/char/ps2mouse/ps2mouse.h
r01380b1 re98fe28c 43 43 ddf_fun_t *mouse_fun; /**< Mouse function. */ 44 44 async_sess_t *parent_sess; /**< Connection to device providing data. */ 45 async_sess_t * input_sess; /**< Callback connection to consumer. */45 async_sess_t *client_sess; /**< Callback connection to client. */ 46 46 fid_t polling_fibril; /**< Fibril retrieving an parsing data. */ 47 47 } ps2_mouse_t; -
uspace/drv/char/xtkbd/xtkbd.c
r01380b1 re98fe28c 206 206 assert(kbd); 207 207 assert(dev); 208 kbd-> input_sess = NULL;208 kbd->client_sess = NULL; 209 209 kbd->parent_sess = devman_parent_device_connect(EXCHANGE_SERIALIZE, 210 210 dev->handle, IPC_FLAG_BLOCKING); … … 296 296 if (key != 0) { 297 297 async_exch_t *exch = 298 async_exchange_begin(kbd-> input_sess);298 async_exchange_begin(kbd->client_sess); 299 299 if (!exch) { 300 300 ddf_msg(LVL_ERROR, 301 "Failed to create inputexchange.");301 "Failed creating exchange."); 302 302 continue; 303 303 } … … 352 352 if (sess == NULL) { 353 353 ddf_msg(LVL_WARN, 354 "Failed to create start inputsession");354 "Failed creating callback session"); 355 355 async_answer_0(icallid, EAGAIN); 356 356 break; 357 357 } 358 if (kbd-> input_sess == NULL) {359 kbd-> input_sess = sess;360 ddf_msg(LVL_DEBUG, "Set input session");358 if (kbd->client_sess == NULL) { 359 kbd->client_sess = sess; 360 ddf_msg(LVL_DEBUG, "Set client session"); 361 361 async_answer_0(icallid, EOK); 362 362 } else { 363 ddf_msg(LVL_ERROR, " Input session already set");363 ddf_msg(LVL_ERROR, "Client session already set"); 364 364 async_answer_0(icallid, ELIMIT); 365 365 } -
uspace/drv/char/xtkbd/xtkbd.h
r01380b1 re98fe28c 43 43 ddf_fun_t *kbd_fun; /**< Keyboard function. */ 44 44 async_sess_t *parent_sess; /**< Connection to device providing data. */ 45 async_sess_t * input_sess; /**< Callback connection to consumer. */45 async_sess_t *client_sess; /**< Callback connection to client. */ 46 46 fid_t polling_fibril; /**< Fibril retrieving an parsing data. */ 47 47 } xt_kbd_t;
Note:
See TracChangeset
for help on using the changeset viewer.