Changes in uspace/srv/hid/console/gcons.c [79ae36dd:306061a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/console/gcons.c
r79ae36dd r306061a 35 35 #include <ipc/fb.h> 36 36 #include <async.h> 37 #include <async_obsolete.h>38 37 #include <stdio.h> 39 38 #include <sys/mman.h> … … 116 115 static void vp_switch(int vp) 117 116 { 118 async_ obsolete_msg_1(fbphone, FB_VIEWPORT_SWITCH, vp);117 async_msg_1(fbphone, FB_VIEWPORT_SWITCH, vp); 119 118 } 120 119 … … 122 121 static int vp_create(sysarg_t x, sysarg_t y, sysarg_t width, sysarg_t height) 123 122 { 124 return async_ obsolete_req_2_0(fbphone, FB_VIEWPORT_CREATE, (x << 16) | y,123 return async_req_2_0(fbphone, FB_VIEWPORT_CREATE, (x << 16) | y, 125 124 (width << 16) | height); 126 125 } … … 128 127 static void clear(void) 129 128 { 130 async_ obsolete_msg_0(fbphone, FB_CLEAR);129 async_msg_0(fbphone, FB_CLEAR); 131 130 } 132 131 133 132 static void set_rgb_color(uint32_t fgcolor, uint32_t bgcolor) 134 133 { 135 async_ obsolete_msg_2(fbphone, FB_SET_RGB_COLOR, fgcolor, bgcolor);134 async_msg_2(fbphone, FB_SET_RGB_COLOR, fgcolor, bgcolor); 136 135 } 137 136 … … 139 138 static void tran_putch(wchar_t ch, sysarg_t col, sysarg_t row) 140 139 { 141 async_ obsolete_msg_3(fbphone, FB_PUTCHAR, ch, col, row);140 async_msg_3(fbphone, FB_PUTCHAR, ch, col, row); 142 141 } 143 142 … … 150 149 151 150 if (ic_pixmaps[state] != -1) 152 async_ obsolete_msg_2(fbphone, FB_VP_DRAW_PIXMAP, cstatus_vp[index],151 async_msg_2(fbphone, FB_VP_DRAW_PIXMAP, cstatus_vp[index], 153 152 ic_pixmaps[state]); 154 153 … … 178 177 179 178 if (animation != -1) 180 async_ obsolete_msg_1(fbphone, FB_ANIM_START, animation);179 async_msg_1(fbphone, FB_ANIM_START, animation); 181 180 } else { 182 181 if (console_state[active_console] == CONS_DISCONNECTED_SEL) … … 259 258 { 260 259 if (animation != -1) 261 async_ obsolete_msg_1(fbphone, FB_ANIM_STOP, animation);260 async_msg_1(fbphone, FB_ANIM_STOP, animation); 262 261 263 262 active_console = KERNEL_CONSOLE; … … 295 294 296 295 if (active_console != KERNEL_CONSOLE) 297 async_ obsolete_msg_2(fbphone, FB_POINTER_MOVE, mouse_x, mouse_y);296 async_msg_2(fbphone, FB_POINTER_MOVE, mouse_x, mouse_y); 298 297 } 299 298 … … 375 374 376 375 /* Send area */ 377 int rc = async_ obsolete_req_1_0(fbphone, FB_PREPARE_SHM, (sysarg_t) shm);376 int rc = async_req_1_0(fbphone, FB_PREPARE_SHM, (sysarg_t) shm); 378 377 if (rc) 379 378 goto exit; 380 379 381 rc = async_ obsolete_share_out_start(fbphone, shm, PROTO_READ);380 rc = async_share_out_start(fbphone, shm, PROTO_READ); 382 381 if (rc) 383 382 goto drop; 384 383 385 384 /* Draw logo */ 386 async_ obsolete_msg_2(fbphone, FB_DRAW_PPM, x, y);385 async_msg_2(fbphone, FB_DRAW_PPM, x, y); 387 386 388 387 drop: 389 388 /* Drop area */ 390 async_ obsolete_msg_0(fbphone, FB_DROP_SHM);389 async_msg_0(fbphone, FB_DROP_SHM); 391 390 392 391 exit: … … 437 436 438 437 /* Send area */ 439 int rc = async_ obsolete_req_1_0(fbphone, FB_PREPARE_SHM, (sysarg_t) shm);438 int rc = async_req_1_0(fbphone, FB_PREPARE_SHM, (sysarg_t) shm); 440 439 if (rc) 441 440 goto exit; 442 441 443 rc = async_ obsolete_share_out_start(fbphone, shm, PROTO_READ);442 rc = async_share_out_start(fbphone, shm, PROTO_READ); 444 443 if (rc) 445 444 goto drop; 446 445 447 446 /* Obtain pixmap */ 448 rc = async_ obsolete_req_0_0(fbphone, FB_SHM2PIXMAP);447 rc = async_req_0_0(fbphone, FB_SHM2PIXMAP); 449 448 if (rc < 0) 450 449 goto drop; … … 454 453 drop: 455 454 /* Drop area */ 456 async_ obsolete_msg_0(fbphone, FB_DROP_SHM);455 async_msg_0(fbphone, FB_DROP_SHM); 457 456 458 457 exit: … … 465 464 static void make_anim(void) 466 465 { 467 int an = async_ obsolete_req_1_0(fbphone, FB_ANIM_CREATE,466 int an = async_req_1_0(fbphone, FB_ANIM_CREATE, 468 467 cstatus_vp[KERNEL_CONSOLE]); 469 468 if (an < 0) … … 472 471 int pm = make_pixmap(_binary_gfx_anim_1_ppm_start, 473 472 (size_t) &_binary_gfx_anim_1_ppm_size); 474 async_ obsolete_msg_2(fbphone, FB_ANIM_ADDPIXMAP, an, pm);473 async_msg_2(fbphone, FB_ANIM_ADDPIXMAP, an, pm); 475 474 476 475 pm = make_pixmap(_binary_gfx_anim_2_ppm_start, 477 476 (size_t) &_binary_gfx_anim_2_ppm_size); 478 async_ obsolete_msg_2(fbphone, FB_ANIM_ADDPIXMAP, an, pm);477 async_msg_2(fbphone, FB_ANIM_ADDPIXMAP, an, pm); 479 478 480 479 pm = make_pixmap(_binary_gfx_anim_3_ppm_start, 481 480 (size_t) &_binary_gfx_anim_3_ppm_size); 482 async_ obsolete_msg_2(fbphone, FB_ANIM_ADDPIXMAP, an, pm);481 async_msg_2(fbphone, FB_ANIM_ADDPIXMAP, an, pm); 483 482 484 483 pm = make_pixmap(_binary_gfx_anim_4_ppm_start, 485 484 (size_t) &_binary_gfx_anim_4_ppm_size); 486 async_ obsolete_msg_2(fbphone, FB_ANIM_ADDPIXMAP, an, pm);487 488 async_ obsolete_msg_1(fbphone, FB_ANIM_START, an);485 async_msg_2(fbphone, FB_ANIM_ADDPIXMAP, an, pm); 486 487 async_msg_1(fbphone, FB_ANIM_START, an); 489 488 490 489 animation = an; … … 496 495 fbphone = phone; 497 496 498 int rc = async_ obsolete_req_0_2(phone, FB_GET_RESOLUTION, &xres, &yres);497 int rc = async_req_0_2(phone, FB_GET_RESOLUTION, &xres, &yres); 499 498 if (rc) 500 499 return;
Note:
See TracChangeset
for help on using the changeset viewer.