X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fpalacios%2Fvmm_console.h;h=fe84bfdcbb9f38c436565fe6169cb303780fb120;hb=3b027df0b7bc5b102ac403411b0e9a756b7081a6;hp=dcff763888b03fa4c1f6a9fc4bad121ac72e2e52;hpb=8b5304a9a64c284ffa459017091e27e1d30b1f50;p=palacios.git diff --git a/palacios/include/palacios/vmm_console.h b/palacios/include/palacios/vmm_console.h index dcff763..fe84bfd 100644 --- a/palacios/include/palacios/vmm_console.h +++ b/palacios/include/palacios/vmm_console.h @@ -30,12 +30,14 @@ typedef void * v3_console_t; -v3_console_t v3_console_open(struct v3_vm_info * vm); +v3_console_t v3_console_open(struct v3_vm_info * vm, uint32_t width, uint32_t height); +void v3_console_close(v3_console_t cons); int v3_console_set_cursor(v3_console_t cons, int x, int y); int v3_console_set_char(v3_console_t cons, int x, int y, char c, uint8_t style); int v3_console_scroll(v3_console_t cons, int lines); int v3_console_update(v3_console_t cons); +int v3_console_set_text_resolution(v3_console_t cons, int cols, int rows); #endif @@ -44,6 +46,8 @@ int v3_console_update(v3_console_t cons); struct v3_console_hooks { /* open console device, mode is a combination of TTY_OPEN_MODE_* flags */ void *(*open)(void * priv_data, unsigned int width, unsigned int height); + + void (*close)(void * tty); /* set cursor position */ int (*set_cursor)(void * tty, int x, int y); @@ -54,6 +58,9 @@ struct v3_console_hooks { /* scroll the console down the specified number of lines */ int (*scroll)(void * tty, int lines); + /* change the text resolution (always followed by a full screen update) */ + int (*set_text_resolution)(void * tty, int cols, int rows); + /* force update of console display; all updates by above functions * may be defferred until the next tty_update call */