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>
		
			
				
	
	
		
			35 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
/** @file
 | 
						|
  The EFI_SMM_SWAP_ADDRESS_RANGE_PROTOCOL is related to EDK II-specific implementation
 | 
						|
  and used to abstract the swap operation of boot block and backup block of FV in EFI
 | 
						|
  SMM environment. This swap is especially needed when updating the boot block of FV.
 | 
						|
  If a power failure happens during the boot block update, the swapped backup block
 | 
						|
  (now the boot block) can boot the machine with the old boot block backed up in it.
 | 
						|
  The swap operation is platform dependent, so other protocols such as SMM FTW (Fault
 | 
						|
  Tolerant Write) should use this protocol instead of handling hardware directly.
 | 
						|
 | 
						|
Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>
 | 
						|
SPDX-License-Identifier: BSD-2-Clause-Patent
 | 
						|
 | 
						|
**/
 | 
						|
 | 
						|
#ifndef __SMM_SWAP_ADDRESS_RANGE_H__
 | 
						|
#define __SMM_SWAP_ADDRESS_RANGE_H__
 | 
						|
 | 
						|
#include <Protocol/SwapAddressRange.h>
 | 
						|
 | 
						|
#define EFI_SMM_SWAP_ADDRESS_RANGE_PROTOCOL_GUID \
 | 
						|
  { \
 | 
						|
    0x67c4f112, 0x3385, 0x4e55, { 0x9c, 0x5b, 0xc0, 0x5b, 0x71, 0x7c, 0x42, 0x28 } \
 | 
						|
  }
 | 
						|
 | 
						|
//
 | 
						|
// SMM Swap Address Range protocol structure is the same as Swap Address Range protocol.
 | 
						|
// The SMM one is intend to run in SMM environment, which means it can be used by
 | 
						|
// SMM drivers after ExitPmAuth.
 | 
						|
//
 | 
						|
typedef EFI_SWAP_ADDRESS_RANGE_PROTOCOL EFI_SMM_SWAP_ADDRESS_RANGE_PROTOCOL;
 | 
						|
 | 
						|
extern EFI_GUID gEfiSmmSwapAddressRangeProtocolGuid;
 | 
						|
 | 
						|
#endif
 |