xref: /rk3399_rockchip-uboot/include/bios_emul.h (revision 176bf4ce0cb8ddf380f116860951641c4a700271)
1 /*
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 /****************************************************************************
14 REMARKS:
15 Data structure used to describe the details for the BIOS emulator system
16 environment as used by the X86 emulator library.
17 
18 HEADER:
19 biosemu.h
20 
21 MEMBERS:
22 vgaInfo         - VGA BIOS information structure
23 biosmem_base    - Base of the BIOS image
24 biosmem_limit   - Limit of the BIOS image
25 busmem_base     - Base of the VGA bus memory
26 ****************************************************************************/
27 typedef 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 
39 struct vbe_mode_info;
40 
41 int BootVideoCardBIOS(pci_dev_t pcidev, BE_VGAInfo **pVGAInfo, int cleanUp);
42 
43 #endif
44