]> git.proxmox.com Git - mirror_edk2.git/blame - EdkNt32Pkg/Dxe/PlatformBds/Generic/FrontPage.h
Merge GOP related code from r8->r9.
[mirror_edk2.git] / EdkNt32Pkg / Dxe / PlatformBds / Generic / FrontPage.h
CommitLineData
878ddf1f 1/*++\r
2\r
3Copyright (c) 2006, Intel Corporation \r
4All rights reserved. This program and the accompanying materials \r
5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12Module Name:\r
13\r
14 FrontPage.h\r
15\r
16Abstract:\r
17\r
18 FrontPage routines to handle the callbacks and browser calls\r
19\r
20Revision History\r
21\r
22--*/\r
23\r
24#ifndef _FRONT_PAGE_H\r
25#define _FRONT_PAGE_H\r
26\r
27#include "Generic/DeviceMngr/DeviceManager.h"\r
169c7e46 28#include "Generic/BootMaint/BootMaint.h"\r
878ddf1f 29#include "Generic/BootMngr/BootManager.h"\r
30\r
31//\r
32// This is the VFR compiler generated header file which defines the\r
33// string identifiers.\r
34//\r
35#include "BdsStrDefs.h"\r
36#define EFI_DISK_DEVICE_CLASS 0x01\r
37#define EFI_VIDEO_DEVICE_CLASS 0x02\r
38#define EFI_NETWORK_DEVICE_CLASS 0x04\r
39#define EFI_INPUT_DEVICE_CLASS 0x08\r
40#define EFI_ON_BOARD_DEVICE_CLASS 0x10\r
41#define EFI_OTHER_DEVICE_CLASS 0x20\r
42#define EFI_VBIOS_CLASS 0x40\r
43\r
44#define SET_VIDEO_BIOS_TYPE_QUESTION_ID 0x00\r
45\r
46#pragma pack(1)\r
47typedef struct {\r
48 UINT8 VideoBIOS;\r
49} MyDevMgrIfrNVData;\r
50#pragma pack()\r
51\r
52#define EFI_FP_CALLBACK_DATA_SIGNATURE EFI_SIGNATURE_32 ('F', 'P', 'C', 'B')\r
53#define EFI_FP_CALLBACK_DATA_FROM_THIS(a) \\r
54 CR (a, \\r
55 EFI_FRONTPAGE_CALLBACK_INFO, \\r
56 DevMgrCallback, \\r
57 EFI_FP_CALLBACK_DATA_SIGNATURE \\r
58 )\r
59\r
60typedef struct {\r
61 UINTN Signature;\r
62 MyDevMgrIfrNVData Data;\r
63 EFI_HII_HANDLE DevMgrHiiHandle;\r
64 EFI_HANDLE CallbackHandle;\r
65 EFI_FORM_CALLBACK_PROTOCOL DevMgrCallback;\r
66} EFI_FRONTPAGE_CALLBACK_INFO;\r
67\r
68//\r
69// These are the VFR compiler generated data representing our VFR data.\r
70//\r
71// BugBug: we should put g in front of these tool generated globals.\r
72// maybe even gVrf would be a better prefix\r
73//\r
74extern UINT8 FrontPageVfrBin[];\r
75extern UINT8 FrontPageStringsStr[];\r
76extern UINT8 DeviceManagerVfrBin[];\r
77extern UINT8 DeviceManagerStringsStr[];\r
78\r
79#define FRONT_PAGE_QUESTION_ID 0x0000\r
80#define FRONT_PAGE_DATA_WIDTH 0x01\r
81\r
82EFI_STATUS\r
83InitializeFrontPage (\r
84 IN BOOLEAN ReInitializeStrings\r
85 );\r
86\r
87BOOLEAN\r
88TimeCompare (\r
89 IN EFI_TIME *FirstTime,\r
90 IN EFI_TIME *SecondTime\r
91 );\r
92\r
93VOID\r
94PlatformBdsEnterFrontPage (\r
95 IN UINT16 TimeoutDefault,\r
96 IN BOOLEAN ConnectAllHappened\r
97 );\r
98\r
99#endif // _FRONT_PAGE_H_\r
100\r