3 Copyright (c) 2007, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 EFI Deferred Procedure Call Protocol
29 // DPC Protocol GUID value
31 #define EFI_DPC_PROTOCOL_GUID \
33 0x480f8ae9, 0xc46, 0x4aa9, { 0xbc, 0x89, 0xdb, 0x9f, 0xba, 0x61, 0x98, 0x6 } \
37 // Forward reference for pure ANSI compatability
39 typedef struct _EFI_DPC_PROTOCOL EFI_DPC_PROTOCOL
;
43 Invoke a Deferred Procedure Call.
45 @param DpcContext Pointer to the Deferred Procedure Call's context,
46 which is implementation dependent.
51 (EFIAPI
*EFI_DPC_PROCEDURE
) (
56 Add a Deferred Procedure Call to the end of the DPC queue.
58 @param This Protocol instance pointer.
59 @param DpcTpl The EFI_TPL that the DPC should be invoked.
60 @param DpcProcedure Pointer to the DPC's function.
61 @param DpcContext Pointer to the DPC's context. Passed to DpcProcedure
62 when DpcProcedure is invoked.
64 @retval EFI_SUCCESS The DPC was queued.
65 @retval EFI_INVALID_PARAMETER DpcTpl is not a valid EFI_TPL.
66 @retval EFI_INVALID_PARAMETER DpcProcedure is NULL.
67 @retval EFI_OUT_OF_RESOURCES There are not enough resources available to
68 add the DPC to the queue.
73 (EFIAPI
*EFI_DPC_QUEUE_DPC
) (
74 IN EFI_DPC_PROTOCOL
*This
,
76 IN EFI_DPC_PROCEDURE DpcProcedure
,
77 IN VOID
*DpcContext OPTIONAL
81 Dispatch the queue of DPCs. ALL DPCs that have been queued with a DpcTpl
82 value greater than or equal to the current TPL are invoked in the order that
83 they were queued. DPCs with higher DpcTpl values are invoked before DPCs with
86 @param This Protocol instance pointer.
88 @retval EFI_SUCCESS One or more DPCs were invoked.
89 @retval EFI_NOT_FOUND No DPCs were invoked.
94 (EFIAPI
*EFI_DPC_DISPATCH_DPC
) (
95 IN EFI_DPC_PROTOCOL
*This
99 // DPC Protocol structure
101 typedef struct _EFI_DPC_PROTOCOL
{
102 EFI_DPC_QUEUE_DPC QueueDpc
;
103 EFI_DPC_DISPATCH_DPC DispatchDpc
;
107 // DPC Protocol GUID variable
109 extern EFI_GUID gEfiDpcProtocolGuid
;