Changeset f2962621 in mainline for uspace/srv/hid/fb/serial_console.c
- Timestamp:
- 2010-12-17T10:14:01Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6e5dc07
- Parents:
- 9223dc5c (diff), 11658b64 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/fb/serial_console.c
r9223dc5c rf2962621 55 55 #define MAX_CONTROL 20 56 56 57 static ipcarg_t scr_width;58 static ipcarg_t scr_height;57 static sysarg_t scr_width; 58 static sysarg_t scr_height; 59 59 static bool color = true; /**< True if producing color output. */ 60 60 static bool utf8 = false; /**< True if producing UTF8 output. */ 61 61 static putc_function_t putc_function; 62 62 63 static ipcarg_t lastcol = 0;64 static ipcarg_t lastrow = 0;63 static sysarg_t lastcol = 0; 64 static sysarg_t lastrow = 0; 65 65 static attrs_t cur_attr = { 66 66 .t = at_style, … … 130 130 } 131 131 132 void serial_goto(const ipcarg_t col, const ipcarg_t row)132 void serial_goto(const sysarg_t col, const sysarg_t row) 133 133 { 134 134 if ((col > scr_width) || (row > scr_height)) … … 252 252 253 253 /** Set scrolling region. */ 254 void serial_set_scroll_region( ipcarg_t last_row)254 void serial_set_scroll_region(sysarg_t last_row) 255 255 { 256 256 char control[MAX_CONTROL]; … … 269 269 } 270 270 271 void serial_console_init(putc_function_t putc_fn, ipcarg_t w, ipcarg_t h)271 void serial_console_init(putc_function_t putc_fn, sysarg_t w, sysarg_t h) 272 272 { 273 273 scr_width = w; … … 286 286 * 287 287 */ 288 static void draw_text_data(keyfield_t *data, ipcarg_t x0, ipcarg_t y0,289 ipcarg_t width, ipcarg_t height)288 static void draw_text_data(keyfield_t *data, sysarg_t x0, sysarg_t y0, 289 sysarg_t width, sysarg_t height) 290 290 { 291 291 attrs_t *a0 = &data[0].attrs; 292 292 serial_set_attrs(a0); 293 293 294 ipcarg_t y;294 sysarg_t y; 295 295 for (y = 0; y < height; y++) { 296 296 serial_goto(x0, y0 + y); 297 297 298 ipcarg_t x;298 sysarg_t x; 299 299 for (x = 0; x < width; x++) { 300 300 attrs_t *attr = &data[y * width + x].attrs; … … 337 337 338 338 wchar_t c; 339 ipcarg_t col;340 ipcarg_t row;341 ipcarg_t w;342 ipcarg_t h;339 sysarg_t col; 340 sysarg_t row; 341 sysarg_t w; 342 sysarg_t h; 343 343 ssize_t rows; 344 344 345 345 int retval; 346 346 347 switch (IPC_GET_ METHOD(call)) {347 switch (IPC_GET_IMETHOD(call)) { 348 348 case IPC_M_PHONE_HUNGUP: 349 349 client_connected = 0; … … 442 442 443 443 if (rows >= 0) { 444 if (( ipcarg_t) rows > scr_height) {444 if ((sysarg_t) rows > scr_height) { 445 445 retval = EINVAL; 446 446 break; 447 447 } 448 448 } else { 449 if (( ipcarg_t) (-rows) > scr_height) {449 if ((sysarg_t) (-rows) > scr_height) { 450 450 retval = EINVAL; 451 451 break;
Note:
See TracChangeset
for help on using the changeset viewer.