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 | |
5 | This program and the accompanying materials\r | |
6 | are licensed and made available under the terms and conditions of the BSD License\r | |
7 | which accompanies this distribution. The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.php.\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | \r | |
13 | **/\r | |
14 | \r | |
15 | #include <PiSmm.h>\r | |
16 | #include <Library/SmiHandlerProfileLib.h>\r | |
17 | \r | |
18 | /**\r | |
19 | This function is called by SmmChildDispatcher module to report\r | |
20 | a new SMI handler is registered, to SmmCore.\r | |
21 | \r | |
22 | @param HandlerGuid The GUID to identify the type of the handler.\r | |
23 | For the SmmChildDispatch protocol, the HandlerGuid\r | |
24 | must be the GUID of SmmChildDispatch protocol.\r | |
25 | @param Handler The SMI handler.\r | |
26 | @param CallerAddress The address of the module who registers the SMI handler.\r | |
27 | @param Context The context of the SMI handler.\r | |
28 | For the SmmChildDispatch protocol, the Context\r | |
29 | must match the one defined for SmmChildDispatch protocol.\r | |
30 | @param ContextSize The size of the context in bytes.\r | |
31 | For the SmmChildDispatch protocol, the Context\r | |
32 | must match the one defined for SmmChildDispatch protocol.\r | |
33 | \r | |
34 | @retval EFI_SUCCESS The information is recorded.\r | |
35 | @retval EFI_UNSUPPORTED The feature is unsupported.\r | |
36 | @retval EFI_OUT_OF_RESOURCES There is no enough resource to record the information.\r | |
37 | **/\r | |
38 | EFI_STATUS\r | |
39 | EFIAPI\r | |
40 | SmiHandlerProfileRegisterHandler (\r | |
41 | IN EFI_GUID *HandlerGuid,\r | |
42 | IN EFI_SMM_HANDLER_ENTRY_POINT2 Handler,\r | |
43 | IN PHYSICAL_ADDRESS CallerAddress,\r | |
44 | IN VOID *Context, OPTIONAL\r | |
45 | IN UINTN ContextSize OPTIONAL\r | |
46 | )\r | |
47 | {\r | |
48 | return EFI_UNSUPPORTED;\r | |
49 | }\r | |
50 | \r | |
51 | /**\r | |
52 | This function is called by SmmChildDispatcher module to report\r | |
53 | an existing SMI handler is unregistered, to SmmCore.\r | |
54 | \r | |
55 | @param HandlerGuid The GUID to identify the type of the handler.\r | |
56 | For the SmmChildDispatch protocol, the HandlerGuid\r | |
57 | must be the GUID of SmmChildDispatch protocol.\r | |
58 | @param Handler The SMI handler.\r | |
59 | \r | |
60 | @retval EFI_SUCCESS The original record is removed.\r | |
61 | @retval EFI_UNSUPPORTED The feature is unsupported.\r | |
62 | @retval EFI_NOT_FOUND There is no record for the HandlerGuid and handler.\r | |
63 | **/\r | |
64 | EFI_STATUS\r | |
65 | EFIAPI\r | |
66 | SmiHandlerProfileUnregisterHandler (\r | |
67 | IN EFI_GUID *HandlerGuid,\r | |
68 | IN EFI_SMM_HANDLER_ENTRY_POINT2 Handler\r | |
69 | )\r | |
70 | {\r | |
71 | return EFI_UNSUPPORTED;\r | |
72 | }\r |