]>
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 #ifndef MAX_VARIABLE_SIZE
28 #define MAX_VARIABLE_SIZE 1024
32 // Enlarges the hardware error record maximum variable size to 32K bytes
34 #if (EFI_SPECIFICATION_VERSION >= 0x0002000A)
35 #ifndef MAX_HARDWARE_ERROR_VARIABLE_SIZE
36 #define MAX_HARDWARE_ERROR_VARIABLE_SIZE 0x8000
40 #define VARIABLE_DATA 0x55AA
43 // Variable Store Header flags
45 #define VARIABLE_STORE_FORMATTED 0x5a
46 #define VARIABLE_STORE_HEALTHY 0xfe
49 // Variable Store Status
56 } VARIABLE_STORE_STATUS
;
59 // Variable State flags
61 #define VAR_IN_DELETED_TRANSITION 0xfe // Variable is in obsolete transistion
62 #define VAR_DELETED 0xfd // Variable is obsolete
63 #define VAR_ADDED 0x7f // Variable has been completely added
64 #define IS_VARIABLE_STATE(_c, _Mask) (BOOLEAN) (((~_c) & (~_Mask)) != 0)
75 } VARIABLE_STORE_HEADER
;
89 #endif // _EFI_VARIABLE_H_