1## @file
2# A DXE_RUNTIME_DRIVER providing synchronous SMI activations via the
3# EFI_SMM_CONTROL2_PROTOCOL.
4#
5# We expect the PEI phase to have covered the following:
6# - ensure that the underlying QEMU machine type be Q35
7#   (responsible: OvmfPkg/SmmAccess/SmmAccessPei.inf)
8# - ensure that the ACPI PM IO space be configured
9#   (responsible: OvmfPkg/PlatformPei/PlatformPei.inf)
10#
11# Our own entry point is responsible for confirming the SMI feature and for
12# configuring it.
13#
14# Copyright (C) 2013, 2015, Red Hat, Inc.
15#
16# This program and the accompanying materials are licensed and made available
17# under the terms and conditions of the BSD License which accompanies this
18# distribution. The full text of the license may be found at
19# http://opensource.org/licenses/bsd-license.php
20#
21# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT
22# WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
23#
24##
25
26[Defines]
27  INF_VERSION                    = 0x00010005
28  BASE_NAME                      = SmmControl2Dxe
29  FILE_GUID                      = 1206F7CA-A475-4624-A83E-E6FC9BB38E49
30  MODULE_TYPE                    = DXE_RUNTIME_DRIVER
31  VERSION_STRING                 = 1.0
32  PI_SPECIFICATION_VERSION       = 0x00010400
33  ENTRY_POINT                    = SmmControl2DxeEntryPoint
34
35#
36# The following information is for reference only and not required by the build tools.
37#
38#  VALID_ARCHITECTURES           = IA32 X64
39#
40
41[Sources]
42  SmmControl2Dxe.c
43
44[Packages]
45  MdePkg/MdePkg.dec
46  OvmfPkg/OvmfPkg.dec
47
48[LibraryClasses]
49  BaseLib
50  DebugLib
51  IoLib
52  PcdLib
53  PciLib
54  QemuFwCfgLib
55  UefiBootServicesTableLib
56  UefiDriverEntryPoint
57
58[Protocols]
59  gEfiS3SaveStateProtocolGuid   ## SOMETIMES_CONSUMES
60  gEfiSmmControl2ProtocolGuid   ## PRODUCES
61
62[FeaturePcd]
63  gUefiOvmfPkgTokenSpaceGuid.PcdSmmSmramRequire
64
65[Depex]
66  TRUE
67