-/**@file\r
- Header file for EFI Variable Services.\r
+/** @file\r
+ EDK II specific implementation of UEFI variable depend on data structure.\r
\r
- Copyright (c) 2006 - 2007 Intel Corporation. <BR>\r
+ Copyright (c) 2006 - 2008 Intel Corporation. <BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
//\r
#define VAR_IN_DELETED_TRANSITION 0xfe // Variable is in obsolete transistion\r
#define VAR_DELETED 0xfd // Variable is obsolete\r
-#define VAR_ADDED 0x7f // Variable has been completely added\r
+#define VAR_HEADER_VALID_ONLY 0x7f // Variable header has been valid\r
+#define VAR_ADDED 0x3f // Variable has been completely added\r
+ // \r
#define IS_VARIABLE_STATE(_c, _Mask) (BOOLEAN) (((~_c) & (~_Mask)) != 0)\r
\r
#pragma pack(1)\r
\r
+//\r
+// Variable Store region header\r
+//\r
typedef struct {\r
UINT32 Signature;\r
UINT32 Size;\r
UINT32 Reserved1;\r
} VARIABLE_STORE_HEADER;\r
\r
+//\r
+// Variable header structure\r
+//\r
typedef struct {\r
UINT16 StartId;\r
UINT8 State;\r