]>
git.proxmox.com Git - mirror_edk2.git/blob - EdkModulePkg/Include/Common/Variable.h
3 Copyright (c) 2006, 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
29 #define VARIABLE_DATA 0x55AA
32 // Variable Store Header flags
34 #define VARIABLE_STORE_FORMATTED 0x5a
35 #define VARIABLE_STORE_HEALTHY 0xfe
38 // Variable Store Status
45 } VARIABLE_STORE_STATUS
;
48 // Variable State flags
50 #define VAR_IN_DELETED_TRANSITION 0xfe // Variable is in obsolete transistion
51 #define VAR_DELETED 0xfd // Variable is obsolete
52 #define VAR_ADDED 0x7f // Variable has been completely added
53 #define IS_VARIABLE_STATE(_c, _Mask) (BOOLEAN) (((~_c) & (~_Mask)) != 0)
64 } VARIABLE_STORE_HEADER
;
78 #endif // _EFI_VARIABLE_H_