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 MyStringData[40]; 38 UINT16 SomethingHiddenForHtml; 39 UINT8 HowOldAreYouInYearsManual; 40 UINT16 HowTallAreYouManual; 41 UINT8 HowOldAreYouInYears; 42 UINT16 HowTallAreYou; 43 UINT8 MyFavoriteNumber; 44 UINT8 TestLateCheck; 45 UINT8 TestLateCheck2; 46 UINT8 QuestionAboutTreeHugging; 47 UINT8 ChooseToActivateNuclearWeaponry; 48 UINT8 SuppressGrayOutSomething; 49 UINT8 OrderedList[8]; 50 UINT16 BootOrder[8]; 51 UINT8 BootOrderLarge; 52 UINT8 DynamicRefresh; 53 UINT8 DynamicOneof; 54 UINT8 DynamicOrderedList[5]; 55 UINT8 Reserved; 56 EFI_HII_REF RefData; 57 UINT8 NameValueVar0; 58 UINT16 NameValueVar1; 59 UINT16 NameValueVar2[20]; 60 UINT8 SerialPortNo; 61 UINT8 SerialPortStatus; 62 UINT16 SerialPortIo; 63 UINT8 SerialPortIrq; 64 UINT8 GetDefaultValueFromCallBack; 65 UINT8 GetDefaultValueFromAccess; 66 EFI_HII_TIME Time; 67 UINT8 RefreshGuidCount; 68 UINT8 Match2; 69 UINT8 GetDefaultValueFromCallBackForOrderedList[3]; 70 } DRIVER_SAMPLE_CONFIGURATION; 71 72 // 73 // 2nd NV data structure definition 74 // 75 typedef struct { 76 UINT8 Field8; 77 UINT16 Field16; 78 UINT8 OrderedList[3]; 79 UINT16 SubmittedCallback; 80 } MY_EFI_VARSTORE_DATA; 81 82 // 83 // Labels definition 84 // 85 #define LABEL_UPDATE1 0x1234 86 #define LABEL_UPDATE2 0x2234 87 #define LABEL_UPDATE3 0x3234 88 #define LABEL_END 0x2223 89 90 #pragma pack() 91 92 #endif 93