]> git.proxmox.com Git - mirror_edk2.git/blame - BaseTools/Source/C/Include/Common/VariableFormat.h
Sync EDKII BaseTools to BaseTools project r1988
[mirror_edk2.git] / BaseTools / Source / C / Include / Common / VariableFormat.h
CommitLineData
30fdf114
LG
1/**@file\r
2 Header file for EFI Variable Services.\r
3\r
9053bc51 4 Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>\r
30fdf114
LG
5\r
6 This program and the accompanying materials are licensed and made available\r
7 under the terms and conditions of the BSD License which accompanies this\r
8 distribution. The full text of the license may be found at:\r
9 http://opensource.org/licenses/bsd-license.php\r
10 \r
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13\r
14 File Name: VariableFormat.h\r
15\r
16**/\r
17\r
18#ifndef __VARIABLE_FORMAT_H__\r
19#define __VARIABLE_FORMAT_H__\r
20\r
30fdf114
LG
21#define VARIABLE_DATA 0x55AA\r
22\r
23//\r
24// Variable Store Header flags\r
25//\r
26#define VARIABLE_STORE_FORMATTED 0x5a\r
27#define VARIABLE_STORE_HEALTHY 0xfe\r
28\r
29#pragma pack(1)\r
30\r
31typedef struct {\r
9053bc51 32 EFI_GUID Signature;\r
33 UINT32 Size;\r
34 UINT8 Format;\r
35 UINT8 State;\r
36 UINT16 Reserved;\r
37 UINT32 Reserved1;\r
30fdf114
LG
38} VARIABLE_STORE_HEADER;\r
39\r
40typedef struct {\r
41 UINT16 StartId;\r
42 UINT8 State;\r
43 UINT8 Reserved;\r
44 UINT32 Attributes;\r
45 UINT32 NameSize;\r
46 UINT32 DataSize;\r
47 EFI_GUID VendorGuid;\r
48} VARIABLE_HEADER;\r
49\r
50#pragma pack()\r
51\r
52#endif // _EFI_VARIABLE_H_\r