This module consumes SMM Registers HOB (SMI_GBL_EN and SMI_APM_EN) to install SMM control 2 protocol gEfiSmmControl2ProtocolGuid. The protocol activate() would set SMI_GBL_EN and SMI_APM_EN and trigger SMI by writing to IO port 0xB3 and 0xB2. Signed-off-by: Guo Dong <guo.dong@intel.com> Cc: Ray Ni <ray.ni@intel.com> Cc: Maurice Ma <maurice.ma@intel.com> Cc: Benjamin You <benjamin.you@intel.com> Reviewed-by: Ray Ni <ray.ni@intel.com> Reviewed-by: Benjamin You <benjamin.you@intel.com>
		
			
				
	
	
		
			51 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
			
		
		
	
	
			51 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
## @file
 | 
						|
# SMM Control runtime DXE Module
 | 
						|
#
 | 
						|
# Provides the ability to generate a software SMI.
 | 
						|
#
 | 
						|
#  Copyright (c) 2021, Intel Corporation. All rights reserved.<BR>
 | 
						|
#
 | 
						|
#  SPDX-License-Identifier: BSD-2-Clause-Patent
 | 
						|
#
 | 
						|
##
 | 
						|
 | 
						|
[Defines]
 | 
						|
  INF_VERSION                    = 0x00010005
 | 
						|
  BASE_NAME                      = SmmControlRuntimeDxe
 | 
						|
  FILE_GUID                      = C3099578-F815-4a96-84A3-FC593760181D
 | 
						|
  MODULE_TYPE                    = DXE_RUNTIME_DRIVER
 | 
						|
  VERSION_STRING                 = 1.0
 | 
						|
  ENTRY_POINT                    = SmmControlEntryPoint
 | 
						|
 | 
						|
#
 | 
						|
# The following information is for reference only and not required by the build tools.
 | 
						|
#
 | 
						|
#  VALID_ARCHITECTURES           = IA32 X64
 | 
						|
#
 | 
						|
 | 
						|
[Sources]
 | 
						|
  SmmControlRuntimeDxe.c
 | 
						|
 | 
						|
[Packages]
 | 
						|
  MdePkg/MdePkg.dec
 | 
						|
  UefiPayloadPkg/UefiPayloadPkg.dec
 | 
						|
 | 
						|
[LibraryClasses]
 | 
						|
  UefiDriverEntryPoint
 | 
						|
  DebugLib
 | 
						|
  UefiBootServicesTableLib
 | 
						|
  UefiRuntimeLib
 | 
						|
  PcdLib
 | 
						|
  IoLib
 | 
						|
  HobLib
 | 
						|
 | 
						|
[Guids]
 | 
						|
  gSmmRegisterInfoGuid
 | 
						|
  gEfiEventVirtualAddressChangeGuid
 | 
						|
 | 
						|
[Protocols]
 | 
						|
  gEfiSmmControl2ProtocolGuid             ## PRODUCES
 | 
						|
 | 
						|
[Depex]
 | 
						|
  TRUE
 |