]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Library/DxeDpcLib/DpcLib.c
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7258 6f19259b...
[mirror_edk2.git] / MdeModulePkg / Library / DxeDpcLib / DpcLib.c
index bc834f7a3e981fdf8dfe2ce46850625cfa0583d7..904c1cd5d417a3f551937baf66ac7657bbab8fc2 100644 (file)
@@ -1,6 +1,7 @@
 /** @file\r
-\r
-Copyright (c) 2007, Intel Corporation\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
@@ -8,16 +9,9 @@ http://opensource.org/licenses/bsd-license.php
 \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
-Module Name:\r
-\r
-  DpcLib.c\r
-\r
-Abstract:\r
-\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
@@ -57,10 +51,10 @@ DpcLibConstructor (
 /**\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
@@ -70,10 +64,11 @@ DpcLibConstructor (
 \r
 **/\r
 EFI_STATUS\r
+EFIAPI\r
 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
@@ -93,6 +88,7 @@ QueueDpc (
 \r
 **/\r
 EFI_STATUS\r
+EFIAPI\r
 DispatchDpc (\r
   VOID\r
   )\r