TianoCore EDK2 master
Loading...
Searching...
No Matches
OpalHii.h
Go to the documentation of this file.
1
10#ifndef _OPAL_HII_H_
11#define _OPAL_HII_H_
12
14
15#include "OpalDriver.h"
16#include "OpalHiiFormValues.h"
17
18#define OPAL_PASSWORD_CONFIG_GUID \
19 { \
20 0x0d510a4f, 0xa81b, 0x473f, { 0x87, 0x07, 0xb7, 0xfd, 0xfb, 0xc0, 0x45, 0xba } \
21 }
22
23#define OPAL_REQUEST_VARIABLE_NAME L"OpalRequest"
24
25#pragma pack(1)
26
27typedef struct {
28 UINT32 Length;
29 OPAL_REQUEST OpalRequest;
30 // EFI_DEVICE_PATH_PROTOCOL OpalDevicePath;
32
33typedef struct {
34 UINT16 Id : HII_KEY_ID_BITS;
35 UINT16 Index : HII_KEY_INDEX_BITS;
36 UINT16 Flag : HII_KEY_FLAG_BITS;
37} KEY_BITS;
38
39typedef union {
40 UINT16 Raw;
41 KEY_BITS KeyBits;
42} HII_KEY;
43
44typedef struct {
45 VENDOR_DEVICE_PATH VendorDevicePath;
48
49#pragma pack()
50
51extern const EFI_GUID gHiiSetupVariableGuid;
52
72EFIAPI
75 CONST EFI_STRING Configuration,
76 EFI_STRING *Progress
77 );
78
106EFIAPI
109 CONST EFI_STRING Request,
110 EFI_STRING *Progress,
111 EFI_STRING *Results
112 );
113
137EFIAPI
140 EFI_BROWSER_ACTION Action,
141 EFI_QUESTION_ID QuestionId,
142 UINT8 Type,
143 EFI_IFR_TYPE_VALUE *Value,
144 EFI_BROWSER_ACTION_REQUEST *ActionRequest
145 );
146
152VOID
154 VOID
155 );
156
162VOID
164 VOID
165 );
166
175 VOID
176 );
177
188 UINT8 Index
189 );
190
202 EFI_STRING_ID Str
203 );
204
216 UINT32 PpRequest
217 );
218
229 EFI_STRING_ID PsidStringId
230 );
231
240EFI_STRING_ID
242 UINT8 DiskIndex
243 );
244
257 OPAL_DISK *OpalDisk
258 );
259
268 VOID
269 );
270
279 VOID
280 );
281
290OPAL_DISK *
292 UINT8 DiskIndex
293 );
294
303CHAR8 *
305 UINT8 DiskIndex
306 );
307
320 EFI_STRING_ID DestStringId,
321 CHAR8 *SrcAsciiStr
322 );
323
332 VOID
333 );
334
343 VOID
344 );
345
358 );
359
372 OPAL_DISK *OpalDisk
373 );
374
375#endif // _HII_H_
#define CONST
Definition: Base.h:259
#define IN
Definition: Base.h:279
EFI_STATUS EFIAPI ExtractConfig(CONST EFI_HII_CONFIG_ACCESS_PROTOCOL *This, CONST EFI_STRING Request, EFI_STRING *Progress, EFI_STRING *Results)
Definition: OpalHii.c:1073
VOID OpalHiiGetBrowserData(VOID)
Definition: OpalHii.c:1181
EFI_STATUS OpalDiskUpdateOwnerShip(OPAL_DISK *OpalDisk)
Definition: OpalHii.c:1314
EFI_STATUS EFIAPI RouteConfig(CONST EFI_HII_CONFIG_ACCESS_PROTOCOL *This, CONST EFI_STRING Configuration, EFI_STRING *Progress)
Definition: OpalHii.c:1025
EFI_STATUS HiiSelectDisk(UINT8 Index)
Definition: OpalHii.c:876
EFI_STATUS OpalDiskUpdateStatus(OPAL_DISK *OpalDisk)
Definition: OpalHii.c:1349
EFI_STATUS HiiUninstall(VOID)
Definition: OpalHii.c:436
EFI_STATUS HiiPopulateDiskInfoForm(VOID)
Definition: OpalHii.c:894
EFI_STATUS HiiInstall(VOID)
Definition: OpalHii.c:349
EFI_STATUS HiiPasswordEntered(EFI_STRING_ID Str)
EFI_HANDLE HiiGetDriverImageHandleCB(VOID)
EFI_STRING_ID GetDiskNameStringId(UINT8 DiskIndex)
Definition: OpalHii.c:511
EFI_STATUS HiiSetFormString(EFI_STRING_ID DestStringId, CHAR8 *SrcAsciiStr)
Definition: OpalHii.c:1204
OPAL_DISK * HiiGetOpalDiskCB(UINT8 DiskIndex)
VOID OpalHiiSetBrowserData(VOID)
Definition: OpalHii.c:1162
CHAR8 * HiiDiskGetNameCB(UINT8 DiskIndex)
EFI_STATUS OpalDiskInitialize(IN OPAL_DRIVER_DEVICE *Dev)
Definition: OpalHii.c:1256
EFI_STATUS HiiPsidRevert(EFI_STRING_ID PsidStringId)
EFI_STATUS EFIAPI DriverCallback(CONST EFI_HII_CONFIG_ACCESS_PROTOCOL *This, EFI_BROWSER_ACTION Action, EFI_QUESTION_ID QuestionId, UINT8 Type, EFI_IFR_TYPE_VALUE *Value, EFI_BROWSER_ACTION_REQUEST *ActionRequest)
Definition: OpalHii.c:606
EFI_STATUS OpalHiiAddPackages(VOID)
Definition: OpalHii.c:399
EFI_STATUS HiiSetBlockSidAction(UINT32 PpRequest)
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
VOID * EFI_HANDLE
Definition: UefiBaseType.h:33
Definition: Base.h:213