]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Core/Dxe/Event/Event.h
Improve coding style in MdeModulePkg.
[mirror_edk2.git] / MdeModulePkg / Core / Dxe / Event / Event.h
index f9384bc6cb575ee0b3e576b2a2b7dff2e33040c7..b88effacd9dac9b97137f3d7b52528c822eed8aa 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   UEFI Event support functions and structure.\r
 \r
-Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
+Copyright (c) 2006 - 2010, Intel Corporation. <BR>\r
 All rights reserved. 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
@@ -23,7 +23,17 @@ extern  UINTN                   gEventPending;
 //\r
 // EFI_EVENT\r
 //\r
-#define EVENT_SIGNATURE         EFI_SIGNATURE_32('e','v','n','t')\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
   UINT32                  Type;\r
@@ -44,21 +54,8 @@ typedef struct {
   ///\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