/** @file\r
\r
-Copyright (c) 2007, Intel Corporation\r
-All rights reserved. This program and the accompanying materials\r
+Copyright (c) 2007 - 2008, 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
// 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
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
//\r
Status = gBS->InstallMultipleProtocolInterfaces (\r
&mDpcHandle,\r
- &gEfiDpcProtocolGuid, &mDpc,\r
+ &gEfiDpcProtocolGuid, \r
+ &mDpc,\r
NULL\r
);\r
ASSERT_EFI_ERROR (Status);\r