//\r
// The EFI_DPC_PROTOCOL instances that is installed onto mDpcHandle\r
//\r
-EFI_DPC_PROTOCOL mDpc = {\r
+EFI_DPC_PROTOCOL mDpc = {\r
DpcQueueDpc,\r
DpcDispatchDpc\r
};\r
//\r
// Global variables used to measure the DPC Queue Depths\r
//\r
-UINTN mDpcQueueDepth = 0;\r
+UINTN mDpcQueueDepth = 0;\r
UINTN mMaxDpcQueueDepth = 0;\r
\r
//\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 level 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
//\r
// Make sure DpcTpl is valid\r
//\r
- if (DpcTpl < TPL_APPLICATION || DpcTpl > TPL_HIGH_LEVEL) {\r
+ if ((DpcTpl < TPL_APPLICATION) || (DpcTpl > TPL_HIGH_LEVEL)) {\r
return EFI_INVALID_PARAMETER;\r
}\r
\r
//\r
// Invoke the DPC passing in its context\r
//\r
- (DpcEntry->DpcProcedure) (DpcEntry->DpcContext);\r
+ (DpcEntry->DpcProcedure)(DpcEntry->DpcContext);\r
\r
//\r
// At least one DPC has been invoked, so set the return status to EFI_SUCCESS\r