aboutsummaryrefslogtreecommitdiffstats
path: root/vgasrc/Kconfig
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2017-11-15 14:43:10 +0100
committerGerd Hoffmann <kraxel@redhat.com>2018-06-22 07:44:07 +0200
commit77404b450d30a1d7860e717e98762b8a4745341d (patch)
tree1baf51c0af23cf05f75813323b171c6a670fe1a9 /vgasrc/Kconfig
parent4d70b24b86012e382cf551ce72c2dd6c92a6d1fa (diff)
downloadseabios-77404b450d30a1d7860e717e98762b8a4745341d.tar.gz
qemu: add bochs-display support
Use coreboot text mode emulation to also support the qemu bochs-display device. This is a new display device supporting simple linear framebuffers, using the bochs register interface. No support for legacy vga (text modes, planar modes, cga modes, 8bpp palette modes all dropped). The bochs interface is compatible with the qemu stdvga. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'vgasrc/Kconfig')
-rw-r--r--vgasrc/Kconfig17
1 files changed, 17 insertions, 0 deletions
diff --git a/vgasrc/Kconfig b/vgasrc/Kconfig
index f5098a4b..4443c0b3 100644
--- a/vgasrc/Kconfig
+++ b/vgasrc/Kconfig
@@ -55,6 +55,21 @@ menu "VGA ROM"
Build support for a vgabios wrapper around video
devices initialized using coreboot native vga init.
+ config DISPLAY_BOCHS
+ depends on QEMU
+ bool "qemu bochs-display support"
+ select VGA_EMULATE_TEXT
+ help
+ Build support for the qemu bochs-display device, which
+ is basically qemu stdvga without the legacy vga
+ emulation, supporting only 16+32 bpp VESA video modes
+ in a linear framebuffer. So this uses cbvga text mode
+ emulation.
+
+ The bochs-display device is available in qemu
+ v3.0+. The vgabios works with the qemu stdvga too (use
+ "qemu -device VGA,romfile=/path/to/vgabios.bin")".
+
endchoice
choice
@@ -166,6 +181,7 @@ menu "VGA ROM"
default 0x1af4 if VGA_BOCHS_VIRTIO
default 0x100b if VGA_GEODEGX2
default 0x1022 if VGA_GEODELX
+ default 0x1234 if DISPLAY_BOCHS
default 0x0000
help
Vendor ID for the PCI ROM
@@ -181,6 +197,7 @@ menu "VGA ROM"
default 0x1050 if VGA_BOCHS_VIRTIO
default 0x0030 if VGA_GEODEGX2
default 0x2081 if VGA_GEODELX
+ default 0x1111 if DISPLAY_BOCHS
default 0x0000
help
Device ID for the PCI ROM