]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Universal/DriverSampleDxe/NVDataStruc.h
Add example of Name/Value pair var store to DriverSample
[mirror_edk2.git] / MdeModulePkg / Universal / DriverSampleDxe / NVDataStruc.h
1 /** @file
2
3 Copyright (c) 2007 - 2009, Intel Corporation
4 All rights reserved. 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
30 #define FORMSET_GUID \
31 { \
32 0xA04A27f4, 0xDF00, 0x4D42, {0xB5, 0x52, 0x39, 0x51, 0x13, 0x02, 0x11, 0x3D} \
33 }
34
35 #define INVENTORY_GUID \
36 { \
37 0xb3f56470, 0x6141, 0x4621, {0x8f, 0x19, 0x70, 0x4e, 0x57, 0x7a, 0xa9, 0xe8} \
38 }
39
40 #define CONFIGURATION_VARSTORE_ID 0x1234
41
42 #pragma pack(1)
43 typedef struct {
44 UINT16 WhatIsThePassword[20];
45 UINT16 WhatIsThePassword2[20];
46 UINT16 MyStringData[40];
47 UINT16 PasswordClearText[20];
48 UINT16 SomethingHiddenForHtml;
49 UINT8 HowOldAreYouInYearsManual;
50 UINT16 HowTallAreYouManual;
51 UINT8 HowOldAreYouInYears;
52 UINT16 HowTallAreYou;
53 UINT8 MyFavoriteNumber;
54 UINT8 TestLateCheck;
55 UINT8 TestLateCheck2;
56 UINT8 QuestionAboutTreeHugging;
57 UINT8 ChooseToActivateNuclearWeaponry;
58 UINT8 SuppressGrayOutSomething;
59 UINT8 OrderedList[8];
60 UINT16 BootOrder[8];
61 UINT8 BootOrderLarge;
62 UINT8 DynamicRefresh;
63 UINT8 DynamicOneof;
64 UINT8 DynamicOrderedList[5];
65 UINT8 Reserved;
66 UINT8 NameValueVar0;
67 UINT16 NameValueVar1;
68 UINT16 NameValueVar2[20];
69 } DRIVER_SAMPLE_CONFIGURATION;
70
71 //
72 // 2nd NV data structure definition
73 //
74 typedef struct {
75 UINT8 Field8;
76 UINT16 Field16;
77 UINT8 OrderedList[3];
78 } MY_DATA2;
79
80 //
81 // Labels definition
82 //
83 #define LABEL_UPDATE1 0x1234
84 #define LABEL_UPDATE2 0x2234
85 #define LABEL_END 0x2223
86
87 #pragma pack()
88
89 #endif