]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Universal/DriverSampleDxe/NVDataStruc.h
Add FormMap form example.
[mirror_edk2.git] / MdeModulePkg / Universal / DriverSampleDxe / NVDataStruc.h
1 /** @file
2
3 Copyright (c) 2007 - 2010, 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 #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 CONFIGURATION_VARSTORE_ID 0x1234
42
43 #pragma pack(1)
44 typedef struct {
45 UINT16 WhatIsThePassword[20];
46 UINT16 WhatIsThePassword2[20];
47 UINT16 MyStringData[40];
48 UINT16 PasswordClearText[20];
49 UINT16 SomethingHiddenForHtml;
50 UINT8 HowOldAreYouInYearsManual;
51 UINT16 HowTallAreYouManual;
52 UINT8 HowOldAreYouInYears;
53 UINT16 HowTallAreYou;
54 UINT8 MyFavoriteNumber;
55 UINT8 TestLateCheck;
56 UINT8 TestLateCheck2;
57 UINT8 QuestionAboutTreeHugging;
58 UINT8 ChooseToActivateNuclearWeaponry;
59 UINT8 SuppressGrayOutSomething;
60 UINT8 OrderedList[8];
61 UINT16 BootOrder[8];
62 UINT8 BootOrderLarge;
63 UINT8 DynamicRefresh;
64 UINT8 DynamicOneof;
65 UINT8 DynamicOrderedList[5];
66 UINT8 Reserved;
67 UINT8 NameValueVar0;
68 UINT16 NameValueVar1;
69 UINT16 NameValueVar2[20];
70 UINT8 SerialPortNo;
71 UINT8 SerialPortStatus;
72 UINT16 SerialPortIo;
73 UINT8 SerialPortIrq;
74 } DRIVER_SAMPLE_CONFIGURATION;
75
76 //
77 // 2nd NV data structure definition
78 //
79 typedef struct {
80 UINT8 Field8;
81 UINT16 Field16;
82 UINT8 OrderedList[3];
83 } MY_DATA2;
84
85 //
86 // Labels definition
87 //
88 #define LABEL_UPDATE1 0x1234
89 #define LABEL_UPDATE2 0x2234
90 #define LABEL_END 0x2223
91
92 #pragma pack()
93
94 #endif