[SeaBIOS] [PATCH v2 3/6] qemu: add bochs-display support

2018-06-04 Thread Gerd Hoffmann
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

[SeaBIOS] [PATCH v2 0/6] qemu: add bochs-display support

2018-06-04 Thread Gerd Hoffmann
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

[SeaBIOS] [PATCH v2 1/6] optionrom: enable non-vga display devices

2018-06-04 Thread Gerd Hoffmann
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 ---

[SeaBIOS] [PATCH v2 4/6] cbvga_setup_modes: use real mode number instead of 0x140

2018-06-04 Thread Gerd Hoffmann
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 ---

[SeaBIOS] [PATCH v2 5/6] cbvga_list_modes: don't list current mode twice

2018-06-04 Thread Gerd Hoffmann
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 ---

[SeaBIOS] [PATCH v2 6/6] cbvga_set_mode: disable clearmem in windows x86 emulator.

2018-06-04 Thread Gerd Hoffmann
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

[SeaBIOS] [PATCH v2 2/6] cbvga: factor out cbvga_setup_modes()

2018-06-04 Thread Gerd Hoffmann
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

Re: [SeaBIOS] [PATCH v2 6/6] cbvga_set_mode: disable clearmem in windows x86 emulator.

2018-06-04 Thread Kevin O'Connor
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 >