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