]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.h
Pass ECC check.
[mirror_edk2.git] / MdeModulePkg / Universal / Variable / RuntimeDxe / Variable.h
CommitLineData
504214c4 1/** @file\r
8d3a5c82 2\r
504214c4
LG
3 The internal header file includes the common header files, defines\r
4 internal structure and functions used by RuntimeVariable module.\r
5\r
6Copyright (c) 2006 - 2008, Intel Corporation\r
8d3a5c82 7All rights reserved. This program and the accompanying materials\r
8are licensed and made available under the terms and conditions of the BSD License\r
9which accompanies this distribution. The full text of the license may be found at\r
10http://opensource.org/licenses/bsd-license.php\r
11\r
12THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
13WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
14\r
504214c4 15**/\r
8d3a5c82 16\r
7c80e839 17#ifndef _VARIABLE_H_\r
18#define _VARIABLE_H_\r
8d3a5c82 19\r
39099938 20#include <PiDxe.h>\r
8d3a5c82 21#include <Protocol/VariableWrite.h>\r
22#include <Protocol/FaultTolerantWriteLite.h>\r
23#include <Protocol/FirmwareVolumeBlock.h>\r
24#include <Protocol/Variable.h>\r
25#include <Library/PcdLib.h>\r
26#include <Library/UefiDriverEntryPoint.h>\r
27#include <Library/DxeServicesTableLib.h>\r
28#include <Library/UefiRuntimeLib.h>\r
29#include <Library/DebugLib.h>\r
30#include <Library/BaseMemoryLib.h>\r
31#include <Library/FvbServiceLib.h>\r
32#include <Library/UefiBootServicesTableLib.h>\r
33#include <Library/UefiLib.h>\r
34#include <Library/BaseLib.h>\r
4cf894eb 35#include <Library/SynchronizationLib.h>\r
8d3a5c82 36#include <Library/MemoryAllocationLib.h>\r
052ad7e1
A
37#include <Guid/VariableInfo.h>\r
38#include <Guid/GlobalVariable.h>\r
01a5c994 39#include <Guid/EventGroup.h>\r
3cfb790c 40#include <VariableFormat.h>\r
8d3a5c82 41\r
42#define VARIABLE_RECLAIM_THRESHOLD (1024)\r
43\r
8d3a5c82 44typedef struct {\r
45 VARIABLE_HEADER *CurrPtr;\r
46 VARIABLE_HEADER *EndPtr;\r
47 VARIABLE_HEADER *StartPtr;\r
48 BOOLEAN Volatile;\r
49} VARIABLE_POINTER_TRACK;\r
50\r
51typedef struct {\r
52 EFI_PHYSICAL_ADDRESS VolatileVariableBase;\r
53 EFI_PHYSICAL_ADDRESS NonVolatileVariableBase;\r
54 EFI_LOCK VariableServicesLock;\r
fdb7765f 55 UINT32 ReentrantState;\r
8d3a5c82 56} VARIABLE_GLOBAL;\r
57\r
58typedef struct {\r
052ad7e1 59 VARIABLE_GLOBAL VariableGlobal;\r
8d3a5c82 60 UINTN VolatileLastVariableOffset;\r
61 UINTN NonVolatileLastVariableOffset;\r
62 UINT32 FvbInstance;\r
052ad7e1
A
63} VARIABLE_MODULE_GLOBAL;\r
64\r
65typedef struct {\r
66 EFI_GUID *Guid;\r
67 CHAR16 *Name;\r
68 UINT32 Attributes;\r
69 UINTN DataSize;\r
70 VOID *Data;\r
71} VARIABLE_CACHE_ENTRY;\r
8d3a5c82 72\r
8d3a5c82 73#endif\r