2 Include file for platform variable cleanup.
4 Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15 #ifndef _PLAT_VAR_CLEANUP_
16 #define _PLAT_VAR_CLEANUP_
18 #include <Library/UefiBootServicesTableLib.h>
19 #include <Library/UefiRuntimeServicesTableLib.h>
20 #include <Library/BaseLib.h>
21 #include <Library/DebugLib.h>
22 #include <Library/BaseMemoryLib.h>
23 #include <Library/PrintLib.h>
24 #include <Library/MemoryAllocationLib.h>
25 #include <Library/HiiLib.h>
26 #include <Library/PlatformVarCleanupLib.h>
28 #include <Protocol/Variable.h>
29 #include <Protocol/VarCheck.h>
30 #include <Protocol/FormBrowser2.h>
31 #include <Protocol/HiiConfigAccess.h>
32 #include <Protocol/HiiConfigRouting.h>
33 #include <Protocol/DevicePath.h>
35 #include <Guid/EventGroup.h>
36 #include <Guid/MdeModuleHii.h>
37 #include <Guid/ImageAuthentication.h>
38 #include <Guid/VarErrorFlag.h>
40 #include "PlatVarCleanupHii.h"
43 // This is the generated IFR binary data for each formset defined in VFR.
44 // This data array is ready to be used as input of HiiAddPackages() to
45 // create a packagelist (which contains Form packages, String packages, etc).
47 extern UINT8 PlatVarCleanupBin
[];
50 // This is the generated String package data for all .UNI files.
51 // This data array is ready to be used as input of HiiAddPackages() to
52 // create a packagelist (which contains Form packages, String packages, etc).
54 extern UINT8 PlatformVarCleanupLibStrings
[];
56 #define USER_VARIABLE_NODE_SIGNATURE SIGNATURE_32 ('U', 'V', 'N', 'S')
66 #define USER_VARIABLE_FROM_LINK(a) CR (a, USER_VARIABLE_NODE, Link, USER_VARIABLE_NODE_SIGNATURE)
68 #define USER_VARIABLE_NAME_NODE_SIGNATURE SIGNATURE_32 ('U', 'V', 'N', 'N')
77 EFI_QUESTION_ID QuestionId
;
81 } USER_VARIABLE_NAME_NODE
;
83 #define USER_VARIABLE_NAME_FROM_LINK(a) CR (a, USER_VARIABLE_NAME_NODE, Link, USER_VARIABLE_NAME_NODE_SIGNATURE)
87 // HII specific Vendor Device Path definition.
90 VENDOR_DEVICE_PATH VendorDevicePath
;
91 EFI_DEVICE_PATH_PROTOCOL End
;
92 } HII_VENDOR_DEVICE_PATH
;
95 #define VARIABLE_CLEANUP_HII_PRIVATE_SIGNATURE SIGNATURE_32 ('V', 'C', 'H', 'P')
99 EFI_HANDLE DriverHandle
;
100 EFI_HII_HANDLE HiiHandle
;
101 EFI_HII_CONFIG_ACCESS_PROTOCOL ConfigAccess
;
102 EFI_HII_CONFIG_ROUTING_PROTOCOL
*ConfigRouting
;
103 VARIABLE_CLEANUP_DATA VariableCleanupData
;
104 } VARIABLE_CLEANUP_HII_PRIVATE_DATA
;
106 #define VARIABLE_CLEANUP_HII_PRIVATE_FROM_THIS(a) CR (a, VARIABLE_CLEANUP_HII_PRIVATE_DATA, ConfigAccess, VARIABLE_CLEANUP_HII_PRIVATE_SIGNATURE)