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>
		
			
				
	
	
		
			61 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			61 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
| /** @file
 | |
|   The internal header file that declared a data structure that is shared
 | |
|   between the MM IPL and the MM Core.
 | |
| 
 | |
|   Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>
 | |
|   Copyright (c) 2016 - 2018, ARM Limited. All rights reserved.<BR>
 | |
|   SPDX-License-Identifier: BSD-2-Clause-Patent
 | |
| 
 | |
| **/
 | |
| 
 | |
| #ifndef _STANDALONE_MM_CORE_PRIVATE_DATA_H_
 | |
| #define _STANDALONE_MM_CORE_PRIVATE_DATA_H_
 | |
| 
 | |
| #include <Guid/MmCoreData.h>
 | |
| 
 | |
| //
 | |
| // Page management
 | |
| //
 | |
| 
 | |
| typedef struct {
 | |
|   LIST_ENTRY  Link;
 | |
|   UINTN       NumberOfPages;
 | |
| } FREE_PAGE_LIST;
 | |
| 
 | |
| extern LIST_ENTRY  mMmMemoryMap;
 | |
| 
 | |
| //
 | |
| // Pool management
 | |
| //
 | |
| 
 | |
| //
 | |
| // MIN_POOL_SHIFT must not be less than 5
 | |
| //
 | |
| #define MIN_POOL_SHIFT  6
 | |
| #define MIN_POOL_SIZE   (1 << MIN_POOL_SHIFT)
 | |
| 
 | |
| //
 | |
| // MAX_POOL_SHIFT must not be less than EFI_PAGE_SHIFT - 1
 | |
| //
 | |
| #define MAX_POOL_SHIFT  (EFI_PAGE_SHIFT - 1)
 | |
| #define MAX_POOL_SIZE   (1 << MAX_POOL_SHIFT)
 | |
| 
 | |
| //
 | |
| // MAX_POOL_INDEX are calculated by maximum and minimum pool sizes
 | |
| //
 | |
| #define MAX_POOL_INDEX  (MAX_POOL_SHIFT - MIN_POOL_SHIFT + 1)
 | |
| 
 | |
| typedef struct {
 | |
|   UINTN        Size;
 | |
|   BOOLEAN      Available;
 | |
| } POOL_HEADER;
 | |
| 
 | |
| typedef struct {
 | |
|   POOL_HEADER  Header;
 | |
|   LIST_ENTRY   Link;
 | |
| } FREE_POOL_HEADER;
 | |
| 
 | |
| extern LIST_ENTRY  mMmPoolLists[MAX_POOL_INDEX];
 | |
| 
 | |
| #endif
 |