]>
Commit | Line | Data |
---|---|---|
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 | |
29 | EFI_STATUS\r | |
30 | InternalLocateProtocol (\r | |
31 | IN EFI_GUID *Protocol,\r | |
32 | IN VOID *Registration, OPTIONAL\r | |
33 | OUT VOID **Interface\r | |
34 | );\r | |
35 | \r | |
36 | #endif // _MM_RSC_LIB_H_\r |