]>
Commit | Line | Data |
---|---|---|
e8af3c1c JY |
1 | /** @file\r |
2 | NULL instance of SmiHandlerProfile Library.\r | |
3 | \r | |
4 | Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>\r | |
9344f092 | 5 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
e8af3c1c JY |
6 | \r |
7 | **/\r | |
8 | \r | |
9 | #include <PiSmm.h>\r | |
10 | #include <Library/SmiHandlerProfileLib.h>\r | |
11 | \r | |
12 | /**\r | |
13 | This function is called by SmmChildDispatcher module to report\r | |
14 | a new SMI handler is registered, to SmmCore.\r | |
15 | \r | |
16 | @param HandlerGuid The GUID to identify the type of the handler.\r | |
17 | For the SmmChildDispatch protocol, the HandlerGuid\r | |
18 | must be the GUID of SmmChildDispatch protocol.\r | |
19 | @param Handler The SMI handler.\r | |
20 | @param CallerAddress The address of the module who registers the SMI handler.\r | |
21 | @param Context The context of the SMI handler.\r | |
22 | For the SmmChildDispatch protocol, the Context\r | |
23 | must match the one defined for SmmChildDispatch protocol.\r | |
24 | @param ContextSize The size of the context in bytes.\r | |
25 | For the SmmChildDispatch protocol, the Context\r | |
26 | must match the one defined for SmmChildDispatch protocol.\r | |
27 | \r | |
28 | @retval EFI_SUCCESS The information is recorded.\r | |
29 | @retval EFI_UNSUPPORTED The feature is unsupported.\r | |
30 | @retval EFI_OUT_OF_RESOURCES There is no enough resource to record the information.\r | |
31 | **/\r | |
32 | EFI_STATUS\r | |
33 | EFIAPI\r | |
34 | SmiHandlerProfileRegisterHandler (\r | |
35 | IN EFI_GUID *HandlerGuid,\r | |
36 | IN EFI_SMM_HANDLER_ENTRY_POINT2 Handler,\r | |
37 | IN PHYSICAL_ADDRESS CallerAddress,\r | |
38 | IN VOID *Context, OPTIONAL\r | |
39 | IN UINTN ContextSize OPTIONAL\r | |
40 | )\r | |
41 | {\r | |
42 | return EFI_UNSUPPORTED;\r | |
43 | }\r | |
44 | \r | |
45 | /**\r | |
46 | This function is called by SmmChildDispatcher module to report\r | |
47 | an existing SMI handler is unregistered, to SmmCore.\r | |
48 | \r | |
49 | @param HandlerGuid The GUID to identify the type of the handler.\r | |
50 | For the SmmChildDispatch protocol, the HandlerGuid\r | |
51 | must be the GUID of SmmChildDispatch protocol.\r | |
52 | @param Handler The SMI handler.\r | |
091e902b JY |
53 | @param Context The context of the SMI handler.\r |
54 | If it is NOT NULL, it will be used to check what is registered.\r | |
55 | @param ContextSize The size of the context in bytes.\r | |
56 | If Context is NOT NULL, it will be used to check what is registered.\r | |
e8af3c1c JY |
57 | \r |
58 | @retval EFI_SUCCESS The original record is removed.\r | |
59 | @retval EFI_UNSUPPORTED The feature is unsupported.\r | |
60 | @retval EFI_NOT_FOUND There is no record for the HandlerGuid and handler.\r | |
61 | **/\r | |
62 | EFI_STATUS\r | |
63 | EFIAPI\r | |
64 | SmiHandlerProfileUnregisterHandler (\r | |
65 | IN EFI_GUID *HandlerGuid,\r | |
091e902b JY |
66 | IN EFI_SMM_HANDLER_ENTRY_POINT2 Handler,\r |
67 | IN VOID *Context, OPTIONAL\r | |
68 | IN UINTN ContextSize OPTIONAL\r | |
e8af3c1c JY |
69 | )\r |
70 | {\r | |
71 | return EFI_UNSUPPORTED;\r | |
72 | }\r |