Changes in uspace/srv/devmap/devmap.c [991f645:228e490] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/devmap/devmap.c
r991f645 r228e490 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); … … 555 555 if (devmap_device_find_name(namespace->name, device->name) != NULL) { 556 556 printf("%s: Device '%s/%s' already registered\n", NAME, 557 device->namespace , device->name);557 device->namespace->name, device->name); 558 558 devmap_namespace_destroy(namespace); 559 559 fibril_mutex_unlock(&devices_list_mutex); … … 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; … … 1052 1052 break; 1053 1053 default: 1054 if (!(callid & IPC_CALLID_NOTIFICATION)) 1055 ipc_answer_0(callid, ENOENT); 1054 ipc_answer_0(callid, ENOENT); 1056 1055 } 1057 1056 } … … 1079 1078 ipc_callid_t callid = async_get_call(&call); 1080 1079 1081 switch (IPC_GET_ METHOD(call)) {1080 switch (IPC_GET_IMETHOD(call)) { 1082 1081 case IPC_M_PHONE_HUNGUP: 1083 1082 cont = false; … … 1111 1110 break; 1112 1111 default: 1113 if (!(callid & IPC_CALLID_NOTIFICATION)) 1114 ipc_answer_0(callid, ENOENT); 1112 ipc_answer_0(callid, ENOENT); 1115 1113 } 1116 1114 } … … 1123 1121 { 1124 1122 /* Select interface */ 1125 switch (( ipcarg_t) (IPC_GET_ARG1(*icall))) {1123 switch ((sysarg_t) (IPC_GET_ARG1(*icall))) { 1126 1124 case DEVMAP_DRIVER: 1127 1125 devmap_connection_driver(iid, icall); … … 1156 1154 1157 1155 /* Register device mapper at naming service */ 1158 ipcarg_t phonead;1156 sysarg_t phonead; 1159 1157 if (ipc_connect_to_me(PHONE_NS, SERVICE_DEVMAP, 0, 0, &phonead) != 0) 1160 1158 return -1;
Note:
See TracChangeset
for help on using the changeset viewer.