]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Include/Guid/SystemNvDataGuid.h
Patch from open source community for CryptoPkg to allow it to build for ARM using...
[mirror_edk2.git] / MdeModulePkg / Include / Guid / SystemNvDataGuid.h
CommitLineData
5c526736
LG
1/** @file \r
2 This file defines NvDataFv GUID and FTW working block structure header.\r
6426c8ff
LG
3 This guid can be used as FileSystemGuid in EFI_FIRMWARE_VOLUME_HEADER if \r
4 this FV image contains NV data, such as NV variable data.\r
5 This guid can also be used as the signature of FTW working block header.\r
504214c4 6\r
cd5ebaa0 7Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
64a80549 8This program and the accompanying materials are licensed and made available under \r
9the terms and conditions of the BSD License that accompanies this distribution. \r
10The full text of the license may be found at\r
11http://opensource.org/licenses/bsd-license.php. \r
12\r
88f20127 13THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
14WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
15\r
504214c4 16**/\r
88f20127 17\r
18#ifndef __SYSTEM_NV_DATA_GUID_H__\r
19#define __SYSTEM_NV_DATA_GUID_H__\r
20\r
21#define EFI_SYSTEM_NV_DATA_FV_GUID \\r
22 {0xfff12b8d, 0x7696, 0x4c8b, {0xa9, 0x85, 0x27, 0x47, 0x7, 0x5b, 0x4f, 0x50} }\r
23\r
ebafc55b 24///\r
64a80549 25/// An NvDataFv GUID used as the signature of FTW working block header.\r
ebafc55b 26///\r
5c526736 27extern EFI_GUID gEfiSystemNvDataFvGuid;\r
88f20127 28\r
5c526736
LG
29#define WORKING_BLOCK_VALID 0x1\r
30#define WORKING_BLOCK_INVALID 0x2\r
ebafc55b
LG
31\r
32///\r
64a80549 33/// The EDKII Fault tolerant working block header.\r
5c526736 34/// The header is immediately followed by the write queue data.\r
ebafc55b 35///\r
5c526736
LG
36typedef struct {\r
37 ///\r
64a80549 38 /// System Non Volatile FV Guid.\r
5c526736
LG
39 ///\r
40 EFI_GUID Signature;\r
41 ///\r
64a80549 42 /// 32bit CRC caculated for this header.\r
5c526736
LG
43 ///\r
44 UINT32 Crc;\r
45 ///\r
64a80549 46 /// Working block valid bit.\r
5c526736
LG
47 ///\r
48 UINT8 WorkingBlockValid : 1;\r
49 UINT8 WorkingBlockInvalid : 1;\r
50 UINT8 Reserved : 6;\r
51 UINT8 Reserved3[3];\r
52 ///\r
53 /// Total size of the following write queue range.\r
54 ///\r
55 UINT64 WriteQueueSize;\r
56 ///\r
64a80549 57 /// Write Queue data.\r
abe31ad5 58 /// UINT8 WriteQueue[WriteQueueSize];\r
59 ///\r
60} EFI_FAULT_TOLERANT_WORKING_BLOCK_HEADER;\r
88f20127 61\r
62#endif\r