From 4c59f95327966b83981cb53371a854570a01e8d9 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Fri, 14 Nov 2014 20:56:40 -0700 Subject: bios_emulator: Add vesa support and allow ROMs to be passed in as data As well as locating the ROM on the PCI bus, allow the ROM to be supplied to the emulator. Split the init up a little so that callers can supply their own interrupt routines. Also allow a vesa mode to be provided, to be selected once the BIOS run is complete. Signed-off-by: Simon Glass --- drivers/bios_emulator/besys.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/bios_emulator/besys.c') diff --git a/drivers/bios_emulator/besys.c b/drivers/bios_emulator/besys.c index 70c472a16b..8e29a9eafe 100644 --- a/drivers/bios_emulator/besys.c +++ b/drivers/bios_emulator/besys.c @@ -713,9 +713,9 @@ through to the real hardware if we don't need to special case it. void X86API BE_outl(X86EMU_pioAddr port, u32 val) { #if !defined(CONFIG_X86EMU_RAW_IO) - if (IS_PCI_PORT(port)) + if (IS_PCI_PORT(port)) { PCI_outp(port, val, REG_WRITE_DWORD); - else if (port < 0x100) { + } else if (port < 0x100) { DB(printf("WARN: INVALID outl.%04X <- %08X\n", (u16) port,val);) LOG_outpd(port, val); } else -- cgit v1.2.1