/** @file The internal header file includes the common header files, defines internal structure and functions used by RuntimeVariable module. Copyright (c) 2006 - 2008, Intel Corporation All rights reserved. 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. **/ #ifndef _VARIABLE_H_ #define _VARIABLE_H_ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define VARIABLE_RECLAIM_THRESHOLD (1024) typedef struct { VARIABLE_HEADER *CurrPtr; VARIABLE_HEADER *EndPtr; VARIABLE_HEADER *StartPtr; BOOLEAN Volatile; } VARIABLE_POINTER_TRACK; typedef struct { EFI_PHYSICAL_ADDRESS VolatileVariableBase; EFI_PHYSICAL_ADDRESS NonVolatileVariableBase; EFI_LOCK VariableServicesLock; UINT32 ReentrantState; } VARIABLE_GLOBAL; typedef struct { VARIABLE_GLOBAL VariableGlobal; UINTN VolatileLastVariableOffset; UINTN NonVolatileLastVariableOffset; UINT32 FvbInstance; } VARIABLE_MODULE_GLOBAL; typedef struct { EFI_GUID *Guid; CHAR16 *Name; UINT32 Attributes; UINTN DataSize; VOID *Data; } VARIABLE_CACHE_ENTRY; #endif