]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Universal/DriverSampleDxe/NVDataStruc.h
Add new op-code samples, includes efi varstore, refresh guid group and ref op-code.
[mirror_edk2.git] / MdeModulePkg / Universal / DriverSampleDxe / NVDataStruc.h
1 /** @file
2
3 Copyright (c) 2007 - 2010, 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
31 #define FORMSET_GUID \
32 { \
33 0xA04A27f4, 0xDF00, 0x4D42, {0xB5, 0x52, 0x39, 0x51, 0x13, 0x02, 0x11, 0x3D} \
34 }
35
36 #define INVENTORY_GUID \
37 { \
38 0xb3f56470, 0x6141, 0x4621, {0x8f, 0x19, 0x70, 0x4e, 0x57, 0x7a, 0xa9, 0xe8} \
39 }
40
41 #define EFI_USER_INFO_ACCESS_SETUP_ADMIN_GUID \
42 { 0x85b75607, 0xf7ce, 0x471e, { 0xb7, 0xe4, 0x2a, 0xea, 0x5f, 0x72, 0x32, 0xee } }
43
44 #define EFI_IFR_REFRESH_ID_OP_GUID \
45 { \
46 0xF5E655D9, 0x02A6, 0x46f2, {0x9E, 0x76, 0xB8, 0xBE, 0x8E, 0x60, 0xAB, 0x22} \
47 }
48
49 #define ZERO_GUID \
50 { \
51 0x0, 0x0, 0x0, {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0} \
52 }
53
54 #define CONFIGURATION_VARSTORE_ID 0x1234
55
56 #pragma pack(1)
57 typedef struct {
58 UINT16 WhatIsThePassword[20];
59 UINT16 WhatIsThePassword2[20];
60 UINT16 MyStringData[40];
61 UINT16 PasswordClearText[20];
62 UINT16 SomethingHiddenForHtml;
63 UINT8 HowOldAreYouInYearsManual;
64 UINT16 HowTallAreYouManual;
65 UINT8 HowOldAreYouInYears;
66 UINT16 HowTallAreYou;
67 UINT8 MyFavoriteNumber;
68 UINT8 TestLateCheck;
69 UINT8 TestLateCheck2;
70 UINT8 QuestionAboutTreeHugging;
71 UINT8 ChooseToActivateNuclearWeaponry;
72 UINT8 SuppressGrayOutSomething;
73 UINT8 OrderedList[8];
74 UINT16 BootOrder[8];
75 UINT8 BootOrderLarge;
76 UINT8 DynamicRefresh;
77 UINT8 DynamicOneof;
78 UINT8 DynamicOrderedList[5];
79 UINT8 Reserved;
80 EFI_HII_REF RefData;
81 UINT8 NameValueVar0;
82 UINT16 NameValueVar1;
83 UINT16 NameValueVar2[20];
84 UINT8 SerialPortNo;
85 UINT8 SerialPortStatus;
86 UINT16 SerialPortIo;
87 UINT8 SerialPortIrq;
88 UINT8 GetDefaultValueFromCallBack;
89 UINT8 GetDefaultValueFromAccess;
90 EFI_HII_TIME Time;
91 UINT8 RefreshGuidCount;
92 } DRIVER_SAMPLE_CONFIGURATION;
93
94 //
95 // 2nd NV data structure definition
96 //
97 typedef struct {
98 UINT8 Field8;
99 UINT16 Field16;
100 UINT8 OrderedList[3];
101 } MY_EFI_VARSTORE_DATA;
102
103 //
104 // Labels definition
105 //
106 #define LABEL_UPDATE1 0x1234
107 #define LABEL_UPDATE2 0x2234
108 #define LABEL_UPDATE3 0x3234
109 #define LABEL_END 0x2223
110
111 #pragma pack()
112
113 #endif