]>
Commit | Line | Data |
---|---|---|
36ee91ca | 1 | /** @file\r |
3a1ab4bc | 2 | DpcLib.h\r |
3 | \r | |
4 | Copyright (c) 2007, Intel Corporation.<BR>\r | |
36ee91ca | 5 | All rights reserved. This program and the accompanying materials\r |
6 | are licensed and made available under the terms and conditions of the BSD License\r | |
7 | which accompanies this distribution. The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.php\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | \r | |
36ee91ca | 13 | **/\r |
14 | \r | |
15 | #ifndef _DPC_LIB_H_\r | |
16 | #define _DPC_LIB_H_\r | |
17 | \r | |
36ee91ca | 18 | #include <Protocol/Dpc.h>\r |
19 | \r | |
20 | /**\r | |
21 | Add a Deferred Procedure Call to the end of the DPC queue.\r | |
22 | \r | |
3a1ab4bc | 23 | @param[in] DpcTpl The EFI_TPL that the DPC should be invoked.\r |
24 | @param[in] DpcProcedure Pointer to the DPC's function.\r | |
25 | @param[in] DpcContext Pointer to the DPC's context. Passed to DpcProcedure\r | |
26 | when DpcProcedure is invoked.\r | |
36ee91ca | 27 | \r |
28 | @retval EFI_SUCCESS The DPC was queued.\r | |
29 | @retval EFI_INVALID_PARAMETER DpcTpl is not a valid EFI_TPL.\r | |
30 | @retval EFI_INVALID_PARAMETER DpcProcedure is NULL.\r | |
31 | @retval EFI_OUT_OF_RESOURCES There are not enough resources available to\r | |
32 | add the DPC to the queue.\r | |
33 | \r | |
34 | **/\r | |
35 | EFI_STATUS\r | |
7b414b4e | 36 | EFIAPI\r |
36ee91ca | 37 | QueueDpc (\r |
38 | IN EFI_TPL DpcTpl,\r | |
39 | IN EFI_DPC_PROCEDURE DpcProcedure,\r | |
40 | IN VOID *DpcContext OPTIONAL\r | |
41 | );\r | |
42 | \r | |
43 | /**\r | |
44 | Dispatch the queue of DPCs. ALL DPCs that have been queued with a DpcTpl\r | |
45 | value greater than or equal to the current TPL are invoked in the order that\r | |
46 | they were queued. DPCs with higher DpcTpl values are invoked before DPCs with\r | |
47 | lower DpcTpl values.\r | |
48 | \r | |
49 | @retval EFI_SUCCESS One or more DPCs were invoked.\r | |
50 | @retval EFI_NOT_FOUND No DPCs were invoked.\r | |
51 | \r | |
52 | **/\r | |
53 | EFI_STATUS\r | |
7b414b4e | 54 | EFIAPI\r |
36ee91ca | 55 | DispatchDpc (\r |
56 | VOID\r | |
57 | );\r | |
58 | \r | |
59 | #endif\r |