]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - MdeModulePkg/Core/Dxe/Event/Event.h
Fix several coding style violations
[mirror_edk2.git] / MdeModulePkg / Core / Dxe / Event / Event.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 __EVENT_H__\r
16#define __EVENT_H__\r
17\r
18\r
19#define VALID_TPL(a) ((a) <= TPL_HIGH_LEVEL)\r
20extern UINTN gEventPending;\r
21\r
22\r
23//\r
24// EFI_EVENT\r
25//\r
26#define EVENT_SIGNATURE EFI_SIGNATURE_32('e','v','n','t')\r
27typedef struct {\r
28 UINTN Signature;\r
29 UINT32 Type;\r
30 UINT32 SignalCount;\r
31 ///\r
32 /// Entry if the event is registered to be signalled\r
33 ///\r
34 LIST_ENTRY SignalLink;\r
35 ///\r
36 /// Notification information for this event\r
37 ///\r
38 EFI_TPL NotifyTpl;\r
39 EFI_EVENT_NOTIFY NotifyFunction;\r
40 VOID *NotifyContext;\r
41 EFI_GUID EventGroup;\r
42 LIST_ENTRY NotifyLink;\r
43 BOOLEAN ExFlag;\r
44 ///\r
45 /// A list of all runtime events\r
46 ///\r
47 EFI_RUNTIME_EVENT_ENTRY RuntimeData;\r
48 ///\r
49 /// Information by event type\r
50 ///\r
51 union {\r
52 ///\r
53 /// For timer events\r
54 ///\r
55 struct {\r
56 LIST_ENTRY Link;\r
57 UINT64 TriggerTime;\r
58 UINT64 Period;\r
59 } Timer;\r
60 } u;\r
61\r
62} IEVENT;\r
63\r
64//\r
65// Internal prototypes\r
66//\r
67\r
68\r
69/**\r
70 Dispatches all pending events.\r
71\r
72 @param Priority The task priority level of event notifications\r
73 to dispatch\r
74\r
75**/\r
76VOID\r
77CoreDispatchEventNotifies (\r
78 IN EFI_TPL Priority\r
79 );\r
80\r
81\r
82/**\r
83 Initializes timer support.\r
84\r
85**/\r
86VOID\r
87CoreInitializeTimer (\r
88 VOID\r
89 );\r
90\r
91#endif\r