]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Library/SmmPeriodicSmiLib.h
MdePkg: Clean up source files
[mirror_edk2.git] / MdePkg / Include / Library / SmmPeriodicSmiLib.h
index 2bad2b7af7920e413d27a227b98e77a146b7a1e1..d0c1f4cda7d81f1666a84fb3975b009748cb1143 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Provides services to enable and disable periodic SMI handlers.\r
 \r
-Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2011 - 2018, 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
@@ -19,15 +19,15 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 /**\r
   This function returns a pointer to a table of supported periodic\r
-  SMI tick periods in 100 ns units sorted from largest to smallest.  \r
-  The table contains a array of UINT64 values terminated by a tick \r
+  SMI tick periods in 100 ns units sorted from largest to smallest.\r
+  The table contains a array of UINT64 values terminated by a tick\r
   period value of 0.  The returned table must be treated as read-only\r
   data and must not be freed.\r
-  \r
-  @return  A pointer to a table of UINT64 tick period values in \r
-           100ns units sorted from largest to smallest terminated \r
+\r
+  @return  A pointer to a table of UINT64 tick period values in\r
+           100ns units sorted from largest to smallest terminated\r
            by a tick period of 0.\r
-  \r
+\r
 **/\r
 UINT64 *\r
 EFIAPI\r
@@ -53,30 +53,30 @@ PeriodicSmiExecutionTime (
   );\r
 \r
 /**\r
-  This function returns control back to the SMM Foundation.  When the next \r
+  This function returns control back to the SMM Foundation.  When the next\r
   periodic SMI for the currently executing handler is triggered, the periodic\r
   SMI handler will restarted from its registered DispatchFunction entry point.\r
-  If this function is not called from within an enabled periodic SMI handler, \r
+  If this function is not called from within an enabled periodic SMI handler,\r
   then control is returned to the calling function.\r
 \r
 **/\r
 VOID\r
-EFIAPI  \r
+EFIAPI\r
 PeriodicSmiExit (\r
   VOID\r
   );\r
 \r
 /**\r
-  This function yields control back to the SMM Foundation.  When the next \r
+  This function yields control back to the SMM Foundation.  When the next\r
   periodic SMI for the currently executing handler is triggered, the periodic\r
-  SMI handler will be resumed and this function will return.  Use of this \r
+  SMI handler will be resumed and this function will return.  Use of this\r
   function requires a seperate stack for the periodic SMI handler.  A non zero\r
-  stack size must be specified in PeriodicSmiEnable() for this function to be \r
-  used.  \r
-  \r
+  stack size must be specified in PeriodicSmiEnable() for this function to be\r
+  used.\r
+\r
   If the stack size passed into PeriodicSmiEnable() was zero, the 0 is returned.\r
-  \r
-  If this function is not called from within an enabled periodic SMI handler, \r
+\r
+  If this function is not called from within an enabled periodic SMI handler,\r
   then 0 is returned.\r
 \r
   @return  The actual time in 100ns units elapsed since this function was\r
@@ -84,21 +84,21 @@ PeriodicSmiExit (
 \r
 **/\r
 UINT64\r
-EFIAPI  \r
+EFIAPI\r
 PeriodicSmiYield (\r
   VOID\r
   );\r
 \r
 /**\r
-  This function is a prototype for a periodic SMI handler function \r
+  This function is a prototype for a periodic SMI handler function\r
   that may be enabled with PeriodicSmiEnable() and disabled with\r
   PeriodicSmiDisable().\r
 \r
   @param[in] Context      Content registered with PeriodicSmiEnable().\r
   @param[in] ElapsedTime  The actual time in 100ns units elapsed since\r
-                          this function was called.  A value of 0 indicates \r
+                          this function was called.  A value of 0 indicates\r
                           an unknown amount of time.\r
-                            \r
+\r
 **/\r
 typedef\r
 VOID\r
@@ -106,48 +106,48 @@ VOID
   IN CONST VOID  *Context OPTIONAL,\r
   IN UINT64      ElapsedTime\r
   );\r
-  \r
+\r
 /**\r
   This function enables a periodic SMI handler.\r
-  \r
-  @param[in, out] DispatchHandle   A pointer to the handle associated with the \r
-                                   enabled periodic SMI handler.  This is an \r
-                                   optional parameter that may be NULL.  If it is \r
-                                   NULL, then the handle will not be returned, \r
-                                   which means that the periodic SMI handler can \r
+\r
+  @param[in, out] DispatchHandle   A pointer to the handle associated with the\r
+                                   enabled periodic SMI handler.  This is an\r
+                                   optional parameter that may be NULL.  If it is\r
+                                   NULL, then the handle will not be returned,\r
+                                   which means that the periodic SMI handler can\r
                                    never be disabled.\r
   @param[in]     DispatchFunction  A pointer to a periodic SMI handler function.\r
   @param[in]     Context           Optional content to pass into DispatchFunction.\r
-  @param[in]     TickPeriod        The requested tick period in 100ns units that \r
+  @param[in]     TickPeriod        The requested tick period in 100ns units that\r
                                    control should be givien to the periodic SMI\r
                                    handler.  Must be one of the supported values\r
                                    returned by PeriodicSmiSupportedPickPeriod().\r
   @param[in]     Cpu               Specifies the CPU that is required to execute\r
-                                   the periodic SMI handler.  If Cpu is \r
-                                   PERIODIC_SMI_LIBRARY_ANY_CPU, then the periodic \r
-                                   SMI handler will always be executed on the SMST \r
-                                   CurrentlyExecutingCpu, which may vary across \r
-                                   periodic SMIs.  If Cpu is between 0 and the SMST \r
+                                   the periodic SMI handler.  If Cpu is\r
+                                   PERIODIC_SMI_LIBRARY_ANY_CPU, then the periodic\r
+                                   SMI handler will always be executed on the SMST\r
+                                   CurrentlyExecutingCpu, which may vary across\r
+                                   periodic SMIs.  If Cpu is between 0 and the SMST\r
                                    NumberOfCpus, then the periodic SMI will always\r
                                    be executed on the requested CPU.\r
   @param[in]     StackSize         The size, in bytes, of the stack to allocate for\r
                                    use by the periodic SMI handler.  If 0, then the\r
                                    default stack will be used.\r
-                            \r
+\r
   @retval EFI_INVALID_PARAMETER  DispatchFunction is NULL.\r
-  @retval EFI_UNSUPPORTED        TickPeriod is not a supported tick period.  The \r
-                                 supported tick periods can be retrieved using \r
+  @retval EFI_UNSUPPORTED        TickPeriod is not a supported tick period.  The\r
+                                 supported tick periods can be retrieved using\r
                                  PeriodicSmiSupportedTickPeriod().\r
-  @retval EFI_INVALID_PARAMETER  Cpu is not PERIODIC_SMI_LIBRARY_ANY_CPU or in \r
+  @retval EFI_INVALID_PARAMETER  Cpu is not PERIODIC_SMI_LIBRARY_ANY_CPU or in\r
                                  the range 0 to SMST NumberOfCpus.\r
-  @retval EFI_OUT_OF_RESOURCES   There are not enough resources to enable the \r
+  @retval EFI_OUT_OF_RESOURCES   There are not enough resources to enable the\r
                                  periodic SMI handler.\r
-  @retval EFI_OUT_OF_RESOURCES   There are not enough resources to allocate the \r
+  @retval EFI_OUT_OF_RESOURCES   There are not enough resources to allocate the\r
                                  stack speficied by StackSize.\r
   @retval EFI_SUCCESS            The periodic SMI handler was enabled.\r
-  \r
+\r
 **/\r
-EFI_STATUS \r
+EFI_STATUS\r
 EFIAPI\r
 PeriodicSmiEnable (\r
   IN OUT EFI_HANDLE                    *DispatchHandle,    OPTIONAL\r
@@ -161,24 +161,24 @@ PeriodicSmiEnable (
 /**\r
   This function disables a periodic SMI handler that has been previously\r
   enabled with PeriodicSmiEnable().\r
-  \r
-  @param[in] DispatchHandle  A handle associated with a previously enabled periodic \r
+\r
+  @param[in] DispatchHandle  A handle associated with a previously enabled periodic\r
                              SMI handler.  This is an optional parameter that may\r
                              be NULL.  If it is NULL, then the active periodic SMI\r
                              handlers is disabled.\r
 \r
   @retval FALSE  DispatchHandle is NULL and there is no active periodic SMI handler.\r
-  @retval FALSE  The periodic SMI handler specified by DispatchHandle has \r
+  @retval FALSE  The periodic SMI handler specified by DispatchHandle has\r
                  not been enabled with PeriodicSmiEnable().\r
-  @retval TRUE   The periodic SMI handler specified by DispatchHandle has \r
+  @retval TRUE   The periodic SMI handler specified by DispatchHandle has\r
                  been disabled.  If DispatchHandle is NULL, then the active\r
                  periodic SMI handler has been disabled.\r
-  \r
+\r
 **/\r
-BOOLEAN \r
+BOOLEAN\r
 EFIAPI\r
 PeriodicSmiDisable (\r
   IN EFI_HANDLE  DispatchHandle    OPTIONAL\r
   );\r
-  \r
+\r
 #endif\r