Changeset e87e18f in mainline


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.

Location:
console
Files:
2 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{
  • console/screenbuffer.c

    ra9bd960c re87e18f  
    4747/** Initilize screenbuffer. Allocate space for screen content in accordance to given size.
    4848 * @param scr           initialized screenbuffer
    49  * @param size_x       
    50  * @param size_y
     49 * @param size_x        width in characters             
     50 * @param size_y        height in characters
     51 * @return pointer to screenbuffer (same as scr parameter) or NULL
    5152 */
    5253screenbuffer_t *screenbuffer_init(screenbuffer_t *scr, int size_x, int size_y)
     
    6667}
    6768
     69/** Clear screenbuffer.
     70 * @param scr screenbuffer
     71 */
    6872void screenbuffer_clear(screenbuffer_t *scr)
    6973{
     
    8084}
    8185
    82 /** Clear one buffer line
     86/** Clear one buffer line.
    8387 * @param scr
    8488 * @param line One buffer line (not a screen line!)
     
    9498}
    9599
     100/** Copy content buffer from screenbuffer to given memory.
     101 * @param scr   source screenbuffer
     102 * @param dest  destination
     103 */
    96104void screenbuffer_copy_buffer(screenbuffer_t *scr, keyfield_t *dest)
    97105{
     
    103111}
    104112
     113/** Set new cursor position in screenbuffer.
     114 * @param scr
     115 * @param x
     116 * @param y
     117 */
    105118void screenbuffer_goto(screenbuffer_t *scr, unsigned int x, unsigned int y)
    106119{
     
    109122}
    110123
     124/** Set new style.
     125 * @param scr
     126 * @param fg_color
     127 * @param bg_color
     128 */
    111129void screenbuffer_set_style(screenbuffer_t *scr, unsigned int fg_color, unsigned int bg_color)
    112130{
Note: See TracChangeset for help on using the changeset viewer.