2 Handle TPM 2.0 physical presence requests from OS.
4 This library will handle TPM 2.0 physical presence request from OS.
6 Caution: This module requires additional review when modified.
7 This driver will have external input - variable.
8 This external input must be validated carefully to avoid security issue.
10 Tcg2PhysicalPresenceLibSubmitRequestToPreOSFunction() and Tcg2PhysicalPresenceLibGetUserConfirmationStatusFunction()
11 will receive untrusted input and do validation.
13 Copyright (c) 2015 - 2020, Intel Corporation. All rights reserved.<BR>
14 Copyright (c) Microsoft Corporation.
15 SPDX-License-Identifier: BSD-2-Clause-Patent
21 #include "MmTcg2PhysicalPresenceLibCommon.h"
24 The constructor function locates SmmVariable protocol.
26 It will ASSERT() if that operation fails and it will always return EFI_SUCCESS.
28 @param ImageHandle The firmware allocated handle for the EFI image.
29 @param SystemTable A pointer to the EFI System Table.
31 @retval EFI_SUCCESS The constructor successfully added string package.
32 @retval Other value The constructor can't add string package.
36 Tcg2PhysicalPresenceLibStandaloneMmConstructor (
37 IN EFI_HANDLE ImageHandle
,
38 IN EFI_MM_SYSTEM_TABLE
*SystemTable
41 return Tcg2PhysicalPresenceLibCommonConstructor ();