]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Library/SmmReportStatusCodeLib/ReportStatusCodeLibStandaloneMm.c
MdeModulePkg: Change OPTIONAL keyword usage style
[mirror_edk2.git] / MdeModulePkg / Library / SmmReportStatusCodeLib / ReportStatusCodeLibStandaloneMm.c
1 /** @file
2 Abstraction layer for MM service table used by MM ReportStatusCodeLib.
3
4 Copyright (c) Microsoft Corporation.
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7 **/
8
9 #include <PiMm.h>
10
11 #include <Library/MmServicesTableLib.h>
12
13 /**
14 Returns the first protocol instance that matches the given protocol.
15
16 @param[in] Protocol Provides the protocol to search for.
17 @param[in] Registration Optional registration key returned from
18 RegisterProtocolNotify().
19 @param[out] Interface On return, a pointer to the first interface that matches Protocol and
20 Registration.
21
22 @retval EFI_SUCCESS A protocol instance matching Protocol was found and returned in
23 Interface.
24 @retval EFI_NOT_FOUND No protocol instances were found that match Protocol and
25 Registration.
26 @retval EFI_INVALID_PARAMETER Interface is NULL.
27 Protocol is NULL.
28
29 **/
30 EFI_STATUS
31 InternalLocateProtocol (
32 IN EFI_GUID *Protocol,
33 IN VOID *Registration OPTIONAL,
34 OUT VOID **Interface
35 )
36 {
37 return gMmst->MmLocateProtocol (Protocol, Registration, Interface);
38 }