Changeset c028b22 in mainline for uspace/srv/hid/console/gcons.c


Ignore:
Timestamp:
2011-07-08T17:01:01Z (13 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cc1a727
Parents:
4e36219 (diff), 026793d (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.
Message:

Merge mainline changes

File:
1 edited

Legend:

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

    r4e36219 rc028b22  
    3535#include <ipc/fb.h>
    3636#include <async.h>
     37#include <async_obsolete.h>
    3738#include <stdio.h>
    3839#include <sys/mman.h>
     
    115116static void vp_switch(int vp)
    116117{
    117         async_msg_1(fbphone, FB_VIEWPORT_SWITCH, vp);
     118        async_obsolete_msg_1(fbphone, FB_VIEWPORT_SWITCH, vp);
    118119}
    119120
     
    121122static int vp_create(sysarg_t x, sysarg_t y, sysarg_t width, sysarg_t height)
    122123{
    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,
    124125            (width << 16) | height);
    125126}
     
    127128static void clear(void)
    128129{
    129         async_msg_0(fbphone, FB_CLEAR);
     130        async_obsolete_msg_0(fbphone, FB_CLEAR);
    130131}
    131132
    132133static void set_rgb_color(uint32_t fgcolor, uint32_t bgcolor)
    133134{
    134         async_msg_2(fbphone, FB_SET_RGB_COLOR, fgcolor, bgcolor);
     135        async_obsolete_msg_2(fbphone, FB_SET_RGB_COLOR, fgcolor, bgcolor);
    135136}
    136137
     
    138139static void tran_putch(wchar_t ch, sysarg_t col, sysarg_t row)
    139140{
    140         async_msg_3(fbphone, FB_PUTCHAR, ch, col, row);
     141        async_obsolete_msg_3(fbphone, FB_PUTCHAR, ch, col, row);
    141142}
    142143
     
    149150       
    150151        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],
    152153                    ic_pixmaps[state]);
    153154       
     
    167168void gcons_change_console(size_t index)
    168169{
    169         if (!use_gcons)
    170                 return;
     170        if (!use_gcons) {
     171                active_console = index;
     172                return;
     173        }
    171174       
    172175        if (active_console == KERNEL_CONSOLE) {
     
    177180               
    178181                if (animation != -1)
    179                         async_msg_1(fbphone, FB_ANIM_START, animation);
     182                        async_obsolete_msg_1(fbphone, FB_ANIM_START, animation);
    180183        } else {
    181184                if (console_state[active_console] == CONS_DISCONNECTED_SEL)
     
    258261{
    259262        if (animation != -1)
    260                 async_msg_1(fbphone, FB_ANIM_STOP, animation);
     263                async_obsolete_msg_1(fbphone, FB_ANIM_STOP, animation);
    261264       
    262265        active_console = KERNEL_CONSOLE;
     
    294297       
    295298        if (active_console != KERNEL_CONSOLE)
    296                 async_msg_2(fbphone, FB_POINTER_MOVE, mouse_x, mouse_y);
     299                async_obsolete_msg_2(fbphone, FB_POINTER_MOVE, mouse_x, mouse_y);
    297300}
    298301
     
    374377       
    375378        /* Send area */
    376         int rc = async_req_1_0(fbphone, FB_PREPARE_SHM, (sysarg_t) shm);
     379        int rc = async_obsolete_req_1_0(fbphone, FB_PREPARE_SHM, (sysarg_t) shm);
    377380        if (rc)
    378381                goto exit;
    379382       
    380         rc = async_share_out_start(fbphone, shm, PROTO_READ);
     383        rc = async_obsolete_share_out_start(fbphone, shm, PROTO_READ);
    381384        if (rc)
    382385                goto drop;
    383386       
    384387        /* Draw logo */
    385         async_msg_2(fbphone, FB_DRAW_PPM, x, y);
     388        async_obsolete_msg_2(fbphone, FB_DRAW_PPM, x, y);
    386389       
    387390drop:
    388391        /* Drop area */
    389         async_msg_0(fbphone, FB_DROP_SHM);
     392        async_obsolete_msg_0(fbphone, FB_DROP_SHM);
    390393       
    391394exit:
     
    436439       
    437440        /* Send area */
    438         int rc = async_req_1_0(fbphone, FB_PREPARE_SHM, (sysarg_t) shm);
     441        int rc = async_obsolete_req_1_0(fbphone, FB_PREPARE_SHM, (sysarg_t) shm);
    439442        if (rc)
    440443                goto exit;
    441444       
    442         rc = async_share_out_start(fbphone, shm, PROTO_READ);
     445        rc = async_obsolete_share_out_start(fbphone, shm, PROTO_READ);
    443446        if (rc)
    444447                goto drop;
    445448       
    446449        /* Obtain pixmap */
    447         rc = async_req_0_0(fbphone, FB_SHM2PIXMAP);
     450        rc = async_obsolete_req_0_0(fbphone, FB_SHM2PIXMAP);
    448451        if (rc < 0)
    449452                goto drop;
     
    453456drop:
    454457        /* Drop area */
    455         async_msg_0(fbphone, FB_DROP_SHM);
     458        async_obsolete_msg_0(fbphone, FB_DROP_SHM);
    456459       
    457460exit:
     
    464467static void make_anim(void)
    465468{
    466         int an = async_req_1_0(fbphone, FB_ANIM_CREATE,
     469        int an = async_obsolete_req_1_0(fbphone, FB_ANIM_CREATE,
    467470            cstatus_vp[KERNEL_CONSOLE]);
    468471        if (an < 0)
     
    471474        int pm = make_pixmap(_binary_gfx_anim_1_ppm_start,
    472475            (size_t) &_binary_gfx_anim_1_ppm_size);
    473         async_msg_2(fbphone, FB_ANIM_ADDPIXMAP, an, pm);
     476        async_obsolete_msg_2(fbphone, FB_ANIM_ADDPIXMAP, an, pm);
    474477       
    475478        pm = make_pixmap(_binary_gfx_anim_2_ppm_start,
    476479            (size_t) &_binary_gfx_anim_2_ppm_size);
    477         async_msg_2(fbphone, FB_ANIM_ADDPIXMAP, an, pm);
     480        async_obsolete_msg_2(fbphone, FB_ANIM_ADDPIXMAP, an, pm);
    478481       
    479482        pm = make_pixmap(_binary_gfx_anim_3_ppm_start,
    480483            (size_t) &_binary_gfx_anim_3_ppm_size);
    481         async_msg_2(fbphone, FB_ANIM_ADDPIXMAP, an, pm);
     484        async_obsolete_msg_2(fbphone, FB_ANIM_ADDPIXMAP, an, pm);
    482485       
    483486        pm = make_pixmap(_binary_gfx_anim_4_ppm_start,
    484487            (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);
     488        async_obsolete_msg_2(fbphone, FB_ANIM_ADDPIXMAP, an, pm);
     489       
     490        async_obsolete_msg_1(fbphone, FB_ANIM_START, an);
    488491       
    489492        animation = an;
     
    495498        fbphone = phone;
    496499       
    497         int rc = async_req_0_2(phone, FB_GET_RESOLUTION, &xres, &yres);
     500        int rc = async_obsolete_req_0_2(phone, FB_GET_RESOLUTION, &xres, &yres);
    498501        if (rc)
    499502                return;
Note: See TracChangeset for help on using the changeset viewer.