]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/SmiHandlerProfileLibNull/SmiHandlerProfileLibNull.c
MdePkg: Apply uncrustify changes
[mirror_edk2.git] / MdePkg / Library / SmiHandlerProfileLibNull / SmiHandlerProfileLibNull.c
index 6ae47185c05fc4b5148f87a5630f798bb2b46fef..b7a5c96c7ff048c86252fac838b53003f034f781 100644 (file)
@@ -2,17 +2,11 @@
   NULL instance of SmiHandlerProfile Library.\r
 \r
   Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>\r
-  This program and the accompanying materials\r
-  are licensed and made available under the terms and conditions of the BSD License\r
-  which accompanies this distribution.  The full text of the license may be found at\r
-  http://opensource.org/licenses/bsd-license.php.\r
-\r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
-#include <PiSmm.h>\r
+#include <PiMm.h>\r
 #include <Library/SmiHandlerProfileLib.h>\r
 \r
 /**\r
 EFI_STATUS\r
 EFIAPI\r
 SmiHandlerProfileRegisterHandler (\r
-  IN EFI_GUID                       *HandlerGuid,\r
-  IN EFI_SMM_HANDLER_ENTRY_POINT2   Handler,\r
-  IN PHYSICAL_ADDRESS               CallerAddress,\r
-  IN VOID                           *Context, OPTIONAL\r
-  IN UINTN                          ContextSize OPTIONAL\r
+  IN EFI_GUID                      *HandlerGuid,\r
+  IN EFI_SMM_HANDLER_ENTRY_POINT2  Handler,\r
+  IN PHYSICAL_ADDRESS              CallerAddress,\r
+  IN VOID                          *Context  OPTIONAL,\r
+  IN UINTN                         ContextSize OPTIONAL\r
   )\r
 {\r
   return EFI_UNSUPPORTED;\r
@@ -56,6 +50,10 @@ SmiHandlerProfileRegisterHandler (
                          For the SmmChildDispatch protocol, the HandlerGuid\r
                          must be the GUID of SmmChildDispatch protocol.\r
   @param Handler         The SMI handler.\r
+  @param Context         The context of the SMI handler.\r
+                         If it is NOT NULL, it will be used to check what is registered.\r
+  @param ContextSize     The size of the context in bytes.\r
+                         If Context is NOT NULL, it will be used to check what is registered.\r
 \r
   @retval EFI_SUCCESS           The original record is removed.\r
   @retval EFI_UNSUPPORTED       The feature is unsupported.\r
@@ -64,8 +62,10 @@ SmiHandlerProfileRegisterHandler (
 EFI_STATUS\r
 EFIAPI\r
 SmiHandlerProfileUnregisterHandler (\r
-  IN EFI_GUID                       *HandlerGuid,\r
-  IN EFI_SMM_HANDLER_ENTRY_POINT2   Handler\r
+  IN EFI_GUID                      *HandlerGuid,\r
+  IN EFI_SMM_HANDLER_ENTRY_POINT2  Handler,\r
+  IN VOID                          *Context  OPTIONAL,\r
+  IN UINTN                         ContextSize OPTIONAL\r
   )\r
 {\r
   return EFI_UNSUPPORTED;\r