xref: /openbmc/qemu/ui/console-priv.h (revision 1f2355f5)
1 /*
2  * SPDX-License-Identifier: GPL-2.0-or-later
3  * QEMU UI Console
4  */
5 #ifndef CONSOLE_PRIV_H
6 #define CONSOLE_PRIV_H
7 
8 #include "ui/console.h"
9 #include "qemu/coroutine.h"
10 #include "qemu/timer.h"
11 
12 #include "vgafont.h"
13 
14 #define FONT_HEIGHT 16
15 #define FONT_WIDTH 8
16 
17 struct QemuConsole {
18     Object parent;
19 
20     int index;
21     DisplayState *ds;
22     DisplaySurface *surface;
23     DisplayScanout scanout;
24     int dcls;
25     DisplayGLCtx *gl;
26     int gl_block;
27     QEMUTimer *gl_unblock_timer;
28     int window_id;
29     QemuUIInfo ui_info;
30     QEMUTimer *ui_timer;
31     const GraphicHwOps *hw_ops;
32     void *hw;
33     CoQueue dump_queue;
34 
35     QTAILQ_ENTRY(QemuConsole) next;
36 };
37 
38 void qemu_text_console_update_size(QemuTextConsole *c);
39 const char * qemu_text_console_get_label(QemuTextConsole *c);
40 void qemu_text_console_update_cursor(void);
41 void qemu_text_console_handle_keysym(QemuTextConsole *s, int keysym);
42 
43 #endif
44