Changeset 338d54a7 in mainline for uspace/drv/hid/xtkbd/xtkbd.c
- Timestamp:
- 2018-03-10T22:55:07Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 850fd32
- Parents:
- 5ef16903
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/hid/xtkbd/xtkbd.c
r5ef16903 r338d54a7 338 338 const sysarg_t method = IPC_GET_IMETHOD(*icall); 339 339 xt_kbd_t *kbd = ddf_dev_data_get(ddf_fun_get_dev(fun)); 340 unsigned mods; 341 async_sess_t *sess; 340 342 341 343 switch (method) { 342 case KBDEV_SET_IND: {344 case KBDEV_SET_IND: 343 345 /* 344 346 * XT keyboards do not support setting mods, 345 347 * assume AT keyboard with Scan Code Set 1. 346 348 */ 347 const unsignedmods = IPC_GET_ARG1(*icall);349 mods = IPC_GET_ARG1(*icall); 348 350 const uint8_t status = 0 | 349 351 ((mods & KM_CAPS_LOCK) ? LI_CAPS : 0) | … … 362 364 async_answer_0(icallid, rc); 363 365 break; 364 }365 366 /* 366 367 * This might be ugly but async_callback_receive_start makes no 367 368 * difference for incorrect call and malloc failure. 368 369 */ 369 case IPC_M_CONNECT_TO_ME: { 370 async_sess_t *sess = 371 async_callback_receive_start(EXCHANGE_SERIALIZE, icall); 370 case IPC_M_CONNECT_TO_ME: 371 sess = async_callback_receive_start(EXCHANGE_SERIALIZE, icall); 372 372 373 373 /* Probably ENOMEM error, try again. */ … … 389 389 390 390 break; 391 }392 391 default: 393 392 ddf_msg(LVL_ERROR, "Unknown method: %d.", (int)method);
Note:
See TracChangeset
for help on using the changeset viewer.