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: Jiewen Yao <Jiewen.yao@intel.com> Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
		
			
				
	
	
		
			43 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
| /** @file
 | |
|   The header file for TcgMor.
 | |
| 
 | |
| Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
 | |
| SPDX-License-Identifier: BSD-2-Clause-Patent
 | |
| 
 | |
| **/
 | |
| 
 | |
| #ifndef __TCG_MOR_H__
 | |
| #define __TCG_MOR_H__
 | |
| 
 | |
| #include <PiDxe.h>
 | |
| 
 | |
| #include <Guid/MemoryOverwriteControl.h>
 | |
| 
 | |
| #include <Library/UefiDriverEntryPoint.h>
 | |
| #include <Library/UefiBootServicesTableLib.h>
 | |
| #include <Library/UefiRuntimeServicesTableLib.h>
 | |
| #include <Library/DebugLib.h>
 | |
| #include <Library/UefiLib.h>
 | |
| #include <Library/MemoryAllocationLib.h>
 | |
| 
 | |
| #include <Protocol/StorageSecurityCommand.h>
 | |
| #include <Protocol/BlockIo.h>
 | |
| 
 | |
| //
 | |
| // Supported Security Protocols List Description.
 | |
| // Refer to ATA8-ACS Spec 7.57.6.2 Table 69 or SPC4 7.7.1.3 Table 511.
 | |
| //
 | |
| typedef struct  {
 | |
|   UINT8                            Reserved1[6];
 | |
|   UINT8                            SupportedSecurityListLength[2];
 | |
|   UINT8                            SupportedSecurityProtocol[1];
 | |
| } SUPPORTED_SECURITY_PROTOCOLS_PARAMETER_DATA;
 | |
| 
 | |
| #define SECURITY_PROTOCOL_TCG      0x02
 | |
| #define SECURITY_PROTOCOL_IEEE1667 0xEE
 | |
| 
 | |
| #define ROUNDUP512(x) (((x) % 512 == 0) ? (x) : ((x) / 512 + 1) * 512)
 | |
| 
 | |
| #endif
 | |
| 
 |