]>
Commit | Line | Data |
---|---|---|
5625c1fd KQ |
1 | /** @file\r |
2 | Abstraction layer for SMM service table used by SMM 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/SmmServicesTableLib.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 | |
30 | EFI_STATUS\r | |
31 | InternalLocateProtocol (\r | |
32 | IN EFI_GUID *Protocol,\r | |
33 | IN VOID *Registration, OPTIONAL\r | |
34 | OUT VOID **Interface\r | |
35 | )\r | |
36 | {\r | |
37 | return gSmst->SmmLocateProtocol (Protocol, Registration, Interface);\r | |
38 | }\r |