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