/** @file\r
UEFI Event support functions and structure.\r
\r
-Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
-All rights reserved. This program and the accompanying materials\r
+Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+(C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>\r
+This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
http://opensource.org/licenses/bsd-license.php\r
#define VALID_TPL(a) ((a) <= TPL_HIGH_LEVEL)\r
extern UINTN gEventPending;\r
\r
+///\r
+/// Set if Event is part of an event group\r
+///\r
+#define EVT_EXFLAG_EVENT_GROUP 0x01\r
+///\r
+/// Set if Event is registered on a protocol notify\r
+///\r
+#define EVT_EXFLAG_EVENT_PROTOCOL_NOTIFICATION 0x02\r
\r
//\r
// EFI_EVENT\r
//\r
+\r
+///\r
+/// Timer event information\r
+///\r
+typedef struct {\r
+ LIST_ENTRY Link;\r
+ UINT64 TriggerTime;\r
+ UINT64 Period;\r
+} TIMER_EVENT_INFO;\r
+\r
#define EVENT_SIGNATURE SIGNATURE_32('e','v','n','t')\r
typedef struct {\r
UINTN Signature;\r
VOID *NotifyContext;\r
EFI_GUID EventGroup;\r
LIST_ENTRY NotifyLink;\r
- BOOLEAN ExFlag;\r
+ UINT8 ExFlag;\r
///\r
/// A list of all runtime events\r
///\r
- EFI_RUNTIME_EVENT_ENTRY RuntimeData;\r
- ///\r
- /// Information by event type\r
- ///\r
- union {\r
- ///\r
- /// For timer events\r
- ///\r
- struct {\r
- LIST_ENTRY Link;\r
- UINT64 TriggerTime;\r
- UINT64 Period;\r
- } Timer;\r
- } u;\r
-\r
+ EFI_RUNTIME_EVENT_ENTRY RuntimeData;\r
+ TIMER_EVENT_INFO Timer;\r
} IEVENT;\r
\r
//\r