]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.h
MdeModulePkg/UdfDxe: suppress incorrect compiler warning in ReadFile()
[mirror_edk2.git] / MdeModulePkg / Universal / WatchdogTimerDxe / WatchdogTimer.h
index 103ad06d9fd7444b7c316d53aaeef129a1bcda5e..e7bb0b2bfdd919aee161e28d43d4f887e543d7a4 100644 (file)
@@ -1,10 +1,8 @@
 /** @file\r
+  The internal include file for WatchDogTimer module.  \r
 \r
-  The internal header file includes the common header files, defines\r
-  internal functions used by WatchDogTimer module.  \r
-\r
-Copyright (c) 2006 - 2008, Intel Corporation                                                         \r
-All rights reserved. This program and the accompanying materials                          \r
+Copyright (c) 2006 - 2008, 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
@@ -19,17 +17,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 \r
 \r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
 #include <Library/DebugLib.h>\r
 #include <Library/UefiDriverEntryPoint.h>\r
 #include <Library/ReportStatusCodeLib.h>\r
 #include <Library/UefiBootServicesTableLib.h>\r
 #include <Library/UefiRuntimeServicesTableLib.h>\r
-#include <Library/PcdLib.h>\r
 #include <Protocol/WatchdogTimer.h>\r
 \r
 \r
 /**\r
+  Registers a handler that is to be invoked when the watchdog timer fires.\r
+\r
   This function registers a handler that is to be invoked when the watchdog\r
   timer fires.  By default, the EFI_WATCHDOG_TIMER protocol will call the\r
   Runtime Service ResetSystem() when the watchdog timer fires.  If a\r
@@ -45,9 +44,9 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   @param  NotifyFunction        The function to call when the watchdog timer fires.  If this\r
                                 is NULL, then the handler will be unregistered.\r
 \r
-  @return EFI_SUCCESS           The watchdog timer handler was registered or unregistered.\r
-  @return EFI_ALREADY_STARTED   NotifyFunction is not NULL, and a handler is already registered.\r
-  @return EFI_INVALID_PARAMETER NotifyFunction is NULL, and a handler was not previously registered.\r
+  @retval EFI_SUCCESS           The watchdog timer handler was registered or unregistered.\r
+  @retval EFI_ALREADY_STARTED   NotifyFunction is not NULL, and a handler is already registered.\r
+  @retval EFI_INVALID_PARAMETER NotifyFunction is NULL, and a handler was not previously registered.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -58,18 +57,20 @@ WatchdogTimerDriverRegisterHandler (
   );\r
 \r
 /**\r
+  Sets the amount of time in the future to fire the watchdog timer.\r
+\r
   This function sets the amount of time to wait before firing the watchdog\r
-  timer to TimerPeriod 100 nS units.  If TimerPeriod is 0, then the watchdog\r
+  timer to TimerPeriod 100 ns units.  If TimerPeriod is 0, then the watchdog\r
   timer is disabled.\r
 \r
   @param  This              The EFI_WATCHDOG_TIMER_ARCH_PROTOCOL instance.\r
-  @param  TimerPeriod       The amount of time in 100 nS units to wait before the watchdog\r
+  @param  TimerPeriod       The amount of time in 100 ns units to wait before the watchdog\r
                             timer is fired.  If TimerPeriod is zero, then the watchdog\r
                             timer is disabled.\r
 \r
-  @return EFI_SUCCESS       The watchdog timer has been programmed to fire in Time\r
-                            100 nS units.\r
-  @return EFI_DEVICE_ERROR  A watchdog timer could not be programmed due to a device\r
+  @retval EFI_SUCCESS       The watchdog timer has been programmed to fire in Time\r
+                            100 ns units.\r
+  @retval EFI_DEVICE_ERROR  A watchdog timer could not be programmed due to a device\r
                             error.\r
 \r
 **/\r
@@ -81,18 +82,20 @@ WatchdogTimerDriverSetTimerPeriod (
   );\r
 \r
 /**\r
+  Retrieves the amount of time in 100 ns units that the system will wait before firing the watchdog timer.\r
+\r
   This function retrieves the amount of time the system will wait before firing\r
   the watchdog timer.  This period is returned in TimerPeriod, and EFI_SUCCESS\r
   is returned.  If TimerPeriod is NULL, then EFI_INVALID_PARAMETER is returned.\r
 \r
   @param  This                    The EFI_WATCHDOG_TIMER_ARCH_PROTOCOL instance.\r
-  @param  TimerPeriod             A pointer to the amount of time in 100 nS units that the system\r
+  @param  TimerPeriod             A pointer to the amount of time in 100 ns units that the system\r
                                   will wait before the watchdog timer is fired.  If TimerPeriod of\r
                                   zero is returned, then the watchdog timer is disabled.\r
 \r
-  @return EFI_SUCCESS             The amount of time that the system will wait before\r
+  @retval EFI_SUCCESS             The amount of time that the system will wait before\r
                                   firing the watchdog timer was returned in TimerPeriod.\r
-  @return EFI_INVALID_PARAMETER   TimerPeriod is NULL.\r
+  @retval EFI_INVALID_PARAMETER   TimerPeriod is NULL.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -102,20 +105,4 @@ WatchdogTimerDriverGetTimerPeriod (
   IN UINT64                            *TimerPeriod\r
   );\r
 \r
-/**\r
-  Initialize the Watchdog Timer Architectural Protocol driver.\r
-\r
-  @param  ImageHandle             ImageHandle of the loaded driver.\r
-  @param  SystemTable             Pointer to the System Table.\r
-\r
-  @return EFI_SUCCESS             Timer Architectural Protocol created.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-WatchdogTimerDriverInitialize (\r
-  IN EFI_HANDLE        ImageHandle,\r
-  IN EFI_SYSTEM_TABLE  *SystemTable\r
-  );\r
-\r
 #endif\r