mirror of https://github.com/acidanthera/audk.git
95 lines
2.4 KiB
C
95 lines
2.4 KiB
C
/** @file
|
|
|
|
Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.<BR>
|
|
This program and the accompanying materials
|
|
are licensed and made available under the terms and conditions of the BSD License
|
|
which accompanies this distribution. The full text of the license may be found at
|
|
http://opensource.org/licenses/bsd-license.php
|
|
|
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
|
|
Module Name:
|
|
|
|
NVDataStruc.h
|
|
|
|
Abstract:
|
|
|
|
NVData structure used by the sample driver
|
|
|
|
Revision History:
|
|
|
|
|
|
**/
|
|
|
|
#ifndef _NVDATASTRUC_H_
|
|
#define _NVDATASTRUC_H_
|
|
|
|
#include <Guid/HiiPlatformSetupFormset.h>
|
|
#include <Guid/HiiFormMapMethodGuid.h>
|
|
#include <Guid/DriverSampleHii.h>
|
|
#include <Guid/ZeroGuid.h>
|
|
|
|
#define CONFIGURATION_VARSTORE_ID 0x1234
|
|
|
|
#pragma pack(1)
|
|
typedef struct {
|
|
UINT16 WhatIsThePassword[20];
|
|
UINT16 WhatIsThePassword2[20];
|
|
UINT16 MyStringData[40];
|
|
UINT16 PasswordClearText[20];
|
|
UINT16 SomethingHiddenForHtml;
|
|
UINT8 HowOldAreYouInYearsManual;
|
|
UINT16 HowTallAreYouManual;
|
|
UINT8 HowOldAreYouInYears;
|
|
UINT16 HowTallAreYou;
|
|
UINT8 MyFavoriteNumber;
|
|
UINT8 TestLateCheck;
|
|
UINT8 TestLateCheck2;
|
|
UINT8 QuestionAboutTreeHugging;
|
|
UINT8 ChooseToActivateNuclearWeaponry;
|
|
UINT8 SuppressGrayOutSomething;
|
|
UINT8 OrderedList[8];
|
|
UINT16 BootOrder[8];
|
|
UINT8 BootOrderLarge;
|
|
UINT8 DynamicRefresh;
|
|
UINT8 DynamicOneof;
|
|
UINT8 DynamicOrderedList[5];
|
|
UINT8 Reserved;
|
|
EFI_HII_REF RefData;
|
|
UINT8 NameValueVar0;
|
|
UINT16 NameValueVar1;
|
|
UINT16 NameValueVar2[20];
|
|
UINT8 SerialPortNo;
|
|
UINT8 SerialPortStatus;
|
|
UINT16 SerialPortIo;
|
|
UINT8 SerialPortIrq;
|
|
UINT8 GetDefaultValueFromCallBack;
|
|
UINT8 GetDefaultValueFromAccess;
|
|
EFI_HII_TIME Time;
|
|
UINT8 RefreshGuidCount;
|
|
UINT8 Match2;
|
|
} DRIVER_SAMPLE_CONFIGURATION;
|
|
|
|
//
|
|
// 2nd NV data structure definition
|
|
//
|
|
typedef struct {
|
|
UINT8 Field8;
|
|
UINT16 Field16;
|
|
UINT8 OrderedList[3];
|
|
UINT16 SubmittedCallback;
|
|
} MY_EFI_VARSTORE_DATA;
|
|
|
|
//
|
|
// Labels definition
|
|
//
|
|
#define LABEL_UPDATE1 0x1234
|
|
#define LABEL_UPDATE2 0x2234
|
|
#define LABEL_UPDATE3 0x3234
|
|
#define LABEL_END 0x2223
|
|
|
|
#pragma pack()
|
|
|
|
#endif
|