]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Protocol/SmmPeriodicTimerDispatch2.h
MdePkg FirmwareManagement.h: Fix typo EFI_SECURITY_VIOLATIO
[mirror_edk2.git] / MdePkg / Include / Protocol / SmmPeriodicTimerDispatch2.h
index 0e791e1a0031e44ff8bdb73c92e04c2239e38f74..078a91b4c083b84f69e95858832b2ead9f72e920 100644 (file)
@@ -4,8 +4,8 @@
 \r
   This protocol provides the parent dispatch service for the periodical timer SMI source generator.\r
 \r
-  Copyright (c) 2009, Intel Corporation\r
-  All rights reserved. This program and the accompanying materials\r
+  Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<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 _SMM_PERIODIC_TIMER_DISPATCH2_H_\r
 \r
 #include <Pi/PiSmmCis.h>\r
+#include <Protocol/MmPeriodicTimerDispatch.h>\r
 \r
-#define EFI_SMM_PERIODIC_TIMER_DISPATCH2_PROTOCOL_GUID \\r
-  { \\r
-    0x4cec368e, 0x8e8e, 0x4d71, {0x8b, 0xe1, 0x95, 0x8c, 0x45, 0xfc, 0x8a, 0x53 } \\r
-  }\r
+#define EFI_SMM_PERIODIC_TIMER_DISPATCH2_PROTOCOL_GUID EFI_MM_PERIODIC_TIMER_DISPATCH_PROTOCOL_GUID\r
 \r
 ///\r
 /// Example: A chipset supports periodic SMIs on every 64ms or 2 seconds.\r
@@ -66,13 +64,7 @@ typedef struct {
 /// Register() in RegisterContext and with CommBuffer pointing to an instance of \r
 /// EFI_SMM_PERIODIC_TIMER_CONTEXT and CommBufferSize pointing to its size.\r
 ///\r
-typedef struct {\r
-  ///\r
-  /// ElapsedTime is the actual time in 100 nanosecond units elapsed since last called, a\r
-  /// value of 0 indicates an unknown amount of time.\r
-  ///\r
-  UINT64  ElapsedTime;\r
-} EFI_SMM_PERIODIC_TIMER_CONTEXT;\r
+typedef EFI_MM_PERIODIC_TIMER_CONTEXT EFI_SMM_PERIODIC_TIMER_CONTEXT;\r
 \r
 typedef struct _EFI_SMM_PERIODIC_TIMER_DISPATCH2_PROTOCOL  EFI_SMM_PERIODIC_TIMER_DISPATCH2_PROTOCOL;\r
 \r
@@ -105,7 +97,7 @@ typedef struct _EFI_SMM_PERIODIC_TIMER_DISPATCH2_PROTOCOL  EFI_SMM_PERIODIC_TIME
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_SMM_PERIODIC_TIMER_REGISTER)(\r
+(EFIAPI *EFI_SMM_PERIODIC_TIMER_REGISTER2)(\r
   IN CONST EFI_SMM_PERIODIC_TIMER_DISPATCH2_PROTOCOL  *This,\r
   IN       EFI_SMM_HANDLER_ENTRY_POINT2               DispatchFunction,\r
   IN CONST EFI_SMM_PERIODIC_TIMER_REGISTER_CONTEXT    *RegisterContext,\r
@@ -126,7 +118,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_SMM_PERIODIC_TIMER_UNREGISTER)(\r
+(EFIAPI *EFI_SMM_PERIODIC_TIMER_UNREGISTER2)(\r
   IN CONST EFI_SMM_PERIODIC_TIMER_DISPATCH2_PROTOCOL  *This,\r
   IN       EFI_HANDLE                                 DispatchHandle\r
   );\r
@@ -148,7 +140,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_SMM_PERIODIC_TIMER_INTERVAL)(\r
+(EFIAPI *EFI_SMM_PERIODIC_TIMER_INTERVAL2)(\r
   IN CONST EFI_SMM_PERIODIC_TIMER_DISPATCH2_PROTOCOL  *This,\r
   IN OUT UINT64                                       **SmiTickInterval\r
   );\r
@@ -159,9 +151,9 @@ EFI_STATUS
 /// This protocol provides the parent dispatch service for the periodical timer SMI source generator.\r
 ///\r
 struct _EFI_SMM_PERIODIC_TIMER_DISPATCH2_PROTOCOL {\r
-  EFI_SMM_PERIODIC_TIMER_REGISTER    Register;\r
-  EFI_SMM_PERIODIC_TIMER_UNREGISTER  UnRegister;\r
-  EFI_SMM_PERIODIC_TIMER_INTERVAL    GetNextShorterInterval;\r
+  EFI_SMM_PERIODIC_TIMER_REGISTER2    Register;\r
+  EFI_SMM_PERIODIC_TIMER_UNREGISTER2  UnRegister;\r
+  EFI_SMM_PERIODIC_TIMER_INTERVAL2    GetNextShorterInterval;\r
 };\r
 \r
 extern EFI_GUID gEfiSmmPeriodicTimerDispatch2ProtocolGuid;\r