]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Protocol/ReportStatusCodeHandler.h
MdePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdePkg / Include / Protocol / ReportStatusCodeHandler.h
index ecf0c2935aac33c69f448141b8157f64ffbee9d1..1b21d2d223a0316b09ac3fd4337f21bf6cf5f825 100644 (file)
@@ -1,15 +1,12 @@
 /** @file\r
-  This protocol provide registering and unregistering services to status code \r
+  This protocol provide registering and unregistering services to status code\r
   consumers while in DXE.\r
-  \r
-  Copyright (c) 2007 - 2009, Intel Corporation\r
-  All rights reserved. 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
+  Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
+\r
+  @par Revision Reference:\r
+  This Protocol was introduced in PI Specification 1.2.\r
 \r
 **/\r
 \r
@@ -18,8 +15,7 @@
 \r
 #define EFI_RSC_HANDLER_PROTOCOL_GUID \\r
   { \\r
-    0x86212936, 0xe76, 0x41c8, \\r
-    0xa0, 0x3a, 0x2a, 0xf2, 0xfc, 0x1c, 0x39, 0xe2 \\r
+    0x86212936, 0xe76, 0x41c8, {0xa0, 0x3a, 0x2a, 0xf2, 0xfc, 0x1c, 0x39, 0xe2} \\r
   }\r
 \r
 typedef\r
@@ -34,7 +30,7 @@ EFI_STATUS
 \r
 /**\r
   Register the callback function for ReportStatusCode() notification.\r
-  \r
+\r
   When this function is called the function pointer is added to an internal list and any future calls to\r
   ReportStatusCode() will be forwarded to the Callback function. During the bootservices,\r
   this is the callback for which this service can be invoked. The report status code router\r
@@ -48,16 +44,16 @@ EFI_STATUS
   2. not unregister at exit boot services so that the router will still have its callback address\r
   3. the caller must be self-contained (eg. Not call out into any boot-service interfaces) and be\r
   runtime safe, in general.\r
-  \r
+\r
   @param[in] Callback   A pointer to a function of type EFI_RSC_HANDLER_CALLBACK that is called when\r
                         a call to ReportStatusCode() occurs.\r
-  @param[in] Tpl        TPL at which callback can be safely invoked.   \r
-  \r
+  @param[in] Tpl        TPL at which callback can be safely invoked.\r
+\r
   @retval  EFI_SUCCESS              Function was successfully registered.\r
   @retval  EFI_INVALID_PARAMETER    The callback function was NULL.\r
   @retval  EFI_OUT_OF_RESOURCES     The internal buffer ran out of space. No more functions can be\r
                                     registered.\r
-  @retval  EFI_ALREADY_STARTED      The function was already registered. It can’t be registered again.                              \r
+  @retval  EFI_ALREADY_STARTED      The function was already registered. It can't be registered again.\r
 **/\r
 typedef\r
 EFI_STATUS\r
@@ -68,16 +64,16 @@ EFI_STATUS
 \r
 /**\r
   Remove a previously registered callback function from the notification list.\r
-  \r
+\r
   A callback function must be unregistered before it is deallocated. It is important that any registered\r
   callbacks that are not runtime complaint be unregistered when ExitBootServices() is called.\r
-  \r
+\r
   @param[in]  Callback  A pointer to a function of type EFI_RSC_HANDLER_CALLBACK that is to be\r
                         unregistered.\r
-                        \r
+\r
   @retval EFI_SUCCESS           The function was successfully unregistered.\r
   @retval EFI_INVALID_PARAMETER The callback function was NULL.\r
-  @retval EFI_NOT_FOUND         The callback function was not found to be unregistered.                        \r
+  @retval EFI_NOT_FOUND         The callback function was not found to be unregistered.\r
 **/\r
 typedef\r
 EFI_STATUS\r