]>
git.proxmox.com Git - mirror_edk2.git/blob - EdkCompatibilityPkg/Foundation/Include/EfiVariable.h
3 Copyright (c) 2004, 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
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.
18 Header file for EFI Variable Services
22 #ifndef _EFI_VARIABLE_H_
23 #define _EFI_VARIABLE_H_
25 #define VARIABLE_STORE_SIGNATURE EFI_SIGNATURE_32 ('$', 'V', 'S', 'S')
27 #define MAX_VARIABLE_SIZE 1024
30 // Enlarges the hardware error record maximum variable size to 32K bytes
32 #if (EFI_SPECIFICATION_VERSION >= 0x0002000A)
33 #define MAX_HARDWARE_ERROR_VARIABLE_SIZE 0x8000
36 #define VARIABLE_DATA 0x55AA
39 // Variable Store Header flags
41 #define VARIABLE_STORE_FORMATTED 0x5a
42 #define VARIABLE_STORE_HEALTHY 0xfe
45 // Variable Store Status
52 } VARIABLE_STORE_STATUS
;
55 // Variable State flags
57 #define VAR_IN_DELETED_TRANSITION 0xfe // Variable is in obsolete transistion
58 #define VAR_DELETED 0xfd // Variable is obsolete
59 #define VAR_ADDED 0x7f // Variable has been completely added
60 #define IS_VARIABLE_STATE(_c, _Mask) (BOOLEAN) (((~_c) & (~_Mask)) != 0)
71 } VARIABLE_STORE_HEADER
;
85 #endif // _EFI_VARIABLE_H_