Changeset 87b4baa in mainline for uspace/srv/devmap/devmap.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/devmap/devmap.c
r463e734 r87b4baa 61 61 link_t devices; 62 62 /** Phone asociated with this driver */ 63 ipcarg_t phone;63 sysarg_t phone; 64 64 /** Device driver name */ 65 65 char *name; … … 387 387 ipc_callid_t iid = async_get_call(&icall); 388 388 389 if (IPC_GET_ METHOD(icall) != DEVMAP_DRIVER_REGISTER) {389 if (IPC_GET_IMETHOD(icall) != DEVMAP_DRIVER_REGISTER) { 390 390 ipc_answer_0(iid, EREFUSED); 391 391 return NULL; … … 416 416 ipc_callid_t callid = async_get_call(&call); 417 417 418 if (IPC_GET_ METHOD(call) != IPC_M_CONNECT_TO_ME) {418 if (IPC_GET_IMETHOD(call) != IPC_M_CONNECT_TO_ME) { 419 419 free(driver->name); 420 420 free(driver); … … 823 823 } 824 824 825 ipcarg_t retval = async_data_read_finalize(callid, desc, size);825 sysarg_t retval = async_data_read_finalize(callid, desc, size); 826 826 827 827 free(desc); … … 890 890 } 891 891 892 ipcarg_t retval = async_data_read_finalize(callid, desc, size);892 sysarg_t retval = async_data_read_finalize(callid, desc, size); 893 893 894 894 free(desc); … … 964 964 fibril_mutex_unlock(&null_devices_mutex); 965 965 966 ipc_answer_1(iid, EOK, ( ipcarg_t) i);966 ipc_answer_1(iid, EOK, (sysarg_t) i); 967 967 } 968 968 969 969 static void devmap_null_destroy(ipc_callid_t iid, ipc_call_t *icall) 970 970 { 971 ipcarg_t i = IPC_GET_ARG1(*icall);971 sysarg_t i = IPC_GET_ARG1(*icall); 972 972 if (i >= NULL_DEVICES) { 973 973 ipc_answer_0(iid, ELIMIT); … … 1027 1027 ipc_callid_t callid = async_get_call(&call); 1028 1028 1029 switch (IPC_GET_ METHOD(call)) {1029 switch (IPC_GET_IMETHOD(call)) { 1030 1030 case IPC_M_PHONE_HUNGUP: 1031 1031 cont = false; … … 1078 1078 ipc_callid_t callid = async_get_call(&call); 1079 1079 1080 switch (IPC_GET_ METHOD(call)) {1080 switch (IPC_GET_IMETHOD(call)) { 1081 1081 case IPC_M_PHONE_HUNGUP: 1082 1082 cont = false; … … 1121 1121 { 1122 1122 /* Select interface */ 1123 switch (( ipcarg_t) (IPC_GET_ARG1(*icall))) {1123 switch ((sysarg_t) (IPC_GET_ARG1(*icall))) { 1124 1124 case DEVMAP_DRIVER: 1125 1125 devmap_connection_driver(iid, icall); … … 1154 1154 1155 1155 /* Register device mapper at naming service */ 1156 ipcarg_t phonead;1156 sysarg_t phonead; 1157 1157 if (ipc_connect_to_me(PHONE_NS, SERVICE_DEVMAP, 0, 0, &phonead) != 0) 1158 1158 return -1;
Note:
See TracChangeset
for help on using the changeset viewer.