Changeset 41811af in mainline for uspace/srv/hid/console/gcons.c
- Timestamp:
- 2011-06-10T10:14:26Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ab547063
- Parents:
- 9536e6e (diff), 390d80d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/console/gcons.c
r9536e6e r41811af 35 35 #include <ipc/fb.h> 36 36 #include <async.h> 37 #include <async_obsolete.h> 37 38 #include <stdio.h> 38 39 #include <sys/mman.h> … … 115 116 static void vp_switch(int vp) 116 117 { 117 async_ msg_1(fbphone, FB_VIEWPORT_SWITCH, vp);118 async_obsolete_msg_1(fbphone, FB_VIEWPORT_SWITCH, vp); 118 119 } 119 120 … … 121 122 static int vp_create(sysarg_t x, sysarg_t y, sysarg_t width, sysarg_t height) 122 123 { 123 return async_ req_2_0(fbphone, FB_VIEWPORT_CREATE, (x << 16) | y,124 return async_obsolete_req_2_0(fbphone, FB_VIEWPORT_CREATE, (x << 16) | y, 124 125 (width << 16) | height); 125 126 } … … 127 128 static void clear(void) 128 129 { 129 async_ msg_0(fbphone, FB_CLEAR);130 async_obsolete_msg_0(fbphone, FB_CLEAR); 130 131 } 131 132 132 133 static void set_rgb_color(uint32_t fgcolor, uint32_t bgcolor) 133 134 { 134 async_ msg_2(fbphone, FB_SET_RGB_COLOR, fgcolor, bgcolor);135 async_obsolete_msg_2(fbphone, FB_SET_RGB_COLOR, fgcolor, bgcolor); 135 136 } 136 137 … … 138 139 static void tran_putch(wchar_t ch, sysarg_t col, sysarg_t row) 139 140 { 140 async_ msg_3(fbphone, FB_PUTCHAR, ch, col, row);141 async_obsolete_msg_3(fbphone, FB_PUTCHAR, ch, col, row); 141 142 } 142 143 … … 149 150 150 151 if (ic_pixmaps[state] != -1) 151 async_ msg_2(fbphone, FB_VP_DRAW_PIXMAP, cstatus_vp[index],152 async_obsolete_msg_2(fbphone, FB_VP_DRAW_PIXMAP, cstatus_vp[index], 152 153 ic_pixmaps[state]); 153 154 … … 177 178 178 179 if (animation != -1) 179 async_ msg_1(fbphone, FB_ANIM_START, animation);180 async_obsolete_msg_1(fbphone, FB_ANIM_START, animation); 180 181 } else { 181 182 if (console_state[active_console] == CONS_DISCONNECTED_SEL) … … 258 259 { 259 260 if (animation != -1) 260 async_ msg_1(fbphone, FB_ANIM_STOP, animation);261 async_obsolete_msg_1(fbphone, FB_ANIM_STOP, animation); 261 262 262 263 active_console = KERNEL_CONSOLE; … … 294 295 295 296 if (active_console != KERNEL_CONSOLE) 296 async_ msg_2(fbphone, FB_POINTER_MOVE, mouse_x, mouse_y);297 async_obsolete_msg_2(fbphone, FB_POINTER_MOVE, mouse_x, mouse_y); 297 298 } 298 299 … … 374 375 375 376 /* Send area */ 376 int rc = async_ req_1_0(fbphone, FB_PREPARE_SHM, (sysarg_t) shm);377 int rc = async_obsolete_req_1_0(fbphone, FB_PREPARE_SHM, (sysarg_t) shm); 377 378 if (rc) 378 379 goto exit; 379 380 380 rc = async_ share_out_start(fbphone, shm, PROTO_READ);381 rc = async_obsolete_share_out_start(fbphone, shm, PROTO_READ); 381 382 if (rc) 382 383 goto drop; 383 384 384 385 /* Draw logo */ 385 async_ msg_2(fbphone, FB_DRAW_PPM, x, y);386 async_obsolete_msg_2(fbphone, FB_DRAW_PPM, x, y); 386 387 387 388 drop: 388 389 /* Drop area */ 389 async_ msg_0(fbphone, FB_DROP_SHM);390 async_obsolete_msg_0(fbphone, FB_DROP_SHM); 390 391 391 392 exit: … … 436 437 437 438 /* Send area */ 438 int rc = async_ req_1_0(fbphone, FB_PREPARE_SHM, (sysarg_t) shm);439 int rc = async_obsolete_req_1_0(fbphone, FB_PREPARE_SHM, (sysarg_t) shm); 439 440 if (rc) 440 441 goto exit; 441 442 442 rc = async_ share_out_start(fbphone, shm, PROTO_READ);443 rc = async_obsolete_share_out_start(fbphone, shm, PROTO_READ); 443 444 if (rc) 444 445 goto drop; 445 446 446 447 /* Obtain pixmap */ 447 rc = async_ req_0_0(fbphone, FB_SHM2PIXMAP);448 rc = async_obsolete_req_0_0(fbphone, FB_SHM2PIXMAP); 448 449 if (rc < 0) 449 450 goto drop; … … 453 454 drop: 454 455 /* Drop area */ 455 async_ msg_0(fbphone, FB_DROP_SHM);456 async_obsolete_msg_0(fbphone, FB_DROP_SHM); 456 457 457 458 exit: … … 464 465 static void make_anim(void) 465 466 { 466 int an = async_ req_1_0(fbphone, FB_ANIM_CREATE,467 int an = async_obsolete_req_1_0(fbphone, FB_ANIM_CREATE, 467 468 cstatus_vp[KERNEL_CONSOLE]); 468 469 if (an < 0) … … 471 472 int pm = make_pixmap(_binary_gfx_anim_1_ppm_start, 472 473 (size_t) &_binary_gfx_anim_1_ppm_size); 473 async_ msg_2(fbphone, FB_ANIM_ADDPIXMAP, an, pm);474 async_obsolete_msg_2(fbphone, FB_ANIM_ADDPIXMAP, an, pm); 474 475 475 476 pm = make_pixmap(_binary_gfx_anim_2_ppm_start, 476 477 (size_t) &_binary_gfx_anim_2_ppm_size); 477 async_ msg_2(fbphone, FB_ANIM_ADDPIXMAP, an, pm);478 async_obsolete_msg_2(fbphone, FB_ANIM_ADDPIXMAP, an, pm); 478 479 479 480 pm = make_pixmap(_binary_gfx_anim_3_ppm_start, 480 481 (size_t) &_binary_gfx_anim_3_ppm_size); 481 async_ msg_2(fbphone, FB_ANIM_ADDPIXMAP, an, pm);482 async_obsolete_msg_2(fbphone, FB_ANIM_ADDPIXMAP, an, pm); 482 483 483 484 pm = make_pixmap(_binary_gfx_anim_4_ppm_start, 484 485 (size_t) &_binary_gfx_anim_4_ppm_size); 485 async_ msg_2(fbphone, FB_ANIM_ADDPIXMAP, an, pm);486 487 async_ msg_1(fbphone, FB_ANIM_START, an);486 async_obsolete_msg_2(fbphone, FB_ANIM_ADDPIXMAP, an, pm); 487 488 async_obsolete_msg_1(fbphone, FB_ANIM_START, an); 488 489 489 490 animation = an; … … 495 496 fbphone = phone; 496 497 497 int rc = async_ req_0_2(phone, FB_GET_RESOLUTION, &xres, &yres);498 int rc = async_obsolete_req_0_2(phone, FB_GET_RESOLUTION, &xres, &yres); 498 499 if (rc) 499 500 return;
Note:
See TracChangeset
for help on using the changeset viewer.