Changeset 96b02eb9 in mainline for contrib/arch/uspace/srv/fb/fb.adl
- 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
-
contrib/arch/uspace/srv/fb/fb.adl
r554debd r96b02eb9 1 1 interface fb extends service { 2 2 /* Get screen resolution */ 3 ipcarg_t get_resolution(out ipcarg_t width, out ipcarg_t height);3 sysarg_t get_resolution(out sysarg_t width, out sysarg_t height); 4 4 5 5 /* Yield screen */ 6 ipcarg_t screen_yield(void);6 sysarg_t screen_yield(void); 7 7 8 8 /* Reclaim screen */ 9 ipcarg_t screen_reclaim(void);9 sysarg_t screen_reclaim(void); 10 10 11 11 /* Set mouse cursor position on screen */ 12 ipcarg_t pointer_move(in ipcarg_t x, in ipcarg_t y);12 sysarg_t pointer_move(in sysarg_t x, in sysarg_t y); 13 13 14 14 /* Create new viewport */ 15 ipcarg_t viewport_create(in ipcarg_t origin, in ipcarg_t dimension);15 sysarg_t viewport_create(in sysarg_t origin, in sysarg_t dimension); 16 16 17 17 /* Get viewport size in character cells */ 18 ipcarg_t get_csize(out ipcarg_t width, out ipcarg_t height);18 sysarg_t get_csize(out sysarg_t width, out sysarg_t height); 19 19 20 20 /* Clear viewport character buffer */ 21 ipcarg_t clear(void);21 sysarg_t clear(void); 22 22 23 23 /* Scroll viewport character buffer */ 24 ipcarg_t scroll(in ipcarg_t lines);24 sysarg_t scroll(in sysarg_t lines); 25 25 26 26 /* Set active viewport */ 27 ipcarg_t viewport_switch(in ipcarg_t index);27 sysarg_t viewport_switch(in sysarg_t index); 28 28 29 29 /* Delete viewport */ 30 ipcarg_t viewport_delete(in ipcarg_t index);30 sysarg_t viewport_delete(in sysarg_t index); 31 31 32 32 /* Get color capabilities of the screen */ 33 ipcarg_t get_color_cap(void);33 sysarg_t get_color_cap(void); 34 34 35 35 /* Set abstract text style */ 36 ipcarg_t set_style(in ipcarg_t style);36 sysarg_t set_style(in sysarg_t style); 37 37 38 38 /* Set EGA-based text color */ 39 ipcarg_t set_color(in ipcarg_t fg_color, in ipcarg_t bg_color, in ipcarg_t atrr);39 sysarg_t set_color(in sysarg_t fg_color, in sysarg_t bg_color, in sysarg_t atrr); 40 40 41 41 /* Set RGB-based text color */ 42 ipcarg_t set_rgb_color(in ipcarg_t fg_color, in ipcarg_t bg_color);42 sysarg_t set_rgb_color(in sysarg_t fg_color, in sysarg_t bg_color); 43 43 44 44 /* Put a character to a given position in viewport character buffer */ 45 ipcarg_t putchar(in ipcarg_t char, in ipcarg_t col, in ipcarg_t row);45 sysarg_t putchar(in sysarg_t char, in sysarg_t col, in sysarg_t row); 46 46 47 47 /* Set character cursor visibility in viewport */ 48 ipcarg_t cursor_visibility(in ipcarg_t visible);48 sysarg_t cursor_visibility(in sysarg_t visible); 49 49 50 50 /* Set character cursor position in viewport */ 51 ipcarg_t cursor_goto(in ipcarg_t col, in ipcarg_t row);51 sysarg_t cursor_goto(in sysarg_t col, in sysarg_t row); 52 52 53 53 /* Prepare memory sharing of bitmaps */ 54 ipcarg_t prepare_shm(in ipcarg_t as_area_base);54 sysarg_t prepare_shm(in sysarg_t as_area_base); 55 55 56 56 /* Share bitmap or text data */ 57 ipcarg_t ipc_m_share_out(in ipcarg_t as_area_base, in ipcarg_t as_area_size, out ipcarg_t dst_as_area);57 sysarg_t ipc_m_share_out(in sysarg_t as_area_base, in sysarg_t as_area_size, out sysarg_t dst_as_area); 58 58 59 59 /* Drop memory sharing */ 60 ipcarg_t drop_shm(void);60 sysarg_t drop_shm(void); 61 61 62 62 /* Draw PPM data from shared memory to viewport */ 63 ipcarg_t draw_ppm(in ipcarg_t x, in ipcarg_t y);63 sysarg_t draw_ppm(in sysarg_t x, in sysarg_t y); 64 64 65 65 /* Put characters from shared memory to viewport */ 66 ipcarg_t draw_text_data(in ipcarg_t x, in ipcarg_t y, in ipcarg_t width, in ipcarg_t height);66 sysarg_t draw_text_data(in sysarg_t x, in sysarg_t y, in sysarg_t width, in sysarg_t height); 67 67 68 68 /* Convert PPM data from shared memory to pixmap */ 69 ipcarg_t shm2pixmap(void);69 sysarg_t shm2pixmap(void); 70 70 71 71 /* Save viewport contents to a pixmap */ 72 ipcarg_t vp2pixmap(in ipcarg_t vp_index);72 sysarg_t vp2pixmap(in sysarg_t vp_index); 73 73 74 74 /* Draw pixmap to viewport */ 75 ipcarg_t vp_draw_pixmap(in ipcarg_t vp_index, in ipcarg_t pm_index);75 sysarg_t vp_draw_pixmap(in sysarg_t vp_index, in sysarg_t pm_index); 76 76 77 77 /* Discard pixmap */ 78 ipcarg_t drop_pixmap(in ipcarg_t pm_index);78 sysarg_t drop_pixmap(in sysarg_t pm_index); 79 79 80 80 /* Create new (empty) animation for a viewport */ 81 ipcarg_t anim_create(in ipcarg_t vp_index);81 sysarg_t anim_create(in sysarg_t vp_index); 82 82 83 83 /* Append a pixmap to an animation */ 84 ipcarg_t anim_addpixmap(in ipcarg_t anim_index, in ipcarg_t pm_index);84 sysarg_t anim_addpixmap(in sysarg_t anim_index, in sysarg_t pm_index); 85 85 86 86 /* Change a viewport associated with an animation */ 87 ipcarg_t anim_chgvp(in ipcarg_t anim_index, in ipcarg_t vp_index);87 sysarg_t anim_chgvp(in sysarg_t anim_index, in sysarg_t vp_index); 88 88 89 89 /* Start animation playback */ 90 ipcarg_t anim_start(in ipcarg_t anim_index);90 sysarg_t anim_start(in sysarg_t anim_index); 91 91 92 92 /* Stop animation playback */ 93 ipcarg_t anim_stop(in ipcarg_t anim_index);93 sysarg_t anim_stop(in sysarg_t anim_index); 94 94 95 95 /* Delete animation */ 96 ipcarg_t anim_drop(in ipcarg_t anim_index);96 sysarg_t anim_drop(in sysarg_t anim_index); 97 97 protocol: 98 98 [fb.bp]
Note:
See TracChangeset
for help on using the changeset viewer.