Changeset 0cc4313 in mainline for uspace/srv/console/console.c


Ignore:
Timestamp:
2007-11-22T15:50:24Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d40a8ff
Parents:
8498915
Message:

Modify the async framework to make use of all six syscall arguments.
Supply user-friendly macros as in previous cases.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/console/console.c

    r8498915 r0cc4313  
    106106static void clrscr(void)
    107107{
    108         async_msg(fb_info.phone, FB_CLEAR, 0);
     108        async_msg_0(fb_info.phone, FB_CLEAR);
    109109}
    110110
    111111static void curs_visibility(int v)
    112112{
    113         async_msg(fb_info.phone, FB_CURSOR_VISIBILITY, v);
     113        async_msg_1(fb_info.phone, FB_CURSOR_VISIBILITY, v);
    114114}
    115115
     
    177177                scr->top_line = (scr->top_line + 1) % scr->size_y;
    178178                if (console == active_console)
    179                         async_msg(fb_info.phone, FB_SCROLL, 1);
     179                        async_msg_1(fb_info.phone, FB_SCROLL, 1);
    180180        }
    181181       
     
    197197       
    198198        /* Save screen */
    199         newpmap = async_req(fb_info.phone, FB_VP2PIXMAP, 0, NULL);
     199        newpmap = async_req_0_0(fb_info.phone, FB_VP2PIXMAP);
    200200        if (newpmap < 0)
    201201                return -1;
     
    205205                async_msg_2(fb_info.phone, FB_VP_DRAW_PIXMAP, 0, oldpixmap);
    206206                /* Drop old pixmap */
    207                 async_msg(fb_info.phone, FB_DROP_PIXMAP, oldpixmap);
     207                async_msg_1(fb_info.phone, FB_DROP_PIXMAP, oldpixmap);
    208208        }
    209209       
     
    267267                        }
    268268                /* 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);           
    271270        }
    272271       
     
    416415                        /* Send message to fb */
    417416                        if (consnum == active_console) {
    418                                 async_msg(fb_info.phone, FB_CLEAR, 0);
     417                                async_msg_0(fb_info.phone, FB_CLEAR);
    419418                        }
    420419                       
     
    435434                case CONSOLE_FLUSH:
    436435                        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);
    439437                        break;
    440438                case CONSOLE_SET_STYLE:
     
    509507        gcons_init(fb_info.phone);
    510508        /* 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);
    512510        /* Enable double buffering */
    513511        async_msg_2(fb_info.phone, FB_VIEWPORT_DB, (sysarg_t) -1, 1);
    514512       
    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,
    516514            &fb_info.cols);
    517515        set_style_col(DEFAULT_FOREGROUND, DEFAULT_BACKGROUND);
     
    540538            PROTO_READ | PROTO_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, 0, 0);
    541539        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) {
    545542                        munmap(interbuffer,
    546543                            sizeof(keyfield_t) * fb_info.cols * fb_info.rows);
Note: See TracChangeset for help on using the changeset viewer.