]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/Forms.c
Bug fixes for FrameworkHiiToUefiHiiThunk;
[mirror_edk2.git] / EdkCompatibilityPkg / Compatibility / FrameworkHiiToUefiHiiThunk / Forms.c
CommitLineData
4259256b 1/**@file\r
2 This file contains the form processing code to the HII database.\r
3\r
4Copyright (c) 2006 - 2008 Intel Corporation. <BR>\r
5All rights reserved. This program and the accompanying materials\r
6are licensed and made available under the terms and conditions of the BSD License\r
7which accompanies this distribution. The full text of the license may be found at\r
8http://opensource.org/licenses/bsd-license.php\r
9\r
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15\r
16#include "HiiDatabase.h"\r
59336178 17#include "UefiIfrDefault.h"\r
5391c4f1 18#include "OpcodeCreation.h"\r
4259256b 19\r
0368663f 20//\r
21// This structure is only intended to be used in this file.\r
22//\r
ea58467b 23#pragma pack(push, 1)\r
24typedef struct {\r
25 EFI_HII_PACK_HEADER PackageHeader;\r
26 FRAMEWORK_EFI_IFR_FORM_SET FormSet;\r
27 FRAMEWORK_EFI_IFR_END_FORM_SET EndFormSet;\r
0368663f 28} FW_HII_FORMSET_TEMPLATE;\r
ea58467b 29#pragma pack(pop)\r
30\r
0368663f 31FW_HII_FORMSET_TEMPLATE FormSetTemplate = {\r
ea58467b 32 {\r
0368663f 33 sizeof (FW_HII_FORMSET_TEMPLATE),\r
ea58467b 34 EFI_HII_IFR\r
35 },\r
36 {\r
37 {\r
38 FRAMEWORK_EFI_IFR_FORM_SET_OP,\r
39 sizeof (FRAMEWORK_EFI_IFR_FORM_SET)\r
40 },\r
41 //Guid\r
d7152a15 42 {0, 0, 0, {0, 0, 0, 0, 0, 0, 0, 0}},\r
ea58467b 43 0,\r
44 0,\r
45 0,\r
46 0,\r
47 0,\r
48 0\r
49 },\r
50 {\r
d7152a15 51 {\r
52 FRAMEWORK_EFI_IFR_END_FORM_SET_OP,\r
53 sizeof (FRAMEWORK_EFI_IFR_END_FORM_SET)\r
54 }\r
ea58467b 55 }\r
56};\r
57\r
4259256b 58\r
0368663f 59/**\r
4259256b 60\r
0368663f 61 This thunk module only handles UEFI HII packages. The caller of this function \r
62