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