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