]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Universal/DriverSampleDxe/NVDataStruc.h
Add two new methods to get default value, also add sample code in sample driver.
[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 CONFIGURATION_VARSTORE_ID 0x1234
45
46 #pragma pack(1)
47 typedef struct {
48 UINT16 WhatIsThePassword[20];
49 UINT16 WhatIsThePassword2[20];
50 UINT16 MyStringData[40];
51 UINT16 PasswordClearText[20];
52 UINT16 SomethingHiddenForHtml;
53 UINT8 HowOldAreYouInYearsManual;
54 UINT16 HowTallAreYouManual;
55 UINT8 HowOldAreYouInYears;
56 UINT16 HowTallAreYou;
57 UINT8 MyFavoriteNumber;
58 UINT8 TestLateCheck;
59 UINT8 TestLateCheck2;
60 UINT8 QuestionAboutTreeHugging;
61 UINT8 ChooseToActivateNuclearWeaponry;
62 UINT8 SuppressGrayOutSomething;
63 UINT8 OrderedList[8];
64 UINT16 BootOrder[8];
65 UINT8 BootOrderLarge;
66 UINT8 DynamicRefresh;
67 UINT8 DynamicOneof;
68 UINT8 DynamicOrderedList[5];
69 UINT8 Reserved;
70 UINT8 NameValueVar0;
71 UINT16 NameValueVar1;
72 UINT16 NameValueVar2[20];
73 UINT8 SerialPortNo;
74 UINT8 SerialPortStatus;
75 UINT16 SerialPortIo;
76 UINT8 SerialPortIrq;
77 UINT8 GetDefaultValueFromCallBack;
78 UINT8 GetDefaultValueFromAccess;
79 EFI_HII_TIME Time;
80 } DRIVER_SAMPLE_CONFIGURATION;
81
82 //
83 // 2nd NV data structure definition
84 //
85 typedef struct {
86 UINT8 Field8;
87 UINT16 Field16;
88 UINT8 OrderedList[3];
89 } MY_DATA2;
90
91 //
92 // Labels definition
93 //
94 #define LABEL_UPDATE1 0x1234
95 #define LABEL_UPDATE2 0x2234
96 #define LABEL_END 0x2223
97
98 #pragma pack()
99
100 #endif