]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - MdeModulePkg/Core/Dxe/Exec.h
Remove unused global variable.
[mirror_edk2.git] / MdeModulePkg / Core / Dxe / Exec.h
... / ...
CommitLineData
1/** @file\r
2 UEFI Event support functions and structure.\r
3\r
4Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
5All rights reserved. This program and the accompanying materials\r
6are licensed and made available under the terms and conditions of the BSD License\r
7which accompanies this distribution. The full text of the license may be found at\r
8http://opensource.org/licenses/bsd-license.php\r
9\r
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15#ifndef _EXEC_H_\r
16#define _EXEC_H_\r
17\r
18#define VALID_TPL(a) ((a) <= TPL_HIGH_LEVEL)\r
19\r
20//\r
21// EFI_EVENT\r
22//\r
23#define EVENT_SIGNATURE EFI_SIGNATURE_32('e','v','n','t')\r
24typedef struct {\r
25 UINTN Signature;\r
26 UINT32 Type;\r
27 UINT32 SignalCount;\r
28\r
29 //\r
30 // Entry if the event is registered to be signalled\r
31 //\r
32\r
33 LIST_ENTRY SignalLink;\r
34\r
35 //\r
36 // Notification information for this event\r
37 //\r
38\r
39 EFI_TPL NotifyTpl;\r
40 EFI_EVENT_NOTIFY NotifyFunction;\r
41 VOID *NotifyContext;\r
42 EFI_GUID EventGroup;\r
43 LIST_ENTRY NotifyLink;\r
44 BOOLEAN ExFlag;\r
45\r
46 //\r
47 // A list of all runtime events\r
48 //\r
49 EFI_RUNTIME_EVENT_ENTRY RuntimeData;\r
50\r
51 //\r
52 // Information by event type\r
53 //\r
54\r
55 union {\r
56 //\r
57 // For timer events\r
58 //\r
59 struct {\r
60 LIST_ENTRY Link;\r
61 UINT64 TriggerTime;\r
62 UINT64 Period;\r
63 } Timer;\r
64 } u;\r
65\r
66} IEVENT;\r
67\r
68//\r
69// Internal prototypes\r
70//\r
71\r
72\r
73/**\r
74 Dispatches all pending events.\r
75\r
76 @param Priority The task priority level of event notifications\r
77 to dispatch\r
78\r
79**/\r
80VOID\r
81CoreDispatchEventNotifies (\r
82 IN EFI_TPL Priority\r
83 );\r
84\r
85\r
86\r
87/**\r
88 Return the highest set bit.\r
89\r
90 @param Number The value to check\r
91\r
92 @return Bit position of the highest set bit\r
93\r
94**/\r
95UINTN\r
96CoreHighestSetBit (\r
97 IN UINTN Number\r
98 );\r
99\r
100\r
101//\r
102// Exported functions\r
103//\r
104/**\r
105 Initializes timer support.\r
106\r
107**/\r
108VOID\r
109CoreInitializeTimer (\r
110 VOID\r
111 );\r
112\r
113//\r
114// extern data declarations\r
115//\r
116\r
117extern EFI_LOCK gEventQueueLock;\r
118extern UINTN gEventPending;\r
119extern LIST_ENTRY gEventQueue[];\r
120extern LIST_ENTRY gEventSignalQueue;\r
121\r
122#endif\r