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
Add support for the new bochs-display device in qemu.
Gerd Hoffmann (6):
optionrom: enable non-vga display devices
cbvga: factor out cbvga_setup_modes()
qemu: add bochs-display support
cbvga_setup_modes: use real mode number instead of 0x140
cbvga_list_modes: don't list current mode
In case no VGA device was found look for other display devices.
Signed-off-by: Gerd Hoffmann
---
src/optionroms.c | 29 -
1 file changed, 28 insertions(+), 1 deletion(-)
diff --git a/src/optionroms.c b/src/optionroms.c
index 092393a56c..fc992f649f 100644
---
In case the framebuffer size matches one of the cbvga video modes
just use that mode number instead of 0x140.
Signed-off-by: Gerd Hoffmann
---
vgasrc/cbvga.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/vgasrc/cbvga.c b/vgasrc/cbvga.c
index 9ae97d5f51..fb68620067 100644
---
In case we've already added the framebuffer video mode
to the list do not add number 0x140.
Signed-off-by: Gerd Hoffmann
---
vgasrc/cbvga.c | 6 +-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/vgasrc/cbvga.c b/vgasrc/cbvga.c
index fb68620067..3f16bee10c 100644
---
Signed-off-by: Gerd Hoffmann
---
vgasrc/cbvga.c | 10 +-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/vgasrc/cbvga.c b/vgasrc/cbvga.c
index 3f16bee10c..f6ebe71242 100644
--- a/vgasrc/cbvga.c
+++ b/vgasrc/cbvga.c
@@ -192,8 +192,16 @@ int
cbvga_set_mode(struct vgamode_s
Factor out generic data structure setup code from cbvga_setup().
Signed-off-by: Gerd Hoffmann
---
vgasrc/vgautil.h | 1 +
vgasrc/cbvga.c | 57 +++-
2 files changed, 33 insertions(+), 25 deletions(-)
diff --git a/vgasrc/vgautil.h
On Mon, Jun 04, 2018 at 09:29:17AM +0200, Gerd Hoffmann wrote:
> Signed-off-by: Gerd Hoffmann
> ---
> vgasrc/cbvga.c | 10 +-
> 1 file changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/vgasrc/cbvga.c b/vgasrc/cbvga.c
> index 3f16bee10c..f6ebe71242 100644
> --- a/vgasrc/cbvga.c
>