]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Library/DxeDpcLib/DpcLib.c
BaseTools:Change the path of the file that Binary Cache
[mirror_edk2.git] / MdeModulePkg / Library / DxeDpcLib / DpcLib.c
index 7ee9084a00d614ecb662aae80b5be12702e93b6c..29d810776eb5cfba71056335ebdf2567cfe1c53c 100644 (file)
@@ -1,17 +1,11 @@
 /** @file\r
   Help functions to access UDP service.\r
-  \r
-Copyright (c) 2005 - 2007, Intel Corporation.<BR>\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
+\r
+Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved.<BR>\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
 **/\r
 \r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
 #include <Library/DebugLib.h>\r
 #include <Library/UefiBootServicesTableLib.h>\r
 #include <Protocol/Dpc.h>\r
@@ -45,16 +39,16 @@ DpcLibConstructor (
   Status = gBS->LocateProtocol (&gEfiDpcProtocolGuid, NULL, (VOID **)&mDpc);\r
   ASSERT_EFI_ERROR (Status);\r
 \r
-  return EFI_SUCCESS;\r
+  return Status;\r
 }\r
 \r
 /**\r
   Add a Deferred Procedure Call to the end of the DPC queue.\r
 \r
-  @param  DpcTpl        The EFI_TPL that the DPC should be invoked.\r
-  @param  DpcProcedure  Pointer to the DPC's function.\r
-  @param  DpcContext    Pointer to the DPC's context.  Passed to DpcProcedure\r
-                        when DpcProcedure is invoked.\r
+  @param[in]  DpcTpl        The EFI_TPL that the DPC should be invoked.\r
+  @param[in]  DpcProcedure  Pointer to the DPC's function.\r
+  @param[in]  DpcContext    Pointer to the DPC's context.  Passed to DpcProcedure\r
+                            when DpcProcedure is invoked.\r
 \r
   @retval EFI_SUCCESS            The DPC was queued.\r
   @retval EFI_INVALID_PARAMETER  DpcTpl is not a valid EFI_TPL.\r
@@ -68,7 +62,7 @@ EFIAPI
 QueueDpc (\r
   IN EFI_TPL            DpcTpl,\r
   IN EFI_DPC_PROCEDURE  DpcProcedure,\r
-  IN VOID               *DpcContext\r
+  IN VOID               *DpcContext    OPTIONAL\r
   )\r
 {\r
   //\r