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