Changeset 96b02eb9 in mainline for uspace/srv/hid/console/console.c
- Timestamp:
- 2010-12-14T12:52:38Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6b10dab
- Parents:
- 554debd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/console/console.c
r554debd r96b02eb9 74 74 struct { 75 75 int phone; /**< Framebuffer phone */ 76 ipcarg_t cols; /**< Framebuffer columns */77 ipcarg_t rows; /**< Framebuffer rows */78 ipcarg_t color_cap; /**< Color capabilities (FB_CCAP_xxx) */76 sysarg_t cols; /**< Framebuffer columns */ 77 sysarg_t rows; /**< Framebuffer rows */ 78 sysarg_t color_cap; /**< Color capabilities (FB_CCAP_xxx) */ 79 79 } fb_info; 80 80 … … 101 101 /** Information on row-span yet unsent to FB driver. */ 102 102 struct { 103 ipcarg_t col; /**< Leftmost column of the span. */104 ipcarg_t row; /**< Row where the span lies. */105 ipcarg_t cnt; /**< Width of the span. */103 sysarg_t col; /**< Leftmost column of the span. */ 104 sysarg_t row; /**< Row where the span lies. */ 105 sysarg_t cnt; /**< Width of the span. */ 106 106 } fb_pending; 107 107 … … 119 119 } 120 120 121 static void curs_goto( ipcarg_t x, ipcarg_t y)121 static void curs_goto(sysarg_t x, sysarg_t y) 122 122 { 123 123 async_msg_2(fb_info.phone, FB_CURSOR_GOTO, x, y); … … 180 180 } 181 181 182 static int ccap_fb_to_con( ipcarg_t ccap_fb, ipcarg_t *ccap_con)182 static int ccap_fb_to_con(sysarg_t ccap_fb, sysarg_t *ccap_con) 183 183 { 184 184 switch (ccap_fb) { … … 203 203 204 204 /** Send an area of screenbuffer to the FB driver. */ 205 static void fb_update_area(console_t *cons, ipcarg_t x0, ipcarg_t y0, ipcarg_t width, ipcarg_t height)205 static void fb_update_area(console_t *cons, sysarg_t x0, sysarg_t y0, sysarg_t width, sysarg_t height) 206 206 { 207 207 if (interbuffer) { 208 ipcarg_t x;209 ipcarg_t y;208 sysarg_t x; 209 sysarg_t y; 210 210 211 211 for (y = 0; y < height; y++) { … … 237 237 * 238 238 */ 239 static void cell_mark_changed( ipcarg_t col, ipcarg_t row)239 static void cell_mark_changed(sysarg_t col, sysarg_t row) 240 240 { 241 241 if (fb_pending.cnt != 0) { … … 255 255 256 256 /** Print a character to the active VC with buffering. */ 257 static void fb_putchar(wchar_t c, ipcarg_t col, ipcarg_t row)257 static void fb_putchar(wchar_t c, sysarg_t col, sysarg_t row) 258 258 { 259 259 async_msg_3(fb_info.phone, FB_PUTCHAR, c, col, row); … … 352 352 curs_visibility(false); 353 353 354 ipcarg_t x;355 ipcarg_t y;354 sysarg_t x; 355 sysarg_t y; 356 356 int rc = 0; 357 357 … … 584 584 ipc_callid_t callid; 585 585 ipc_call_t call; 586 ipcarg_t arg1;587 ipcarg_t arg2;588 ipcarg_t arg3;586 sysarg_t arg1; 587 sysarg_t arg2; 588 sysarg_t arg3; 589 589 590 590 int rc; … … 726 726 727 727 /* NB: The callback connection is slotted for removal */ 728 ipcarg_t phonehash;728 sysarg_t phonehash; 729 729 if (ipc_connect_to_me(kbd_phone, SERVICE_CONSOLE, 0, 0, &phonehash) != 0) { 730 730 printf(NAME ": Failed to create callback from input device\n");
Note:
See TracChangeset
for help on using the changeset viewer.