mirror of
				https://git.proxmox.com/git/mirror_edk2
				synced 2025-10-31 16:45:30 +00:00 
			
		
		
		
	 9344f09215
			
		
	
	
		9344f09215
		
	
	
	
	
		
			
			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: Liming Gao <liming.gao@intel.com>
		
			
				
	
	
		
			79 lines
		
	
	
		
			2.6 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			79 lines
		
	
	
		
			2.6 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
| /** @file
 | |
|   EFI SMM Configuration Protocol as defined in the PI 1.2 specification.
 | |
| 
 | |
|   This protocol is used to:
 | |
|   1) report the portions of SMRAM regions which cannot be used for the SMRAM heap.
 | |
|   2) register the SMM Foundation entry point with the processor code. The entry
 | |
|      point will be invoked by the SMM processor entry code.
 | |
| 
 | |
|   Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
 | |
|   SPDX-License-Identifier: BSD-2-Clause-Patent
 | |
| 
 | |
| **/
 | |
| 
 | |
| #ifndef _SMM_CONFIGURATION_H_
 | |
| #define _SMM_CONFIGURATION_H_
 | |
| 
 | |
| #include <Protocol/MmConfiguration.h>
 | |
| #include <Pi/PiSmmCis.h>
 | |
| 
 | |
| #define EFI_SMM_CONFIGURATION_PROTOCOL_GUID EFI_MM_CONFIGURATION_PROTOCOL_GUID
 | |
| 
 | |
| ///
 | |
| /// Structure describing a SMRAM region which cannot be used for the SMRAM heap.
 | |
| ///
 | |
| typedef struct _EFI_SMM_RESERVED_SMRAM_REGION {
 | |
|   ///
 | |
|   /// Starting address of the reserved SMRAM area, as it appears while SMRAM is open.
 | |
|   /// Ignored if SmramReservedSize is 0.
 | |
|   ///
 | |
|   EFI_PHYSICAL_ADDRESS    SmramReservedStart;
 | |
|   ///
 | |
|   /// Number of bytes occupied by the reserved SMRAM area. A size of zero indicates the
 | |
|   /// last SMRAM area.
 | |
|   ///
 | |
|   UINT64                  SmramReservedSize;
 | |
| } EFI_SMM_RESERVED_SMRAM_REGION;
 | |
| 
 | |
| typedef struct _EFI_SMM_CONFIGURATION_PROTOCOL  EFI_SMM_CONFIGURATION_PROTOCOL;
 | |
| 
 | |
| /**
 | |
|   Register the SMM Foundation entry point.
 | |
| 
 | |
|   This function registers the SMM Foundation entry point with the processor code. This entry point
 | |
|   will be invoked by the SMM Processor entry code.
 | |
| 
 | |
|   @param[in] This                The EFI_SMM_CONFIGURATION_PROTOCOL instance.
 | |
|   @param[in] SmmEntryPoint       SMM Foundation entry point.
 | |
| 
 | |
|   @retval EFI_SUCCESS            Success to register SMM Entry Point.
 | |
|   @retval EFI_INVALID_PARAMETER  SmmEntryPoint is NULL.
 | |
| **/
 | |
| typedef
 | |
| EFI_STATUS
 | |
| (EFIAPI *EFI_SMM_REGISTER_SMM_ENTRY)(
 | |
|   IN CONST EFI_SMM_CONFIGURATION_PROTOCOL  *This,
 | |
|   IN EFI_SMM_ENTRY_POINT                   SmmEntryPoint
 | |
|   );
 | |
| 
 | |
| ///
 | |
| /// The EFI SMM Configuration Protocol is a mandatory protocol published by a DXE CPU driver to
 | |
| /// indicate which areas within SMRAM are reserved for use by the CPU for any purpose,
 | |
| /// such as stack, save state or SMM entry point.
 | |
| ///
 | |
| /// The RegisterSmmEntry() function allows the SMM IPL DXE driver to register the SMM
 | |
| /// Foundation entry point with the SMM entry vector code.
 | |
| ///
 | |
| struct _EFI_SMM_CONFIGURATION_PROTOCOL {
 | |
|   ///
 | |
|   /// A pointer to an array SMRAM ranges used by the initial SMM entry code.
 | |
|   ///
 | |
|   EFI_SMM_RESERVED_SMRAM_REGION  *SmramReservedRegions;
 | |
|   EFI_SMM_REGISTER_SMM_ENTRY     RegisterSmmEntry;
 | |
| };
 | |
| 
 | |
| extern EFI_GUID gEfiSmmConfigurationProtocolGuid;
 | |
| 
 | |
| #endif
 | |
| 
 |