Changeset b1f51f0 in mainline for console/console.c
- Timestamp:
- 2006-06-02T16:09:18Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b917098
- Parents:
- a116ef22
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
console/console.c
ra116ef22 rb1f51f0 42 42 #include <sys/mman.h> 43 43 44 #define CONSOLE_COUNT 1245 44 #define MAX_KEYREQUESTS_BUFFERED 32 46 45 … … 119 118 120 119 if (console == active_console) { 121 ipc_call_async_3(fb_info.phone, FB_PUTCHAR, ' ', scr->position_y, scr->position_x, NULL, NULL);120 nsend_call_3(fb_info.phone, FB_PUTCHAR, ' ', scr->position_y, scr->position_x); 122 121 } 123 122 … … 127 126 default: 128 127 if (console == active_console) { 129 ipc_call_async_3(fb_info.phone, FB_PUTCHAR, key, scr->position_y, scr->position_x, NULL, NULL);128 nsend_call_3(fb_info.phone, FB_PUTCHAR, key, scr->position_y, scr->position_x); 130 129 } 131 130 … … 139 138 scr->position_y = scr->size_y - 1; 140 139 screenbuffer_clear_line(scr, scr->top_line++); 141 ipc_call_async(fb_info.phone, FB_SCROLL, 1, NULL, NULL); 140 if (console == active_console) 141 nsend_call(fb_info.phone, FB_SCROLL, 1); 142 142 } 143 143 … … 145 145 146 146 if (console == active_console) 147 ipc_call_async_2(fb_info.phone, FB_CURSOR_GOTO, scr->position_y, scr->position_x, NULL, NULL);147 send_call_2(fb_info.phone, FB_CURSOR_GOTO, scr->position_y, scr->position_x); 148 148 149 149 } … … 193 193 conn = &connections[active_console]; 194 194 195 ipc_call_async(fb_info.phone, FB_CURSOR_VISIBILITY, 0, NULL, NULL);195 nsend_call(fb_info.phone, FB_CURSOR_VISIBILITY, 0); 196 196 197 197 if (interbuffer) { … … 202 202 sync_send_2(fb_info.phone, FB_DRAW_TEXT_DATA, 0, 0, NULL, NULL); 203 203 } else { 204 205 ipc_call_async_2(fb_info.phone, FB_CLEAR, 0, 0, NULL, NULL); 204 nsend_call(fb_info.phone, FB_CLEAR, 0); 206 205 207 206 … … 210 209 d = get_field_at(&(conn->screenbuffer),i, j)->character; 211 210 if (d && d != ' ') 212 ipc_call_async_3(fb_info.phone, FB_PUTCHAR, d, j, i, NULL, NULL);211 nsend_call_3(fb_info.phone, FB_PUTCHAR, d, j, i); 213 212 } 214 213 215 214 } 216 ipc_call_async_2(fb_info.phone, FB_CURSOR_GOTO, conn->screenbuffer.position_y, conn->screenbuffer.position_x, NULL, NULL);217 ipc_call_async_2(fb_info.phone, FB_SET_STYLE, conn->screenbuffer.style.fg_color, \218 conn->screenbuffer.style.bg_color , NULL, NULL);219 ipc_call_async(fb_info.phone, FB_CURSOR_VISIBILITY, 1, NULL, NULL);215 nsend_call_2(fb_info.phone, FB_CURSOR_GOTO, conn->screenbuffer.position_y, conn->screenbuffer.position_x); 216 nsend_call_2(fb_info.phone, FB_SET_STYLE, conn->screenbuffer.style.fg_color, \ 217 conn->screenbuffer.style.bg_color); 218 send_call(fb_info.phone, FB_CURSOR_VISIBILITY, 1); 220 219 221 220 break; … … 241 240 242 241 /** Default thread for new connections */ 243 void client_connection(ipc_callid_t iid, ipc_call_t *icall)242 static void client_connection(ipc_callid_t iid, ipc_call_t *icall) 244 243 { 245 244 ipc_callid_t callid; … … 273 272 /* Send message to fb */ 274 273 if (consnum == active_console) { 275 ipc_call_async_2(fb_info.phone, FB_CLEAR, 0, 0, NULL, NULL);274 send_call(fb_info.phone, FB_CLEAR, 0); 276 275 } 277 276 … … 331 330 332 331 ipc_call_sync_2(fb_info.phone, FB_GET_CSIZE, 0, 0, &(fb_info.rows), &(fb_info.cols)); 333 ipc_call_async_2(fb_info.phone, FB_SET_STYLE, DEFAULT_FOREGROUND_COLOR, DEFAULT_BACKGROUND_COLOR, NULL, NULL);334 ipc_call_sync(fb_info.phone, FB_CURSOR_VISIBILITY, 1, NULL);332 nsend_call_2(fb_info.phone, FB_SET_STYLE, DEFAULT_FOREGROUND_COLOR, DEFAULT_BACKGROUND_COLOR); 333 nsend_call(fb_info.phone, FB_CURSOR_VISIBILITY, 1); 335 334 336 335 /* Init virtual consoles */ … … 362 361 async_new_connection(phonehash, 0, NULL, keyboard_events); 363 362 364 ipc_call_async_2(fb_info.phone, FB_CURSOR_GOTO, 0, 0, NULL, NULL); 365 363 nsend_call_2(fb_info.phone, FB_CURSOR_GOTO, 0, 0); 364 365 /* Register at NS */ 366 366 if (ipc_connect_to_me(PHONE_NS, SERVICE_CONSOLE, 0, &phonehash) != 0) { 367 367 return -1;
Note:
See TracChangeset
for help on using the changeset viewer.