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 --- include/bios_emul.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/bios_emul.h') diff --git a/include/bios_emul.h b/include/bios_emul.h index f4c4d1d443..3643b82b3a 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 -- cgit v1.2.3