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>
This commit is contained in:
parent
bd7e8d8d2b
commit
748a6b1068
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue