Update BASE PCI Library that uses CF8/CFC access mechanism for PCI configuration...
[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
40d841f6 4 Copyright (c) 2007 - 2008, 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
21#define VARIABLE_STORE_SIGNATURE EFI_SIGNATURE_32 ('$', 'V', 'S', 'S')\r
22\r
23#define VARIABLE_DATA 0x55AA\r
24\r
25//\r
26// Variable Store Header flags\r
27//\r
28#define VARIABLE_STORE_FORMATTED 0x5a\r
29#define VARIABLE_STORE_HEALTHY 0xfe\r
30\r
31#pragma pack(1)\r
32\r
33typedef struct {\r
34 UINT32 Signature;\r
35 UINT32 Size;\r
36 UINT8 Format;\r
37 UINT8 State;\r
38 UINT16 Reserved;\r
39 UINT32 Reserved1;\r
40} VARIABLE_STORE_HEADER;\r
41\r
42typedef struct {\r
43 UINT16 StartId;\r
44 UINT8 State;\r
45 UINT8 Reserved;\r
46 UINT32 Attributes;\r
47 UINT32 NameSize;\r
48 UINT32 DataSize;\r
49 EFI_GUID VendorGuid;\r
50} VARIABLE_HEADER;\r
51\r
52#pragma pack()\r
53\r
54#endif // _EFI_VARIABLE_H_\r