]> git.proxmox.com Git - mirror_edk2.git/blame - SecurityPkg/Library/SmmTcg2PhysicalPresenceLib/SmmTcg2PhysicalPresenceLib.c
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / SecurityPkg / Library / SmmTcg2PhysicalPresenceLib / SmmTcg2PhysicalPresenceLib.c
CommitLineData
1abfa4ce
JY
1/** @file\r
2 Handle TPM 2.0 physical presence requests from OS.\r
b3548d32 3\r
1abfa4ce
JY
4 This library will handle TPM 2.0 physical presence request from OS.\r
5\r
6 Caution: This module requires additional review when modified.\r
7 This driver will have external input - variable.\r
8 This external input must be validated carefully to avoid security issue.\r
9\r
10 Tcg2PhysicalPresenceLibSubmitRequestToPreOSFunction() and Tcg2PhysicalPresenceLibGetUserConfirmationStatusFunction()\r
11 will receive untrusted input and do validation.\r
12\r
1a2ad3ba 13Copyright (c) 2015 - 2020, Intel Corporation. All rights reserved.<BR>\r
289b714b 14SPDX-License-Identifier: BSD-2-Clause-Patent\r
1abfa4ce
JY
15\r
16**/\r
17\r
18#include <PiSmm.h>\r
19\r
45939255 20#include "MmTcg2PhysicalPresenceLibCommon.h"\r
1abfa4ce
JY
21\r
22/**\r
e92ddda2 23 The constructor function locates SmmVariable protocol.\r
b3548d32
LG
24\r
25 It will ASSERT() if that operation fails and it will always return EFI_SUCCESS.\r
1abfa4ce
JY
26\r
27 @param ImageHandle The firmware allocated handle for the EFI image.\r
28 @param SystemTable A pointer to the EFI System Table.\r
b3548d32 29\r
1abfa4ce
JY
30 @retval EFI_SUCCESS The constructor successfully added string package.\r
31 @retval Other value The constructor can't add string package.\r
32**/\r
33EFI_STATUS\r
34EFIAPI\r
45939255 35Tcg2PhysicalPresenceLibTraditionalConstructor (\r
1abfa4ce
JY
36 IN EFI_HANDLE ImageHandle,\r
37 IN EFI_SYSTEM_TABLE *SystemTable\r
38 )\r
39{\r
45939255 40 return Tcg2PhysicalPresenceLibCommonConstructor ();\r
1abfa4ce 41}\r