]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/C/Include/Common/WorkingBlockHeader.h
Check In tool source code based on Build tool project revision r1655.
[mirror_edk2.git] / BaseTools / Source / C / Include / Common / WorkingBlockHeader.h
diff --git a/BaseTools/Source/C/Include/Common/WorkingBlockHeader.h b/BaseTools/Source/C/Include/Common/WorkingBlockHeader.h
new file mode 100644 (file)
index 0000000..98f8527
--- /dev/null
@@ -0,0 +1,43 @@
+/** @file\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
+  Copyright (c) 2006 - 2008, Intel Corporation.  All rights reserved.\r
+\r
+  This program and the accompanying materials are licensed and made available\r
+  under the terms and conditions of the BSD License which accompanies this\r
+  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
+  File Name: WorkingBlockHeader.h\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
+  UINT8     WorkingBlockValid : 1;\r
+  UINT8     WorkingBlockInvalid : 1;\r
+#define WORKING_BLOCK_VALID   0x1\r
+#define WORKING_BLOCK_INVALID 0x2\r
+  UINT8     Reserved : 6;\r
+  UINT8     Reserved3[3];\r
+  UINT32    WriteQueueSize;\r
+  //\r
+  // UINT8                WriteQueue[WriteQueueSize];\r
+  //\r
+} EFI_FAULT_TOLERANT_WORKING_BLOCK_HEADER;\r
+\r
+#endif\r