Changeset bfa4ffa in mainline for uspace/srv/hid/output
- Timestamp:
- 2016-12-27T13:34:08Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9185e42
- Parents:
- 0d9b4a8 (diff), 73d8600 (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. - Location:
- uspace/srv/hid/output
- Files:
-
- 2 added
- 3 edited
-
Makefile (modified) (2 diffs)
-
output.c (modified) (3 diffs)
-
port/chardev.c (added)
-
port/chardev.h (added)
-
proto/vt100.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/output/Makefile
r0d9b4a8 rbfa4ffa 30 30 USPACE_PREFIX = ../../.. 31 31 BINARY = output 32 LIBS = $(LIBDRV_PREFIX)/libdrv.a 33 EXTRA_CFLAGS = -I$(LIBDRV_PREFIX)/include 32 34 33 35 SOURCES = \ … … 37 39 port/niagara.c \ 38 40 port/ski.c \ 41 port/chardev.c \ 39 42 proto/vt100.c \ 40 43 output.c -
uspace/srv/hid/output/output.c
r0d9b4a8 rbfa4ffa 34 34 #include <task.h> 35 35 #include <ipc/output.h> 36 #include <config.h> 36 37 #include "port/ega.h" 37 38 #include "port/kchar.h" 38 39 #include "port/niagara.h" 39 40 #include "port/ski.h" 41 #include "port/chardev.h" 40 42 #include "output.h" 41 43 … … 401 403 402 404 switch (IPC_GET_IMETHOD(call)) { 403 case OUTPUT_YIELD:404 srv_yield(callid, &call);405 break;406 case OUTPUT_CLAIM:407 srv_claim(callid, &call);408 break;409 case OUTPUT_GET_DIMENSIONS:410 srv_get_dimensions(callid, &call);411 break;412 case OUTPUT_GET_CAPS:413 srv_get_caps(callid, &call);414 break;415 416 case OUTPUT_FRONTBUF_CREATE:417 srv_frontbuf_create(callid, &call);418 break;419 case OUTPUT_FRONTBUF_DESTROY:420 srv_frontbuf_destroy(callid, &call);421 break;422 423 case OUTPUT_CURSOR_UPDATE:424 srv_cursor_update(callid, &call);425 break;426 case OUTPUT_SET_STYLE:427 srv_set_style(callid, &call);428 break;429 case OUTPUT_SET_COLOR:430 srv_set_color(callid, &call);431 break;432 case OUTPUT_SET_RGB_COLOR:433 srv_set_rgb_color(callid, &call);434 break;435 case OUTPUT_UPDATE:436 srv_update(callid, &call);437 break;438 case OUTPUT_DAMAGE:439 srv_damage(callid, &call);440 break;441 442 default:443 async_answer_0(callid, EINVAL);405 case OUTPUT_YIELD: 406 srv_yield(callid, &call); 407 break; 408 case OUTPUT_CLAIM: 409 srv_claim(callid, &call); 410 break; 411 case OUTPUT_GET_DIMENSIONS: 412 srv_get_dimensions(callid, &call); 413 break; 414 case OUTPUT_GET_CAPS: 415 srv_get_caps(callid, &call); 416 break; 417 418 case OUTPUT_FRONTBUF_CREATE: 419 srv_frontbuf_create(callid, &call); 420 break; 421 case OUTPUT_FRONTBUF_DESTROY: 422 srv_frontbuf_destroy(callid, &call); 423 break; 424 425 case OUTPUT_CURSOR_UPDATE: 426 srv_cursor_update(callid, &call); 427 break; 428 case OUTPUT_SET_STYLE: 429 srv_set_style(callid, &call); 430 break; 431 case OUTPUT_SET_COLOR: 432 srv_set_color(callid, &call); 433 break; 434 case OUTPUT_SET_RGB_COLOR: 435 srv_set_rgb_color(callid, &call); 436 break; 437 case OUTPUT_UPDATE: 438 srv_update(callid, &call); 439 break; 440 case OUTPUT_DAMAGE: 441 srv_damage(callid, &call); 442 break; 443 444 default: 445 async_answer_0(callid, EINVAL); 444 446 } 445 447 } … … 475 477 } 476 478 477 ega_init(); 478 kchar_init(); 479 niagara_init(); 480 ski_init(); 479 if (!config_key_exists("console")) { 480 ega_init(); 481 kchar_init(); 482 niagara_init(); 483 ski_init(); 484 } else { 485 chardev_init(); 486 } 481 487 482 488 printf("%s: Accepting connections\n", NAME); -
uspace/srv/hid/output/proto/vt100.c
r0d9b4a8 rbfa4ffa 141 141 vt100_putchar_t putchar_fn, vt100_control_puts_t control_puts_fn) 142 142 { 143 vt100_state_t *state = 144 malloc(sizeof(vt100_state_t)); 143 vt100_state_t *state = malloc(sizeof(vt100_state_t)); 145 144 if (state == NULL) 146 145 return NULL; … … 164 163 state->control_puts("\033[2J"); 165 164 state->control_puts("\033[?25l"); 166 165 167 166 return state; 168 167 }
Note:
See TracChangeset
for help on using the changeset viewer.
