blob: 35d1ff31c540d91ceafce60e25408898cbe41918 [file] [log] [blame]
Simon Glass176bf4c2014-11-14 20:56:28 -07001/*
2 * Copyright (C) 1996-1999 SciTech Software, Inc.
3 *
4 * SPDX-License-Identifier: GPL-2.0
5 */
6
7#ifndef _BIOS_EMUL_H
8#define _BIOS_EMUL_H
9
10/* Include the register header directly here */
11#include "../drivers/bios_emulator/include/x86emu/regs.h"
12
13/****************************************************************************
14REMARKS:
15Data structure used to describe the details for the BIOS emulator system
16environment as used by the X86 emulator library.
17
18HEADER:
19biosemu.h
20
21MEMBERS:
22vgaInfo - VGA BIOS information structure
23biosmem_base - Base of the BIOS image
24biosmem_limit - Limit of the BIOS image
25busmem_base - Base of the VGA bus memory
26****************************************************************************/
27typedef struct {
28 int function;
29 int device;
30 int bus;
31 u32 VendorID;
32 u32 DeviceID;
33 pci_dev_t pcidev;
34 void *BIOSImage;
35 u32 BIOSImageLen;
36 u8 LowMem[1536];
37} BE_VGAInfo;
38
39struct vbe_mode_info;
40
41int BootVideoCardBIOS(pci_dev_t pcidev, BE_VGAInfo **pVGAInfo, int cleanUp);
42
43#endif