Changes in uspace/srv/hid/console/console.c [228e490:991f645] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/console/console.c
r228e490 r991f645 74 74 struct { 75 75 int phone; /**< Framebuffer phone */ 76 sysarg_t cols; /**< Framebuffer columns */77 sysarg_t rows; /**< Framebuffer rows */78 sysarg_t color_cap; /**< Color capabilities (FB_CCAP_xxx) */76 ipcarg_t cols; /**< Framebuffer columns */ 77 ipcarg_t rows; /**< Framebuffer rows */ 78 ipcarg_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 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. */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. */ 106 106 } fb_pending; 107 107 … … 119 119 } 120 120 121 static void curs_goto( sysarg_t x, sysarg_t y)121 static void curs_goto(ipcarg_t x, ipcarg_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( sysarg_t ccap_fb, sysarg_t *ccap_con)182 static int ccap_fb_to_con(ipcarg_t ccap_fb, ipcarg_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, sysarg_t x0, sysarg_t y0, sysarg_t width, sysarg_t height)205 static void fb_update_area(console_t *cons, ipcarg_t x0, ipcarg_t y0, ipcarg_t width, ipcarg_t height) 206 206 { 207 207 if (interbuffer) { 208 sysarg_t x;209 sysarg_t y;208 ipcarg_t x; 209 ipcarg_t y; 210 210 211 211 for (y = 0; y < height; y++) { … … 237 237 * 238 238 */ 239 static void cell_mark_changed( sysarg_t col, sysarg_t row)239 static void cell_mark_changed(ipcarg_t col, ipcarg_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, sysarg_t col, sysarg_t row)257 static void fb_putchar(wchar_t c, ipcarg_t col, ipcarg_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 sysarg_t x;355 sysarg_t y;354 ipcarg_t x; 355 ipcarg_t y; 356 356 int rc = 0; 357 357 … … 408 408 console_event_t ev; 409 409 410 switch (IPC_GET_ IMETHOD(call)) {410 switch (IPC_GET_METHOD(call)) { 411 411 case IPC_M_PHONE_HUNGUP: 412 412 /* TODO: Handle hangup */ … … 451 451 int retval; 452 452 453 switch (IPC_GET_ IMETHOD(call)) {453 switch (IPC_GET_METHOD(call)) { 454 454 case IPC_M_PHONE_HUNGUP: 455 455 /* TODO: Handle hangup */ … … 584 584 ipc_callid_t callid; 585 585 ipc_call_t call; 586 sysarg_t arg1;587 sysarg_t arg2;588 sysarg_t arg3;586 ipcarg_t arg1; 587 ipcarg_t arg2; 588 ipcarg_t arg3; 589 589 590 590 int rc; … … 608 608 arg3 = 0; 609 609 610 switch (IPC_GET_ IMETHOD(call)) {610 switch (IPC_GET_METHOD(call)) { 611 611 case IPC_M_PHONE_HUNGUP: 612 612 cons->refcount--; … … 726 726 727 727 /* NB: The callback connection is slotted for removal */ 728 sysarg_t phonehash;728 ipcarg_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"); … … 804 804 if (screenbuffer_init(&consoles[i].scr, 805 805 fb_info.cols, fb_info.rows) == NULL) { 806 printf(NAME ": Unable to allocate screen buffer % zu\n", i);806 printf(NAME ": Unable to allocate screen buffer %u\n", i); 807 807 return false; 808 808 } … … 813 813 814 814 char vc[DEVMAP_NAME_MAXLEN + 1]; 815 snprintf(vc, DEVMAP_NAME_MAXLEN, "%s/vc% zu", NAMESPACE, i);815 snprintf(vc, DEVMAP_NAME_MAXLEN, "%s/vc%u", NAMESPACE, i); 816 816 817 817 if (devmap_device_register(vc, &consoles[i].devmap_handle) != EOK) {
Note:
See TracChangeset
for help on using the changeset viewer.