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>
		
			
				
	
	
		
			41 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
/** @file
 | 
						|
  GCD Operations and data structure used to
 | 
						|
  convert from GCD attributes to EFI Memory Map attributes.
 | 
						|
 | 
						|
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
 | 
						|
SPDX-License-Identifier: BSD-2-Clause-Patent
 | 
						|
 | 
						|
**/
 | 
						|
 | 
						|
#ifndef _GCD_H_
 | 
						|
#define _GCD_H_
 | 
						|
 | 
						|
//
 | 
						|
// GCD Operations
 | 
						|
//
 | 
						|
#define GCD_MEMORY_SPACE_OPERATION 0x20
 | 
						|
#define GCD_IO_SPACE_OPERATION     0x40
 | 
						|
 | 
						|
#define GCD_ADD_MEMORY_OPERATION               (GCD_MEMORY_SPACE_OPERATION | 0)
 | 
						|
#define GCD_ALLOCATE_MEMORY_OPERATION          (GCD_MEMORY_SPACE_OPERATION | 1)
 | 
						|
#define GCD_FREE_MEMORY_OPERATION              (GCD_MEMORY_SPACE_OPERATION | 2)
 | 
						|
#define GCD_REMOVE_MEMORY_OPERATION            (GCD_MEMORY_SPACE_OPERATION | 3)
 | 
						|
#define GCD_SET_ATTRIBUTES_MEMORY_OPERATION    (GCD_MEMORY_SPACE_OPERATION | 4)
 | 
						|
#define GCD_SET_CAPABILITIES_MEMORY_OPERATION  (GCD_MEMORY_SPACE_OPERATION | 5)
 | 
						|
 | 
						|
#define GCD_ADD_IO_OPERATION                   (GCD_IO_SPACE_OPERATION | 0)
 | 
						|
#define GCD_ALLOCATE_IO_OPERATION              (GCD_IO_SPACE_OPERATION | 1)
 | 
						|
#define GCD_FREE_IO_OPERATION                  (GCD_IO_SPACE_OPERATION | 2)
 | 
						|
#define GCD_REMOVE_IO_OPERATION                (GCD_IO_SPACE_OPERATION | 3)
 | 
						|
 | 
						|
//
 | 
						|
// The data structure used to convert from GCD attributes to EFI Memory Map attributes
 | 
						|
//
 | 
						|
typedef struct {
 | 
						|
  UINT64   Attribute;
 | 
						|
  UINT64   Capability;
 | 
						|
  BOOLEAN  Memory;
 | 
						|
} GCD_ATTRIBUTE_CONVERSION_ENTRY;
 | 
						|
 | 
						|
#endif
 |