Changeset fafb8e5 in mainline for uspace/srv/devman/drv_conn.c
- Timestamp:
- 2019-02-06T13:25:12Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 95a47b0
- Parents:
- eb13ef8
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-02 14:10:59)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-06 13:25:12)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/devman/drv_conn.c
reb13ef8 rfafb8e5 169 169 170 170 async_get_call(&call); 171 if (DEVMAN_ADD_MATCH_ID != IPC_GET_IMETHOD(&call)) {171 if (DEVMAN_ADD_MATCH_ID != ipc_get_imethod(&call)) { 172 172 log_msg(LOG_DEFAULT, LVL_ERROR, 173 173 "Invalid protocol when trying to receive match id."); … … 185 185 async_answer_0(&call, EOK); 186 186 187 match_id->score = IPC_GET_ARG1(&call);187 match_id->score = ipc_get_arg1(&call); 188 188 189 189 char *match_id_str; … … 230 230 static void devman_add_function(ipc_call_t *call) 231 231 { 232 fun_type_t ftype = (fun_type_t) IPC_GET_ARG1(call);233 devman_handle_t dev_handle = IPC_GET_ARG2(call);234 sysarg_t match_count = IPC_GET_ARG3(call);232 fun_type_t ftype = (fun_type_t) ipc_get_arg1(call); 233 devman_handle_t dev_handle = ipc_get_arg2(call); 234 sysarg_t match_count = ipc_get_arg3(call); 235 235 dev_tree_t *tree = &device_tree; 236 236 … … 330 330 static void devman_add_function_to_cat(ipc_call_t *call) 331 331 { 332 devman_handle_t handle = IPC_GET_ARG1(call);332 devman_handle_t handle = ipc_get_arg1(call); 333 333 category_id_t cat_id; 334 334 errno_t rc; … … 385 385 log_msg(LOG_DEFAULT, LVL_DEBUG, "devman_drv_fun_online()"); 386 386 387 fun = find_fun_node(&device_tree, IPC_GET_ARG1(icall));387 fun = find_fun_node(&device_tree, ipc_get_arg1(icall)); 388 388 if (fun == NULL) { 389 389 async_answer_0(icall, ENOENT); … … 425 425 errno_t rc; 426 426 427 fun = find_fun_node(&device_tree, IPC_GET_ARG1(icall));427 fun = find_fun_node(&device_tree, ipc_get_arg1(icall)); 428 428 if (fun == NULL) { 429 429 async_answer_0(icall, ENOENT); … … 458 458 static void devman_remove_function(ipc_call_t *call) 459 459 { 460 devman_handle_t fun_handle = IPC_GET_ARG1(call);460 devman_handle_t fun_handle = ipc_get_arg1(call); 461 461 dev_tree_t *tree = &device_tree; 462 462 errno_t rc; … … 602 602 async_get_call(&call); 603 603 604 if (! IPC_GET_IMETHOD(&call)) {604 if (!ipc_get_imethod(&call)) { 605 605 async_answer_0(&call, EOK); 606 606 break; 607 607 } 608 608 609 if ( IPC_GET_IMETHOD(&call) != DEVMAN_DRIVER_REGISTER) {609 if (ipc_get_imethod(&call) != DEVMAN_DRIVER_REGISTER) { 610 610 fibril_mutex_lock(&client->mutex); 611 611 driver = client->driver; … … 618 618 } 619 619 620 switch ( IPC_GET_IMETHOD(&call)) {620 switch (ipc_get_imethod(&call)) { 621 621 case DEVMAN_DRIVER_REGISTER: 622 622 fibril_mutex_lock(&client->mutex);
Note:
See TracChangeset
for help on using the changeset viewer.