]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Include/WorkingBlockHeader.h
Add INF extension Information
[mirror_edk2.git] / MdeModulePkg / Include / WorkingBlockHeader.h
CommitLineData
504214c4 1/** @file\r
3cfb790c 2\r
504214c4
LG
3 The header structure of FTW working block region.\r
4\r
5Copyright (c) 2006 - 2008, Intel Corporation\r
3cfb790c 6All rights reserved. This program and the accompanying materials\r
7are licensed and made available under the terms and conditions of the BSD License\r
8which accompanies this distribution. The full text of the license may be found at\r
9http://opensource.org/licenses/bsd-license.php\r
10\r
11THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13\r
504214c4 14**/\r
3cfb790c 15\r
16#ifndef __EFI_WORKING_BLOCK_HEADER_H__\r
17#define __EFI_WORKING_BLOCK_HEADER_H__\r
18\r
ebafc55b
LG
19#define WORKING_BLOCK_VALID 0x1\r
20#define WORKING_BLOCK_INVALID 0x2\r
21\r
22///\r
e5618791
LG
23/// EDKII Fault tolerant working block header\r
24/// The header is immediately followed by the write queue data.\r
ebafc55b 25///\r
3cfb790c 26typedef struct {\r
ebafc55b
LG
27 ///\r
28 /// System Non Volatile FV Guid\r
29 ///\r
3cfb790c 30 EFI_GUID Signature;\r
ebafc55b
LG
31 ///\r
32 /// 32bit CRC caculated for this header\r
33 ///\r
3cfb790c 34 UINT32 Crc;\r
ebafc55b
LG
35 ///\r
36 /// Working block valid bit\r
37 ///\r
3cfb790c 38 UINT8 WorkingBlockValid : 1;\r
39 UINT8 WorkingBlockInvalid : 1;\r
3cfb790c 40 UINT8 Reserved : 6;\r
41 UINT8 Reserved3[3];\r
ebafc55b
LG
42 ///\r
43 /// Total size of the following write queue range.\r
44 ///\r
2a958a00 45 UINT64 WriteQueueSize;\r
ebafc55b
LG
46 ///\r
47 /// Write Queue data\r
48 /// UINT8 WriteQueue[WriteQueueSize];\r
49 ///\r
3cfb790c 50} EFI_FAULT_TOLERANT_WORKING_BLOCK_HEADER;\r
51\r
52#endif\r