xref: /qemu/include/hw/display/vga.h (revision 727385c4)
1 /*
2  * QEMU VGA Emulator.
3  *
4  * Copyright (c) 2003 Fabrice Bellard
5  *
6  * This work is licensed under the terms of the GNU GPL, version 2 or later.
7  * See the COPYING file in the top-level directory.
8  */
9 #ifndef QEMU_HW_DISPLAY_VGA_H
10 #define QEMU_HW_DISPLAY_VGA_H
11 
12 #include "exec/hwaddr.h"
13 
14 /*
15  * modules can reference this symbol to avoid being loaded
16  * into system emulators without vga support
17  */
18 extern bool have_vga;
19 
20 enum vga_retrace_method {
21     VGA_RETRACE_DUMB,
22     VGA_RETRACE_PRECISE
23 };
24 
25 extern enum vga_retrace_method vga_retrace_method;
26 
27 int isa_vga_mm_init(hwaddr vram_base,
28                     hwaddr ctrl_base, int it_shift,
29                     MemoryRegion *address_space);
30 
31 #endif
32