Changes in uspace/srv/hid/fb/ega.c [ffa2c8ef:369a5f8] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/fb/ega.c
rffa2c8ef r369a5f8 39 39 #include <align.h> 40 40 #include <async.h> 41 #include <ipc/ipc.h> 41 42 #include <errno.h> 42 43 #include <stdio.h> … … 45 46 #include <as.h> 46 47 #include <ipc/fb.h> 48 #include <ipc/ipc.h> 47 49 #include <ipc/ns.h> 48 50 #include <ipc/services.h> … … 228 230 static int save_screen(void) 229 231 { 230 sysarg_t i;232 ipcarg_t i; 231 233 232 234 /* Find empty screen */ … … 243 245 } 244 246 245 static int print_screen( sysarg_t i)247 static int print_screen(ipcarg_t i) 246 248 { 247 249 if ((i >= MAX_SAVED_SCREENS) || (saved_screens[i].data)) … … 260 262 261 263 if (client_connected) { 262 async_answer_0(iid, ELIMIT);264 ipc_answer_0(iid, ELIMIT); 263 265 return; 264 266 } … … 266 268 /* Accept connection */ 267 269 client_connected = 1; 268 async_answer_0(iid, EOK);270 ipc_answer_0(iid, EOK); 269 271 270 272 while (true) { … … 274 276 wchar_t c; 275 277 276 sysarg_t col;277 sysarg_t row;278 sysarg_t w;279 sysarg_t h;278 ipcarg_t col; 279 ipcarg_t row; 280 ipcarg_t w; 281 ipcarg_t h; 280 282 281 283 ssize_t rows; … … 288 290 uint32_t bg_rgb; 289 291 290 sysarg_t scr;292 ipcarg_t scr; 291 293 int retval; 292 294 293 switch (IPC_GET_ IMETHOD(call)) {295 switch (IPC_GET_METHOD(call)) { 294 296 case IPC_M_PHONE_HUNGUP: 295 297 client_connected = 0; 296 async_answer_0(callid, EOK);298 ipc_answer_0(callid, EOK); 297 299 298 300 /* Exit thread */ … … 330 332 break; 331 333 case FB_GET_CSIZE: 332 async_answer_2(callid, EOK, scr_width, scr_height);334 ipc_answer_2(callid, EOK, scr_width, scr_height); 333 335 continue; 334 336 case FB_GET_COLOR_CAP: 335 async_answer_1(callid, EOK, FB_CCAP_INDEXED);337 ipc_answer_1(callid, EOK, FB_CCAP_INDEXED); 336 338 continue; 337 339 case FB_CLEAR: … … 368 370 369 371 if (rows >= 0) { 370 if (( sysarg_t) rows > scr_height) {372 if ((ipcarg_t) rows > scr_height) { 371 373 retval = EINVAL; 372 374 break; 373 375 } 374 376 } else { 375 if (( sysarg_t) (-rows) > scr_height) {377 if ((ipcarg_t) (-rows) > scr_height) { 376 378 retval = EINVAL; 377 379 break; … … 438 440 retval = EINVAL; 439 441 } 440 async_answer_0(callid, retval);442 ipc_answer_0(callid, retval); 441 443 } 442 444 }
Note:
See TracChangeset
for help on using the changeset viewer.