]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Include/Guid/FaultTolerantWrite.h
MdeModulePkg: Clean up source files
[mirror_edk2.git] / MdeModulePkg / Include / Guid / FaultTolerantWrite.h
CommitLineData
3e02ebb2
SZ
1/** @file\r
2 Define the GUID gEdkiiFaultTolerantWriteGuid that will be used to build\r
3 FAULT_TOLERANT_WRITE_LAST_WRITE_DATA GUID hob and install PPI to inform the check\r
4 for FTW last write data has been done. The GUID hob will be only built if FTW last write was\r
5 still in progress with SpareComplete set and DestinationComplete not set.\r
6\r
d1102dba
LG
7Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>\r
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
3e02ebb2 10The full text of the license may be found at\r
d1102dba 11http://opensource.org/licenses/bsd-license.php.\r
3e02ebb2 12\r
d1102dba
LG
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
3e02ebb2
SZ
15\r
16**/\r
17\r
18#ifndef _FAULT_TOLERANT_WRITE_H_\r
19#define _FAULT_TOLERANT_WRITE_H_\r
20\r
21#define EDKII_FAULT_TOLERANT_WRITE_GUID \\r
22 { \\r
23 0x1d3e9cb8, 0x43af, 0x490b, { 0x83, 0xa, 0x35, 0x16, 0xaa, 0x53, 0x20, 0x47 } \\r
24 }\r
25\r
26//\r
27// FTW Last write data. It will be used as gEdkiiFaultTolerantWriteGuid GUID hob data.\r
28//\r
29typedef struct {\r
30 ///\r
31 /// Target address to be updated in FTW last write.\r
32 ///\r
33 EFI_PHYSICAL_ADDRESS TargetAddress;\r
34 ///\r
35 /// Spare address to back up the updated buffer.\r
36 ///\r
37 EFI_PHYSICAL_ADDRESS SpareAddress;\r
38 ///\r
39 /// The length of data that have been backed up in spare block.\r
40 /// It is also the length of target block that has been erased.\r
41 ///\r
42 UINT64 Length;\r
43} FAULT_TOLERANT_WRITE_LAST_WRITE_DATA;\r
44\r
45//\r
46// This GUID will be used to install PPI to inform the check for FTW last write data has been done.\r
47// The related FAULT_TOLERANT_WRITE_LAST_WRITE_DATA GUID hob will be only built if\r
48// FTW last write was still in progress with SpareComplete set and DestinationComplete not set.\r
49// It means the target buffer has been backed up in spare block, then target block has been erased,\r
50// but the target buffer has not been writen in target block from spare block.\r
51//\r
52extern EFI_GUID gEdkiiFaultTolerantWriteGuid;\r
53\r
54#endif\r