]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Core/Dxe/Event/Event.h
MdeModulePkg/Core: Fix typos in comments
[mirror_edk2.git] / MdeModulePkg / Core / Dxe / Event / Event.h
index b8b02b689818c0a6bc106ecfbd1c87f92a531da1..4c02900b93130e3308d6c8e518d5916733fcfd7e 100644 (file)
@@ -1,8 +1,9 @@
 /** @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
@@ -19,10 +20,28 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #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
@@ -40,25 +59,12 @@ typedef struct {
   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