]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/DpcDxe/Dpc.c
BaseTools:Change the path of the file that Binary Cache
[mirror_edk2.git] / MdeModulePkg / Universal / Network / DpcDxe / Dpc.c
index cccedf5e46c1521bc9f89f8d2e860c1ca09e3251..8a490949dc8ca408420fb3ef6d053dd5eaf00f8a 100644 (file)
@@ -1,13 +1,7 @@
 /** @file\r
 \r
-Copyright (c) 2007, 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
 Module Name:\r
 \r
@@ -45,14 +39,14 @@ UINTN  mMaxDpcQueueDepth = 0;
 // If the free list is empty and a DPC is queued, the free list is grown by allocating\r
 // an additional set of DPC entries.\r
 //\r
-LIST_ENTRY  mDpcEntryFreeList = INITIALIZE_LIST_HEAD_VARIABLE(mDpcEntryFreeList);\r
+LIST_ENTRY      mDpcEntryFreeList = INITIALIZE_LIST_HEAD_VARIABLE(mDpcEntryFreeList);\r
 \r
 //\r
 // An array of DPC queues.  A DPC queue is allocated for every leval EFI_TPL value.\r
 // As DPCs are queued, they are added to the end of the linked list.\r
 // As DPCs are dispatched, they are removed from the beginning of the linked list.\r
 //\r
-LIST_ENTRY  mDpcQueue[TPL_HIGH_LEVEL + 1];\r
+LIST_ENTRY      mDpcQueue[TPL_HIGH_LEVEL + 1];\r
 \r
 /**\r
   Add a Deferred Procedure Call to the end of the DPC queue.\r
@@ -299,29 +293,23 @@ DpcDispatchDpc (
   return ReturnStatus;\r
 }\r
 \r
+/**\r
+  The entry point for DPC driver which installs the EFI_DPC_PROTOCOL onto a new handle.\r
+\r
+  @param  ImageHandle            The image handle of the driver.\r
+  @param  SystemTable            The system table.\r
+\r
+  @retval EFI_SUCCES             The DPC queues were initialized and the EFI_DPC_PROTOCOL was\r
+                                 installed onto a new handle.\r
+  @retval Others                 Failed to install EFI_DPC_PROTOCOL.\r
+\r
+**/\r
 EFI_STATUS\r
 EFIAPI\r
 DpcDriverEntryPoint (\r
   IN EFI_HANDLE        ImageHandle,\r
   IN EFI_SYSTEM_TABLE  *SystemTable\r
   )\r
-/*++\r
-\r
-Routine Description:\r
-\r
-  The entry point for DPC driver which installs the EFI_DPC_PROTOCOL onto a new handle.\r
-\r
-Arguments:\r
-\r
-  ImageHandle - The image handle of the driver.\r
-  SystemTable - The system table.\r
-\r
-Returns:\r
-\r
-  EFI_SUCCESS - The DPC queues were initialized and the EFI_DPC_PROTOCOL was\r
-                installed onto a new handle.\r
-\r
---*/\r
 {\r
   EFI_STATUS  Status;\r
   UINTN       Index;\r
@@ -343,7 +331,8 @@ Returns:
   //\r
   Status = gBS->InstallMultipleProtocolInterfaces (\r
                   &mDpcHandle,\r
-                  &gEfiDpcProtocolGuid, &mDpc,\r
+                  &gEfiDpcProtocolGuid,\r
+                  &mDpc,\r
                   NULL\r
                   );\r
   ASSERT_EFI_ERROR (Status);\r