]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Universal/DriverSampleDxe/NVDataStruc.h
MdeModulePkg: Add match2 opcode support in SetupBrowserDxe and sample code in DriverS...
[mirror_edk2.git] / MdeModulePkg / Universal / DriverSampleDxe / NVDataStruc.h
CommitLineData
0bb0f8b8 1/** @file\r
2\r
c8ad2d7a 3Copyright (c) 2007 - 2011, Intel Corporation. All rights reserved.<BR>\r
e5eed7d3 4This program and the accompanying materials\r
0bb0f8b8 5are licensed and made available under the terms and conditions of the BSD License\r
6which accompanies this distribution. The full text of the license may be found at\r
7http://opensource.org/licenses/bsd-license.php\r
8\r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
11\r
12Module Name:\r
13\r
14 NVDataStruc.h\r
15\r
16Abstract:\r
17\r
18 NVData structure used by the sample driver\r
19\r
20Revision History:\r
21\r
22\r
23**/\r
24\r
7064c0a5 25#ifndef _NVDATASTRUC_H_\r
26#define _NVDATASTRUC_H_\r
0bb0f8b8 27\r
d91c7bf9 28#include <Guid/HiiPlatformSetupFormset.h>\r
96a65fc8 29#include <Guid/HiiFormMapMethodGuid.h>\r
c8ad2d7a
LG
30#include <Guid/DriverSampleHii.h>\r
31#include <Guid/ZeroGuid.h>\r
78c2b9a3 32\r
8d00a0f1 33#define CONFIGURATION_VARSTORE_ID 0x1234\r
0bb0f8b8 34\r
35#pragma pack(1)\r
36typedef struct {\r
37 UINT16 WhatIsThePassword[20];\r
38 UINT16 WhatIsThePassword2[20];\r
39 UINT16 MyStringData[40];\r
40 UINT16 PasswordClearText[20];\r
41 UINT16 SomethingHiddenForHtml;\r
42 UINT8 HowOldAreYouInYearsManual;\r
43 UINT16 HowTallAreYouManual;\r
44 UINT8 HowOldAreYouInYears;\r
45 UINT16 HowTallAreYou;\r
46 UINT8 MyFavoriteNumber;\r
47 UINT8 TestLateCheck;\r
48 UINT8 TestLateCheck2;\r
49 UINT8 QuestionAboutTreeHugging;\r
50 UINT8 ChooseToActivateNuclearWeaponry;\r
51 UINT8 SuppressGrayOutSomething;\r
52 UINT8 OrderedList[8];\r
b5a906f4 53 UINT16 BootOrder[8];\r
0bb0f8b8 54 UINT8 BootOrderLarge;\r
8d00a0f1 55 UINT8 DynamicRefresh;\r
56 UINT8 DynamicOneof;\r
57 UINT8 DynamicOrderedList[5];\r
38ebfecb 58 UINT8 Reserved;\r
78c2b9a3 59 EFI_HII_REF RefData;\r
38ebfecb
LG
60 UINT8 NameValueVar0;\r
61 UINT16 NameValueVar1;\r
62 UINT16 NameValueVar2[20];\r
96a65fc8
LG
63 UINT8 SerialPortNo;\r
64 UINT8 SerialPortStatus;\r
65 UINT16 SerialPortIo;\r
66 UINT8 SerialPortIrq;\r
ee31d1be
ED
67 UINT8 GetDefaultValueFromCallBack;\r
68 UINT8 GetDefaultValueFromAccess;\r
69 EFI_HII_TIME Time;\r
211cc6e5 70 UINT8 RefreshGuidCount;\r
9bd22b08 71 UINT8 Match2;\r
0bb0f8b8 72} DRIVER_SAMPLE_CONFIGURATION;\r
73\r
74//\r
75// 2nd NV data structure definition\r
76//\r
77typedef struct {\r
78 UINT8 Field8;\r
79 UINT16 Field16;\r
80 UINT8 OrderedList[3];\r
78c2b9a3 81} MY_EFI_VARSTORE_DATA;\r
0bb0f8b8 82\r
7e3bcccb
LG
83//\r
84// Labels definition\r
85//\r
86#define LABEL_UPDATE1 0x1234\r
87#define LABEL_UPDATE2 0x2234\r
211cc6e5 88#define LABEL_UPDATE3 0x3234\r
7e3bcccb 89#define LABEL_END 0x2223\r
0bb0f8b8 90\r
91#pragma pack()\r
92\r
93#endif\r