From 748a6b10680bccaa890e9db388c1a9a6e284a227 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Mon, 25 Nov 2013 17:12:07 +0100 Subject: qemu: minor bochs cleanups Add a comment, tweak spacing a bit, addr variable doesn't need to be global any more. Change-Id: Id8d8a7babce671243351074f7ac52a5c8c264de5 Signed-off-by: Gerd Hoffmann Reviewed-on: http://review.coreboot.org/4274 Reviewed-by: Ronald G. Minnich Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel --- src/drivers/emulation/qemu/bochs.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/drivers/emulation/qemu') diff --git a/src/drivers/emulation/qemu/bochs.c b/src/drivers/emulation/qemu/bochs.c index eb11e34b8c..b4acfefcbc 100644 --- a/src/drivers/emulation/qemu/bochs.c +++ b/src/drivers/emulation/qemu/bochs.c @@ -41,7 +41,6 @@ static int width = CONFIG_DRIVERS_EMULATION_QEMU_BOCHS_XRES; static int height = CONFIG_DRIVERS_EMULATION_QEMU_BOCHS_YRES; -static u32 addr = 0; static void bochs_write(int index, int val) { @@ -57,7 +56,9 @@ static int bochs_read(int index) static void bochs_init(device_t dev) { + struct edid edid; int id, mem, bar; + u32 addr; /* bochs dispi detection */ id = bochs_read(VBE_DISPI_INDEX_ID); @@ -101,7 +102,8 @@ static void bochs_init(device_t dev) VBE_DISPI_ENABLED | VBE_DISPI_LFB_ENABLED); outb(0x20, 0x3c0); /* disable blanking */ - struct edid edid; + + /* setup coreboot framebuffer */ edid.ha = width; edid.va = height; edid.bpp = 32; -- cgit v1.2.3