]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Metronome/Metronome.c
MdePkg: Convert all .uni files to utf-8
[mirror_edk2.git] / MdeModulePkg / Universal / Metronome / Metronome.c
index 9ce6c9cf74272c833fff278c3057ba64863a5343..c3dc0b875a0224095dd6910cc3901443ad61b2a7 100644 (file)
@@ -11,8 +11,8 @@
   overflows that could occur for long delays if only nanoseconds were used and also\r
   provides the greatest accuracy for small delays. \r
 \r
-Copyright (c) 2008, Intel Corporation                                                         \r
-All rights reserved. This program and the accompanying materials                          \r
+Copyright (c) 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
@@ -22,21 +22,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 **/\r
 \r
-#include <PiDxe.h>\r
-#include <Protocol/Metronome.h>\r
-#include <Library/UefiBootServicesTableLib.h>\r
-#include <Library/TimerLib.h>\r
-#include <Library/DebugLib.h>\r
-\r
-//\r
-// Function Prototypes\r
-//\r
-EFI_STATUS\r
-EFIAPI\r
-WaitForTick (\r
-  IN EFI_METRONOME_ARCH_PROTOCOL  *This,\r
-  IN UINT32                       TickNumber\r
-  );\r
+#include "Metronome.h"\r
 \r
 //\r
 // Handle for the Metronome Architectural Protocol instance produced by this driver\r
@@ -48,10 +34,13 @@ EFI_HANDLE  mMetronomeHandle = NULL;
 //\r
 EFI_METRONOME_ARCH_PROTOCOL mMetronome = {\r
   WaitForTick,\r
-  1            // TickPeriod = 1*100 ns units\r
+  1  // TickPeriod = 1*100 ns units\r
 };\r
 \r
 /**\r
+  Waits for the specified number of ticks.\r
+  \r
+  This function implements EFI_METRONOME_ARCH_PROTOCOL.WaitForTick().\r
   The WaitForTick() function waits for the number of ticks specified by \r
   TickNumber from a known time source in the platform.  If TickNumber of \r
   ticks are detected, then EFI_SUCCESS is returned.  The actual time passed \r