Changeset e1c4849 in mainline for console/console.c


Ignore:
Timestamp:
2006-06-02T17:16:59Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0c6984e
Parents:
3756912
Message:

Added slighyly graphical console.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • console/console.c

    r3756912 re1c4849  
    4242#include <sys/mman.h>
    4343
     44#include "gcons.h"
     45
    4446#define MAX_KEYREQUESTS_BUFFERED 32
    4547
     
    178180//                      if ((c >= KBD_KEY_F1) && (c < KBD_KEY_F1 + CONSOLE_COUNT)) {
    179181                        if ((c >= '0') && (c < '0' + CONSOLE_COUNT)) {
    180                                
    181182                                if (c == '0') {
    182183                                        /* switch to kernel console*/
     
    193194                                                break;
    194195                                        active_console = c;
     196                                        gcons_change_console(c);
     197                               
    195198                                }
    196199                               
     
    337340                usleep(10000);
    338341        }
     342
     343        /* Initialize gcons */
     344        gcons_init(fb_info.phone);
     345        /* Synchronize, the gcons can have something in queue */
     346        sync_send_2(fb_info.phone, FB_GET_CSIZE, 0, 0, NULL, NULL);
     347
    339348       
    340349        ipc_call_sync_2(fb_info.phone, FB_GET_CSIZE, 0, 0, &(fb_info.rows), &(fb_info.cols));
     
    368377        async_new_connection(phonehash, 0, NULL, keyboard_events);
    369378       
    370         nsend_call_2(fb_info.phone, FB_CURSOR_GOTO, 0, 0);
     379        sync_send_2(fb_info.phone, FB_CURSOR_GOTO, 0, 0, NULL, NULL);
    371380        nsend_call(fb_info.phone, FB_CURSOR_VISIBILITY, 1);
    372381
Note: See TracChangeset for help on using the changeset viewer.