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