+++ /dev/null
-/*++\r
-\r
-Copyright (c) 2006, Intel Corporation \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
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
-\r
-Module Name:\r
-\r
- EfiVariable.h\r
- \r
-Abstract:\r
- \r
- Header file for EFI Variable Services\r
-\r
---*/\r
-\r
-#ifndef _EFI_VARIABLE_H_\r
-#define _EFI_VARIABLE_H_\r
-\r
-#define VARIABLE_STORE_SIGNATURE EFI_SIGNATURE_32 ('$', 'V', 'S', 'S')\r
-\r
-#define MAX_VARIABLE_SIZE 1024\r
-\r
-#define VARIABLE_DATA 0x55AA\r
-\r
-//\r
-// Variable Store Header flags\r
-//\r
-#define VARIABLE_STORE_FORMATTED 0x5a\r
-#define VARIABLE_STORE_HEALTHY 0xfe\r
-\r
-//\r
-// Variable Store Status\r
-//\r
-typedef enum {\r
- EfiRaw,\r
- EfiValid,\r
- EfiInvalid,\r
- EfiUnknown\r
-} VARIABLE_STORE_STATUS;\r
-\r
-//\r
-// Variable State flags\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 IS_VARIABLE_STATE(_c, _Mask) (BOOLEAN) (((~_c) & (~_Mask)) != 0)\r
-\r
-#pragma pack(1)\r
-\r
-typedef struct {\r
- UINT32 Signature;\r
- UINT32 Size;\r
- UINT8 Format;\r
- UINT8 State;\r
- UINT16 Reserved;\r
- UINT32 Reserved1;\r
-} VARIABLE_STORE_HEADER;\r
-\r
-typedef struct {\r
- UINT16 StartId;\r
- UINT8 State;\r
- UINT8 Reserved;\r
- UINT32 Attributes;\r
- UINTN NameSize;\r
- UINTN DataSize;\r
- EFI_GUID VendorGuid;\r
-} VARIABLE_HEADER;\r
-\r
-#pragma pack()\r
-\r
-#endif // _EFI_VARIABLE_H_\r
+++ /dev/null
-/*++\r
-\r
-Copyright (c) 2006, Intel Corporation \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
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
-\r
-Module Name:\r
-\r
- EfiWorkingBlockHeader.h\r
-\r
-Abstract:\r
-\r
- Defines data structure that is the headers found at the runtime \r
- updatable firmware volumes, such as the FileSystemGuid of the \r
- working block, the header structure of the variable block, FTW\r
- working block, or event log block.\r
-\r
---*/\r
-\r
-#ifndef _EFI_WORKING_BLOCK_HEADER_H_\r
-#define _EFI_WORKING_BLOCK_HEADER_H_\r
-\r
-//\r
-// EFI Fault tolerant working block header\r
-// The header is immediately followed by the write queue.\r
-//\r
-typedef struct {\r
- EFI_GUID Signature;\r
- UINT32 Crc;\r
- UINT32 WorkingBlockValid : 1;\r
- UINT32 WorkingBlockInvalid : 1;\r
-#define WORKING_BLOCK_VALID 0x1\r
-#define WORKING_BLOCK_INVALID 0x2\r
- UINT32 Reserved : 6;\r
- UINT8 Reserved3[3];\r
- UINTN WriteQueueSize;\r
- //\r
- // UINT8 WriteQueue[WriteQueueSize];\r
- //\r
-} EFI_FAULT_TOLERANT_WORKING_BLOCK_HEADER;\r
-\r
-#endif\r