]> git.proxmox.com Git - mirror_edk2.git/blobdiff - PcAtChipsetPkg/8254TimerDxe/Timer.h
BaseTools/BinToPcd: Fix Python 2.7.x compatibility issue
[mirror_edk2.git] / PcAtChipsetPkg / 8254TimerDxe / Timer.h
index fe4bf5b42bb504682cb2724ecc79422f1aece4b2..9d70e3aa19f93291e8211cb36372b2c05b45f3fe 100644 (file)
@@ -1,14 +1,14 @@
 /** @file\r
   Private data structures\r
 \r
-Copyright (c) 2005 - 2010, 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
-                                                                                          \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+Copyright (c) 2005 - 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
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 **/\r
 \r
 #ifndef _TIMER_H_\r
@@ -34,6 +34,12 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 // ---------------- * 1,000,000 uS/S = 54925.4 uS = 549254 * 100 ns\r
 //   1,193,182 Hz\r
 //\r
+\r
+//\r
+// The maximum tick duration for 8254 timer\r
+//\r
+#define MAX_TIMER_TICK_DURATION     549254\r
+//\r
 // The default timer tick duration is set to 10 ms = 100000 100 ns units\r
 //\r
 #define DEFAULT_TIMER_TICK_DURATION 100000\r
@@ -51,7 +57,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
   @retval EFI_SUCCESS            Timer Architectural Protocol created\r
   @retval EFI_OUT_OF_RESOURCES   Not enough resources available to initialize driver.\r
-  @retval EFI_DEVICE_ERROR       A device error occured attempting to initialize the driver.\r
+  @retval EFI_DEVICE_ERROR       A device error occurred attempting to initialize the driver.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -78,7 +84,7 @@ TimerDriverInitialize (
 \r
 \r
   @param This            The EFI_TIMER_ARCH_PROTOCOL instance.\r
-  @param TimerPeriod     The rate to program the timer interrupt in 100 nS units.  If\r
+  @param NotifyFunction  The rate to program the timer interrupt in 100 nS units.  If\r
                          the timer hardware is not programmable, then EFI_UNSUPPORTED is\r
                          returned.  If the timer is programmable, then the timer period\r
                          will be rounded up to the nearest timer period that is supported\r
@@ -172,7 +178,7 @@ TimerDriverGetTimerPeriod (
   @param This              The EFI_TIMER_ARCH_PROTOCOL instance.\r
 \r
   @retval EFI_SUCCESS       The soft timer interrupt was generated.\r
-  @retval EFI_UNSUPPORTEDT  The platform does not support the generation of soft timer interrupts.\r
+  @retval EFI_UNSUPPORTED   The platform does not support the generation of soft timer interrupts.\r
 \r
 **/\r
 EFI_STATUS\r