https://bugzilla.tianocore.org/show_bug.cgi?id=1373 Replace BSD 2-Clause License with BSD+Patent License. This change is based on the following emails: https://lists.01.org/pipermail/edk2-devel/2019-February/036260.html https://lists.01.org/pipermail/edk2-devel/2018-October/030385.html RFCs with detailed process for the license change: V3: https://lists.01.org/pipermail/edk2-devel/2019-March/038116.html V2: https://lists.01.org/pipermail/edk2-devel/2019-March/037669.html V1: https://lists.01.org/pipermail/edk2-devel/2019-March/037500.html Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Hao Wu <hao.a.wu@intel.com> Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
		
			
				
	
	
		
			49 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			49 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
| /** @file
 | |
|  Define the GUID gEdkiiFaultTolerantWriteGuid that will be used to build
 | |
|  FAULT_TOLERANT_WRITE_LAST_WRITE_DATA GUID hob and install PPI to inform the check
 | |
|  for FTW last write data has been done. The GUID hob will be only built if FTW last write was
 | |
|  still in progress with SpareComplete set and DestinationComplete not set.
 | |
| 
 | |
| Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>
 | |
| SPDX-License-Identifier: BSD-2-Clause-Patent
 | |
| 
 | |
| **/
 | |
| 
 | |
| #ifndef _FAULT_TOLERANT_WRITE_H_
 | |
| #define _FAULT_TOLERANT_WRITE_H_
 | |
| 
 | |
| #define EDKII_FAULT_TOLERANT_WRITE_GUID \
 | |
|   { \
 | |
|     0x1d3e9cb8, 0x43af, 0x490b, { 0x83,  0xa, 0x35, 0x16, 0xaa, 0x53, 0x20, 0x47 } \
 | |
|   }
 | |
| 
 | |
| //
 | |
| // FTW Last write data. It will be used as gEdkiiFaultTolerantWriteGuid GUID hob data.
 | |
| //
 | |
| typedef struct {
 | |
|   ///
 | |
|   /// Target address to be updated in FTW last write.
 | |
|   ///
 | |
|   EFI_PHYSICAL_ADDRESS      TargetAddress;
 | |
|   ///
 | |
|   /// Spare address to back up the updated buffer.
 | |
|   ///
 | |
|   EFI_PHYSICAL_ADDRESS      SpareAddress;
 | |
|   ///
 | |
|   /// The length of data that have been backed up in spare block.
 | |
|   /// It is also the length of target block that has been erased.
 | |
|   ///
 | |
|   UINT64                    Length;
 | |
| } FAULT_TOLERANT_WRITE_LAST_WRITE_DATA;
 | |
| 
 | |
| //
 | |
| // This GUID will be used to install PPI to inform the check for FTW last write data has been done.
 | |
| // The related FAULT_TOLERANT_WRITE_LAST_WRITE_DATA GUID hob will be only built if
 | |
| // FTW last write was still in progress with SpareComplete set and DestinationComplete not set.
 | |
| // It means the target buffer has been backed up in spare block, then target block has been erased,
 | |
| // but the target buffer has not been writen in target block from spare block.
 | |
| //
 | |
| extern EFI_GUID gEdkiiFaultTolerantWriteGuid;
 | |
| 
 | |
| #endif
 |