Changeset 87b4baa in mainline for uspace/srv/devman/main.c
- Timestamp:
- 2010-12-17T20:16:46Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 424558a
- Parents:
- 463e734 (diff), bbc74af7 (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/srv/devman/main.c
r463e734 r87b4baa 74 74 75 75 iid = async_get_call(&icall); 76 if (IPC_GET_ METHOD(icall) != DEVMAN_DRIVER_REGISTER) {76 if (IPC_GET_IMETHOD(icall) != DEVMAN_DRIVER_REGISTER) { 77 77 ipc_answer_0(iid, EREFUSED); 78 78 return NULL; … … 109 109 ipc_call_t call; 110 110 ipc_callid_t callid = async_get_call(&call); 111 if (IPC_GET_ METHOD(call) != IPC_M_CONNECT_TO_ME) {111 if (IPC_GET_IMETHOD(call) != IPC_M_CONNECT_TO_ME) { 112 112 ipc_answer_0(callid, ENOTSUP); 113 113 ipc_answer_0(iid, ENOTSUP); … … 141 141 142 142 callid = async_get_call(&call); 143 if (DEVMAN_ADD_MATCH_ID != IPC_GET_ METHOD(call)) {143 if (DEVMAN_ADD_MATCH_ID != IPC_GET_IMETHOD(call)) { 144 144 printf(NAME ": ERROR: devman_receive_match_id - invalid " 145 145 "protocol.\n"); … … 184 184 * @return Zero on success, negative error code otherwise. 185 185 */ 186 static int devman_receive_match_ids( ipcarg_t match_count,186 static int devman_receive_match_ids(sysarg_t match_count, 187 187 match_id_list_t *match_ids) 188 188 { … … 211 211 { 212 212 devman_handle_t parent_handle = IPC_GET_ARG1(*call); 213 ipcarg_t match_count = IPC_GET_ARG2(*call);213 sysarg_t match_count = IPC_GET_ARG2(*call); 214 214 dev_tree_t *tree = &device_tree; 215 215 … … 246 246 247 247 /* 248 * Try to find suitable driver and assign it to the device.249 * We do not want to block current fibril that is used toprocessing250 * incoming calls: we will launch a separate fibril to handle 251 * the driver assigning. That is because assign_driver can actually252 * includetask spawning which could take some time.248 * Try to find a suitable driver and assign it to the device. We do 249 * not want to block the current fibril that is used for processing 250 * incoming calls: we will launch a separate fibril to handle the 251 * driver assigning. That is because assign_driver can actually include 252 * task spawning which could take some time. 253 253 */ 254 254 fid_t assign_fibril = fibril_create(assign_driver_fibril, node); … … 367 367 callid = async_get_call(&call); 368 368 369 switch (IPC_GET_ METHOD(call)) {369 switch (IPC_GET_IMETHOD(call)) { 370 370 case IPC_M_PHONE_HUNGUP: 371 371 cont = false; … … 420 420 ipc_callid_t callid = async_get_call(&call); 421 421 422 switch (IPC_GET_ METHOD(call)) {422 switch (IPC_GET_IMETHOD(call)) { 423 423 case IPC_M_PHONE_HUNGUP: 424 424 cont = false; … … 486 486 static void devman_connection_devmapper(ipc_callid_t iid, ipc_call_t *icall) 487 487 { 488 devmap_handle_t devmap_handle = IPC_GET_ METHOD(*icall);488 devmap_handle_t devmap_handle = IPC_GET_IMETHOD(*icall); 489 489 node_t *dev; 490 490 … … 521 521 * passes device handle to the driver as an ipc method.) 522 522 */ 523 if (IPC_GET_ METHOD(*icall) != IPC_M_CONNECT_ME_TO)523 if (IPC_GET_IMETHOD(*icall) != IPC_M_CONNECT_ME_TO) 524 524 devman_connection_devmapper(iid, icall); 525 525 … … 531 531 532 532 /* Select interface. */ 533 switch (( ipcarg_t) (IPC_GET_ARG1(*icall))) {533 switch ((sysarg_t) (IPC_GET_ARG1(*icall))) { 534 534 case DEVMAN_DRIVER: 535 535 devman_connection_driver(iid, icall); … … 599 599 600 600 /* Register device manager at naming service. */ 601 ipcarg_t phonead;601 sysarg_t phonead; 602 602 if (ipc_connect_to_me(PHONE_NS, SERVICE_DEVMAN, 0, 0, &phonead) != 0) 603 603 return -1;
Note:
See TracChangeset
for help on using the changeset viewer.