Changeset f1380b7 in mainline for contrib/arch/uspace/srv/console
- Timestamp:
- 2018-03-02T20:21:57Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 34e1206
- Parents:
- a35b458
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:51:04)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:21:57)
- Location:
- contrib/arch/uspace/srv/console
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
contrib/arch/uspace/srv/console/console.adl
ra35b458 rf1380b7 2 2 /* Read characters from console */ 3 3 sysarg_t read(out_copy stream data); 4 4 5 5 /* Write characters to console */ 6 6 sysarg_t write(in_copy stream data); 7 7 8 8 /* Get last event from event queue */ 9 9 sysarg_t get_event(out sysarg_t type, out sysarg_t key, out sysarg_t mods, out sysarg_t char); 10 10 11 11 /* Flush output buffer */ 12 12 sysarg_t sync(void); 13 13 14 14 /* Clear console */ 15 15 sysarg_t clear(void); 16 16 17 17 /* Move cursor to given position */ 18 18 sysarg_t goto(in sysarg_t col, in sysarg_t row); 19 19 20 20 /* Get console dimensions (in character cells) */ 21 21 sysarg_t get_size(out sysarg_t cols, in sysarg_t rows); 22 22 23 23 /* Get color capabilities */ 24 24 sysarg_t get_color_cap(void); 25 25 26 26 /* Set abstract text style */ 27 27 sysarg_t set_style(in sysarg_t style); 28 28 29 29 /* Set EGA-based text color */ 30 30 sysarg_t set_color(in sysarg_t fb_color, in sysarg_t bg_color, in sysarg_t attr); 31 31 32 32 /* Set RGB-based text color */ 33 33 sysarg_t set_rgb_color(in sysarg_t fb_color, in sysarg_t bg_color); 34 34 35 35 /* Set cursor visibility */ 36 36 sysarg_t cursor_visibility(in sysarg_t visible); 37 37 38 38 /* Switch to kernel debugging console (if available) */ 39 39 sysarg_t kcon_enable(void); … … 85 85 inst kbd kbd; 86 86 inst fb fb; 87 87 88 88 bind ui_dispatcher:kbd to kbd:kbd; 89 89 bind ui_dispatcher:fb to fb:fb; 90 90 91 91 bind kbd:event to ui_dispatcher:event; 92 92 93 93 delegate console to ui_dispatcher:console; 94 94 delegate kbd to kbd:kbd; 95 95 delegate fb to fb:fb; 96 96 97 97 [/uspace/lib/libc/subsume%ui_dispatcher] 98 98 [/uspace/lib/libc/subsume%kbd] 99 99 [/uspace/lib/libc/subsume%fb] 100 100 101 101 subsume ui_dispatcher:ns to ns; 102 102 subsume ui_dispatcher:devmap_driver to devmap_driver; 103 103 subsume ui_dispatcher:sys_console to sys_console; 104 104 105 105 subsume kbd:ns to ns; 106 106 subsume fb:ns to ns; -
contrib/arch/uspace/srv/console/console.bp
ra35b458 rf1380b7 5 5 [fnc.cons_read] 6 6 } + 7 7 8 8 ?write { 9 9 [fnc.cons_write] 10 10 } + 11 11 12 12 ?sync { 13 13 [fnc.fb_pending_flush] ; … … 17 17 } 18 18 } + 19 19 20 20 ?clear { 21 21 tentative { … … 23 23 } 24 24 } + 25 25 26 26 ?goto { 27 27 tentative { … … 29 29 } 30 30 } + 31 31 32 32 ?set_style { 33 33 [fnc.fb_pending_flush] ; … … 36 36 } 37 37 } + 38 38 39 39 ?set_color { 40 40 [fnc.fb_pending_flush] ; … … 43 43 } 44 44 } + 45 45 46 46 ?set_rgb_color { 47 47 [fnc.fb_pending_flush] ; … … 50 50 } 51 51 } + 52 52 53 53 ?cursor_visibility { 54 54 [fnc.fb_pending_flush] ; … … 57 57 } 58 58 } + 59 59 60 60 ?kcon_enable { 61 61 !sys_console.sys_debug_enable_console 62 62 } + 63 63 64 64 ?get_event + 65 65 ?get_size +
Note:
See TracChangeset
for help on using the changeset viewer.