Changeset e87e18f in mainline for console/console.c
- Timestamp:
- 2006-06-02T18:19:08Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d6cc453
- Parents:
- a9bd960c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
console/console.c
ra9bd960c re87e18f 48 48 #define NAME "CONSOLE" 49 49 50 /** Index of currently used virtual console. 51 */ 50 52 int active_console = 0; 51 53 54 /** Information about framebuffer 55 */ 52 56 struct { 53 57 int phone; /**< Framebuffer phone */ … … 56 60 } fb_info; 57 61 62 58 63 typedef 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. */ 65 70 } connection_t; 66 71 67 68 69 connection_t connections[CONSOLE_COUNT]; 70 keyfield_t *interbuffer = NULL; 71 72 connection_t connections[CONSOLE_COUNT]; /**< Array of data for virtual consoles */ 73 keyfield_t *interbuffer = NULL; /**< Pointer to memory shared with framebufer used for faster virt. console switching */ 74 75 76 /** Find unused virtual console. 77 * 78 */ 72 79 static int find_free_connection() 73 80 { … … 82 89 } 83 90 84 91 /** Find index of virtual console used by client with given phone. 92 * 93 */ 85 94 static int find_connection(int client_phone) 86 95 { … … 152 161 153 162 154 /* Handler for keyboard */163 /** Handler for keyboard */ 155 164 static void keyboard_events(ipc_callid_t iid, ipc_call_t *icall) 156 165 {
Note:
See TracChangeset
for help on using the changeset viewer.