]> git.proxmox.com Git - mirror_edk2.git/blob - SecurityPkg/Tcg/Tcg2Smm/Tcg2MmDependencyDxe.c
SecurityPkg: Apply uncrustify changes
[mirror_edk2.git] / SecurityPkg / Tcg / Tcg2Smm / Tcg2MmDependencyDxe.c
1 /** @file
2 Runtime DXE part corresponding to StandaloneMM Tcg2 module.
3
4 This module installs gTcg2MmSwSmiRegisteredGuid to notify readiness of
5 StandaloneMM Tcg2 module.
6
7 Copyright (c) 2019 - 2021, Arm Ltd. All rights reserved.
8 Copyright (c) Microsoft Corporation.
9
10 SPDX-License-Identifier: BSD-2-Clause-Patent
11
12 **/
13
14 #include <PiDxe.h>
15
16 #include <Library/DebugLib.h>
17 #include <Library/UefiBootServicesTableLib.h>
18
19 /**
20 The constructor function installs gTcg2MmSwSmiRegisteredGuid to notify
21 readiness of StandaloneMM Tcg2 module.
22
23 @param ImageHandle The firmware allocated handle for the EFI image.
24 @param SystemTable A pointer to the Management mode System Table.
25
26 @retval EFI_SUCCESS The constructor always returns EFI_SUCCESS.
27
28 **/
29 EFI_STATUS
30 EFIAPI
31 Tcg2MmDependencyDxeEntryPoint (
32 IN EFI_HANDLE ImageHandle,
33 IN EFI_SYSTEM_TABLE *SystemTable
34 )
35 {
36 EFI_STATUS Status;
37 EFI_HANDLE Handle;
38
39 Handle = NULL;
40 Status = gBS->InstallProtocolInterface (
41 &Handle,
42 &gTcg2MmSwSmiRegisteredGuid,
43 EFI_NATIVE_INTERFACE,
44 NULL
45 );
46 ASSERT_EFI_ERROR (Status);
47 return EFI_SUCCESS;
48 }