Changeset e87e18f in mainline for console/console.c


Ignore:
Timestamp:
2006-06-02T18:19:08Z (19 years ago)
Author:
Josef Cejka <malyzelenyhnus@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d6cc453
Parents:
a9bd960c
Message:

Some doxygen comments added.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • console/console.c

    ra9bd960c re87e18f  
    4848#define NAME "CONSOLE"
    4949
     50/** Index of currently used virtual console.
     51 */
    5052int active_console = 0;
    5153
     54/** Information about framebuffer
     55 */
    5256struct {
    5357        int phone;              /**< Framebuffer phone */
     
    5660} fb_info;
    5761
     62
    5863typedef struct {
    59         keybuffer_t keybuffer;
    60         FIFO_CREATE_STATIC(keyrequests, ipc_callid_t , MAX_KEYREQUESTS_BUFFERED);
    61         int keyrequest_counter;
    62         int client_phone;
    63         int used;
    64         screenbuffer_t screenbuffer;
     64        keybuffer_t keybuffer;          /**< Buffer for incoming keys. */
     65        FIFO_CREATE_STATIC(keyrequests, ipc_callid_t , MAX_KEYREQUESTS_BUFFERED);       /**< Buffer for unsatisfied request for keys. */
     66        int keyrequest_counter;         /**< Number of requests in buffer. */
     67        int client_phone;               /**< Phone to connected client. */
     68        int used;                       /**< 1 if this virtual console is connected to some client.*/
     69        screenbuffer_t screenbuffer;    /**< Screenbuffer for saving screen contents and related settings. */
    6570} connection_t;
    6671
    67 
    68 
    69 connection_t connections[CONSOLE_COUNT];
    70 keyfield_t *interbuffer = NULL;
    71        
     72connection_t connections[CONSOLE_COUNT];        /**< Array of data for virtual consoles */
     73keyfield_t *interbuffer = NULL;                 /**< Pointer to memory shared with framebufer used for faster virt. console switching */
     74
     75
     76/** Find unused virtual console.
     77 *
     78 */
    7279static int find_free_connection()
    7380{
     
    8289}
    8390
    84 
     91/** Find index of virtual console used by client with given phone.
     92 *
     93 */
    8594static int find_connection(int client_phone)
    8695{
     
    152161
    153162
    154 /* Handler for keyboard */
     163/** Handler for keyboard */
    155164static void keyboard_events(ipc_callid_t iid, ipc_call_t *icall)
    156165{
Note: See TracChangeset for help on using the changeset viewer.