TianoCore EDK2 master
Loading...
Searching...
No Matches
FrontPage.h
Go to the documentation of this file.
1
9#ifndef _FRONT_PAGE_H_
10#define _FRONT_PAGE_H_
11
12#include "String.h"
13#include "Ui.h"
14
15#include <Protocol/BootLogo.h>
16//
17// These is the VFR compiler generated data representing our VFR data.
18//
19extern UINT8 FrontPageVfrBin[];
20
21extern EFI_FORM_BROWSER2_PROTOCOL *gFormBrowser2;
22
23#define SMBIOS_TYPE4_CPU_SOCKET_POPULATED BIT6
24
25//
26// This is the VFR compiler generated header file which defines the
27// string identifiers.
28//
29#define PRINTABLE_LANGUAGE_NAME_STRING_ID 0x0001
30
31//
32// These are defined as the same with vfr file
33//
34#define FRONT_PAGE_FORM_ID 0x1000
35
36#define LABEL_FRONTPAGE_INFORMATION 0x1000
37#define LABEL_END 0xffff
38
39#define FRONT_PAGE_FORMSET_GUID \
40 { \
41 0x9e0c30bc, 0x3f06, 0x4ba6, {0x82, 0x88, 0x9, 0x17, 0x9b, 0x85, 0x5d, 0xbe} \
42 }
43
44#define FRONT_PAGE_CALLBACK_DATA_SIGNATURE SIGNATURE_32 ('F', 'P', 'C', 'B')
45
46typedef struct {
47 UINTN Signature;
48
49 //
50 // HII relative handles
51 //
52 EFI_HII_HANDLE HiiHandle;
53 EFI_HANDLE DriverHandle;
54 EFI_STRING_ID *LanguageToken;
55
56 //
57 // Produced protocols
58 //
61
62#define EFI_FP_CALLBACK_DATA_FROM_THIS(a) \
63 CR (a, \
64 FRONT_PAGE_CALLBACK_DATA, \
65 ConfigAccess, \
66 FRONT_PAGE_CALLBACK_DATA_SIGNATURE \
67 )
68
92EFIAPI
95 IN CONST EFI_STRING Request,
96 OUT EFI_STRING *Progress,
97 OUT EFI_STRING *Results
98 );
99
117EFIAPI
120 IN CONST EFI_STRING Configuration,
121 OUT EFI_STRING *Progress
122 );
123
143EFIAPI
146 IN EFI_BROWSER_ACTION Action,
147 IN EFI_QUESTION_ID QuestionId,
148 IN UINT8 Type,
149 IN EFI_IFR_TYPE_VALUE *Value,
150 OUT EFI_BROWSER_ACTION_REQUEST *ActionRequest
151 );
152
162 VOID
163 );
164
178 IN EFI_GUID *ProducerGuid,
179 IN EFI_STRING_ID Token,
180 OUT CHAR16 **String
181 );
182
190VOID
191EFIAPI
192UiEntry (
193 IN BOOLEAN ConnectAllHappened
194 );
195
205CHAR16 *
207 IN EFI_HII_HANDLE Handle
208 );
209
210#endif // _FRONT_PAGE_H_
UINT64 UINTN
CHAR16 * ExtractDevicePathFromHiiHandle(IN EFI_HII_HANDLE Handle)
EFI_STATUS InitializeFrontPage(VOID)
Definition: FrontPage.c:253
EFI_STATUS EFIAPI FrontPageCallback(IN CONST EFI_HII_CONFIG_ACCESS_PROTOCOL *This, IN EFI_BROWSER_ACTION Action, IN EFI_QUESTION_ID QuestionId, IN UINT8 Type, IN EFI_IFR_TYPE_VALUE *Value, OUT EFI_BROWSER_ACTION_REQUEST *ActionRequest)
Definition: FrontPage.c:176
EFI_STATUS EFIAPI FakeRouteConfig(IN CONST EFI_HII_CONFIG_ACCESS_PROTOCOL *This, IN CONST EFI_STRING Configuration, OUT EFI_STRING *Progress)
Definition: FrontPage.c:141
EFI_STATUS EFIAPI FakeExtractConfig(IN CONST EFI_HII_CONFIG_ACCESS_PROTOCOL *This, IN CONST EFI_STRING Request, OUT EFI_STRING *Progress, OUT EFI_STRING *Results)
Definition: FrontPage.c:108
VOID EFIAPI UiEntry(IN BOOLEAN ConnectAllHappened)
Definition: FrontPage.c:993
EFI_STATUS GetProducerString(IN EFI_GUID *ProducerGuid, IN EFI_STRING_ID Token, OUT CHAR16 **String)
#define CONST
Definition: Base.h:259
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
VOID * EFI_HANDLE
Definition: UefiBaseType.h:33
VOID * EFI_HII_HANDLE
Definition: Base.h:213