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