Changeset fafb8e5 in mainline for uspace/lib/c/generic/io
- 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)
- Location:
- uspace/lib/c/generic/io
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/io/chardev.c
reb13ef8 rfafb8e5 125 125 } 126 126 127 *nread = IPC_GET_ARG2(&answer);127 *nread = ipc_get_arg2(&answer); 128 128 /* In case of partial success, ARG1 contains the error code */ 129 return (errno_t) IPC_GET_ARG1(&answer);129 return (errno_t) ipc_get_arg1(&answer); 130 130 131 131 } … … 176 176 } 177 177 178 *nwritten = IPC_GET_ARG2(&answer);178 *nwritten = ipc_get_arg2(&answer); 179 179 /* In case of partial success, ARG1 contains the error code */ 180 return (errno_t) IPC_GET_ARG1(&answer);180 return (errno_t) ipc_get_arg1(&answer); 181 181 } 182 182 -
uspace/lib/c/generic/io/chardev_srv.c
reb13ef8 rfafb8e5 51 51 errno_t rc; 52 52 53 flags = IPC_GET_ARG1(icall);53 flags = ipc_get_arg1(icall); 54 54 55 55 ipc_call_t call; … … 154 154 ipc_call_t call; 155 155 async_get_call(&call); 156 sysarg_t method = IPC_GET_IMETHOD(&call);156 sysarg_t method = ipc_get_imethod(&call); 157 157 158 158 if (!method) { -
uspace/lib/c/generic/io/con_srv.c
reb13ef8 rfafb8e5 44 44 static errno_t console_ev_encode(cons_event_t *event, ipc_call_t *icall) 45 45 { 46 IPC_SET_ARG1(icall, event->type);46 ipc_set_arg1(icall, event->type); 47 47 48 48 switch (event->type) { 49 49 case CEV_KEY: 50 IPC_SET_ARG2(icall, event->ev.key.type);51 IPC_SET_ARG3(icall, event->ev.key.key);52 IPC_SET_ARG4(icall, event->ev.key.mods);53 IPC_SET_ARG5(icall, event->ev.key.c);50 ipc_set_arg2(icall, event->ev.key.type); 51 ipc_set_arg3(icall, event->ev.key.key); 52 ipc_set_arg4(icall, event->ev.key.mods); 53 ipc_set_arg5(icall, event->ev.key.c); 54 54 break; 55 55 case CEV_POS: 56 IPC_SET_ARG2(icall, (event->ev.pos.pos_id << 16) | (event->ev.pos.type & 0xffff));57 IPC_SET_ARG3(icall, event->ev.pos.btn_num);58 IPC_SET_ARG4(icall, event->ev.pos.hpos);59 IPC_SET_ARG5(icall, event->ev.pos.vpos);56 ipc_set_arg2(icall, (event->ev.pos.pos_id << 16) | (event->ev.pos.type & 0xffff)); 57 ipc_set_arg3(icall, event->ev.pos.btn_num); 58 ipc_set_arg4(icall, event->ev.pos.hpos); 59 ipc_set_arg5(icall, event->ev.pos.vpos); 60 60 break; 61 61 default: … … 158 158 sysarg_t row; 159 159 160 col = IPC_GET_ARG1(icall);161 row = IPC_GET_ARG2(icall);160 col = ipc_get_arg1(icall); 161 row = ipc_get_arg2(icall); 162 162 163 163 if (srv->srvs->ops->set_pos == NULL) { … … 218 218 console_style_t style; 219 219 220 style = IPC_GET_ARG1(icall);220 style = ipc_get_arg1(icall); 221 221 222 222 if (srv->srvs->ops->set_style == NULL) { … … 235 235 console_color_attr_t flags; 236 236 237 bgcolor = IPC_GET_ARG1(icall);238 fgcolor = IPC_GET_ARG2(icall);239 flags = IPC_GET_ARG3(icall);237 bgcolor = ipc_get_arg1(icall); 238 fgcolor = ipc_get_arg2(icall); 239 flags = ipc_get_arg3(icall); 240 240 241 241 if (srv->srvs->ops->set_color == NULL) { … … 253 253 pixel_t fgcolor; 254 254 255 bgcolor = IPC_GET_ARG1(icall);256 fgcolor = IPC_GET_ARG2(icall);255 bgcolor = ipc_get_arg1(icall); 256 fgcolor = ipc_get_arg2(icall); 257 257 258 258 if (srv->srvs->ops->set_rgb_color == NULL) { … … 269 269 bool show; 270 270 271 show = IPC_GET_ARG1(icall);271 show = ipc_get_arg1(icall); 272 272 273 273 if (srv->srvs->ops->set_cursor_visibility == NULL) { … … 303 303 } 304 304 305 async_answer_5(icall, rc, IPC_GET_ARG1(&result), IPC_GET_ARG2(&result),306 IPC_GET_ARG3(&result), IPC_GET_ARG4(&result), IPC_GET_ARG5(&result));305 async_answer_5(icall, rc, ipc_get_arg1(&result), ipc_get_arg2(&result), 306 ipc_get_arg3(&result), ipc_get_arg4(&result), ipc_get_arg5(&result)); 307 307 } 308 308 … … 364 364 break; 365 365 366 sysarg_t method = IPC_GET_IMETHOD(&call);366 sysarg_t method = ipc_get_imethod(&call); 367 367 368 368 if (!method) { -
uspace/lib/c/generic/io/console.c
reb13ef8 rfafb8e5 156 156 static errno_t console_ev_decode(ipc_call_t *call, cons_event_t *event) 157 157 { 158 event->type = IPC_GET_ARG1(call);158 event->type = ipc_get_arg1(call); 159 159 160 160 switch (event->type) { 161 161 case CEV_KEY: 162 event->ev.key.type = IPC_GET_ARG2(call);163 event->ev.key.key = IPC_GET_ARG3(call);164 event->ev.key.mods = IPC_GET_ARG4(call);165 event->ev.key.c = IPC_GET_ARG5(call);162 event->ev.key.type = ipc_get_arg2(call); 163 event->ev.key.key = ipc_get_arg3(call); 164 event->ev.key.mods = ipc_get_arg4(call); 165 event->ev.key.c = ipc_get_arg5(call); 166 166 break; 167 167 case CEV_POS: 168 event->ev.pos.pos_id = IPC_GET_ARG2(call) >> 16;169 event->ev.pos.type = IPC_GET_ARG2(call) & 0xffff;170 event->ev.pos.btn_num = IPC_GET_ARG3(call);171 event->ev.pos.hpos = IPC_GET_ARG4(call);172 event->ev.pos.vpos = IPC_GET_ARG5(call);168 event->ev.pos.pos_id = ipc_get_arg2(call) >> 16; 169 event->ev.pos.type = ipc_get_arg2(call) & 0xffff; 170 event->ev.pos.btn_num = ipc_get_arg3(call); 171 event->ev.pos.hpos = ipc_get_arg4(call); 172 event->ev.pos.vpos = ipc_get_arg5(call); 173 173 break; 174 174 default: -
uspace/lib/c/generic/io/input.c
reb13ef8 rfafb8e5 112 112 errno_t rc; 113 113 114 type = IPC_GET_ARG1(call);115 key = IPC_GET_ARG2(call);116 mods = IPC_GET_ARG3(call);117 c = IPC_GET_ARG4(call);114 type = ipc_get_arg1(call); 115 key = ipc_get_arg2(call); 116 mods = ipc_get_arg3(call); 117 c = ipc_get_arg4(call); 118 118 119 119 rc = input->ev_ops->key(input, type, key, mods, c); … … 127 127 errno_t rc; 128 128 129 dx = IPC_GET_ARG1(call);130 dy = IPC_GET_ARG2(call);129 dx = ipc_get_arg1(call); 130 dy = ipc_get_arg2(call); 131 131 132 132 rc = input->ev_ops->move(input, dx, dy); … … 142 142 errno_t rc; 143 143 144 x = IPC_GET_ARG1(call);145 y = IPC_GET_ARG2(call);146 max_x = IPC_GET_ARG3(call);147 max_y = IPC_GET_ARG4(call);144 x = ipc_get_arg1(call); 145 y = ipc_get_arg2(call); 146 max_x = ipc_get_arg3(call); 147 max_y = ipc_get_arg4(call); 148 148 149 149 rc = input->ev_ops->abs_move(input, x, y, max_x, max_y); … … 157 157 errno_t rc; 158 158 159 bnum = IPC_GET_ARG1(call);160 press = IPC_GET_ARG2(call);159 bnum = ipc_get_arg1(call); 160 press = ipc_get_arg2(call); 161 161 162 162 rc = input->ev_ops->button(input, bnum, press); … … 172 172 async_get_call(&call); 173 173 174 if (! IPC_GET_IMETHOD(&call)) {174 if (!ipc_get_imethod(&call)) { 175 175 async_answer_0(&call, EOK); 176 176 return; 177 177 } 178 178 179 switch ( IPC_GET_IMETHOD(&call)) {179 switch (ipc_get_imethod(&call)) { 180 180 case INPUT_EVENT_ACTIVE: 181 181 input_ev_active(input, &call); -
uspace/lib/c/generic/io/log.c
reb13ef8 rfafb8e5 208 208 return parent; 209 209 210 return IPC_GET_ARG1(&answer);210 return ipc_get_arg1(&answer); 211 211 } 212 212 -
uspace/lib/c/generic/io/output.c
reb13ef8 rfafb8e5 100 100 return 0; 101 101 102 return (frontbuf_handle_t) IPC_GET_ARG1(&answer);102 return (frontbuf_handle_t) ipc_get_arg1(&answer); 103 103 } 104 104
Note:
See TracChangeset
for help on using the changeset viewer.