summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-11-14 20:56:40 -0700
committerSimon Glass <sjg@chromium.org>2014-11-25 07:11:17 -0700
commit4c59f95327966b83981cb53371a854570a01e8d9 (patch)
tree9abbcb2d8b8f336ea0cae2e492a3b7c84cf40f85 /include
parentad6edca379117d52da373818a5db3027da2ad14b (diff)
downloadu-boot-imx-4c59f95327966b83981cb53371a854570a01e8d9.zip
u-boot-imx-4c59f95327966b83981cb53371a854570a01e8d9.tar.gz
u-boot-imx-4c59f95327966b83981cb53371a854570a01e8d9.tar.bz2
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 <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/bios_emul.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/bios_emul.h b/include/bios_emul.h
index f4c4d1d..3643b82 100644
--- a/include/bios_emul.h
+++ b/include/bios_emul.h
@@ -55,4 +55,12 @@ void bios_run_on_x86(pci_dev_t pcidev, unsigned long addr, int vesa_mode,
*/
void bios_set_interrupt_handler(int intnum, int (*int_handler_func)(void));
+void biosemu_set_interrupt_handler(int intnum, int (*int_func)(void));
+
+int biosemu_setup(pci_dev_t pcidev, BE_VGAInfo **pVGAInfo);
+
+int biosemu_run(pci_dev_t pcidev, uchar *bios_rom, int bios_len,
+ BE_VGAInfo *vga_info, int clean_up, int vesa_mode,
+ struct vbe_mode_info *mode_info);
+
#endif