Changeset 0cc4313 in mainline for uspace/srv/console/console.c
- Timestamp:
- 2007-11-22T15:50:24Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d40a8ff
- Parents:
- 8498915
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/console/console.c
r8498915 r0cc4313 106 106 static void clrscr(void) 107 107 { 108 async_msg (fb_info.phone, FB_CLEAR, 0);108 async_msg_0(fb_info.phone, FB_CLEAR); 109 109 } 110 110 111 111 static void curs_visibility(int v) 112 112 { 113 async_msg (fb_info.phone, FB_CURSOR_VISIBILITY, v);113 async_msg_1(fb_info.phone, FB_CURSOR_VISIBILITY, v); 114 114 } 115 115 … … 177 177 scr->top_line = (scr->top_line + 1) % scr->size_y; 178 178 if (console == active_console) 179 async_msg (fb_info.phone, FB_SCROLL, 1);179 async_msg_1(fb_info.phone, FB_SCROLL, 1); 180 180 } 181 181 … … 197 197 198 198 /* Save screen */ 199 newpmap = async_req (fb_info.phone, FB_VP2PIXMAP, 0, NULL);199 newpmap = async_req_0_0(fb_info.phone, FB_VP2PIXMAP); 200 200 if (newpmap < 0) 201 201 return -1; … … 205 205 async_msg_2(fb_info.phone, FB_VP_DRAW_PIXMAP, 0, oldpixmap); 206 206 /* Drop old pixmap */ 207 async_msg (fb_info.phone, FB_DROP_PIXMAP, oldpixmap);207 async_msg_1(fb_info.phone, FB_DROP_PIXMAP, oldpixmap); 208 208 } 209 209 … … 267 267 } 268 268 /* This call can preempt, but we are already at the end */ 269 rc = async_req_2(fb_info.phone, FB_DRAW_TEXT_DATA, 0, 0, NULL, 270 NULL); 269 rc = async_req_0_0(fb_info.phone, FB_DRAW_TEXT_DATA); 271 270 } 272 271 … … 416 415 /* Send message to fb */ 417 416 if (consnum == active_console) { 418 async_msg (fb_info.phone, FB_CLEAR, 0);417 async_msg_0(fb_info.phone, FB_CLEAR); 419 418 } 420 419 … … 435 434 case CONSOLE_FLUSH: 436 435 if (consnum == active_console) 437 async_req_2(fb_info.phone, FB_FLUSH, 0, 0, 438 NULL, NULL); 436 async_req_0_0(fb_info.phone, FB_FLUSH); 439 437 break; 440 438 case CONSOLE_SET_STYLE: … … 509 507 gcons_init(fb_info.phone); 510 508 /* Synchronize, the gcons can have something in queue */ 511 async_req (fb_info.phone, FB_FLUSH, 0, NULL);509 async_req_0_0(fb_info.phone, FB_FLUSH); 512 510 /* Enable double buffering */ 513 511 async_msg_2(fb_info.phone, FB_VIEWPORT_DB, (sysarg_t) -1, 1); 514 512 515 async_req_ 2(fb_info.phone, FB_GET_CSIZE, 0, 0, &fb_info.rows,513 async_req_0_2(fb_info.phone, FB_GET_CSIZE, &fb_info.rows, 516 514 &fb_info.cols); 517 515 set_style_col(DEFAULT_FOREGROUND, DEFAULT_BACKGROUND); … … 540 538 PROTO_READ | PROTO_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, 0, 0); 541 539 if (!interbuffer) { 542 if (async_req_3(fb_info.phone, IPC_M_AS_AREA_SEND, 543 (ipcarg_t) interbuffer, 0, AS_AREA_READ, NULL, NULL, 544 NULL) != 0) { 540 if (async_req_3_0(fb_info.phone, IPC_M_AS_AREA_SEND, 541 (ipcarg_t) interbuffer, 0, AS_AREA_READ) != 0) { 545 542 munmap(interbuffer, 546 543 sizeof(keyfield_t) * fb_info.cols * fb_info.rows);
Note:
See TracChangeset
for help on using the changeset viewer.