diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2013-11-25 17:12:07 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2013-11-26 09:14:57 +0100 |
commit | 748a6b10680bccaa890e9db388c1a9a6e284a227 (patch) | |
tree | 4d56f3f52811dd386d3d388bb60aca5467ea3d47 /src/drivers | |
parent | bd7e8d8d2b1d65e59dd45db6529c89f9173b7b20 (diff) |
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 <kraxel@redhat.com>
Reviewed-on: http://review.coreboot.org/4274
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/drivers')
-rw-r--r-- | src/drivers/emulation/qemu/bochs.c | 6 |
1 files changed, 4 insertions, 2 deletions
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; |