diff options
author | mdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-10-27 02:12:53 +0000 |
---|---|---|
committer | mdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-10-27 02:12:53 +0000 |
commit | 2952f72d6da58f9117721e0f8c0ca4147f0d9340 (patch) | |
tree | eb1b8e9fada768b9be3b05f90fbddbced487fc52 /DuetPkg/8254TimerDxe/Timer.h | |
parent | 0f25cc149a40eefdb91786a018a38056453e702b (diff) | |
download | edk2-platforms-2952f72d6da58f9117721e0f8c0ca4147f0d9340.tar.xz |
Update 8254 Timer driver to use IoLib instead of CPU I/O Protocol
Also change the default tick rate from 54 ms to 10 ms.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6243 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'DuetPkg/8254TimerDxe/Timer.h')
-rw-r--r-- | DuetPkg/8254TimerDxe/Timer.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/DuetPkg/8254TimerDxe/Timer.h b/DuetPkg/8254TimerDxe/Timer.h index 390d202d1f..71e0bd461e 100644 --- a/DuetPkg/8254TimerDxe/Timer.h +++ b/DuetPkg/8254TimerDxe/Timer.h @@ -26,13 +26,13 @@ Abstract: #include <PiDxe.h>
#include <Protocol/Cpu.h>
-#include <Protocol/CpuIo.h>
#include <Protocol/Legacy8259.h>
#include <Protocol/Timer.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
+#include <Library/IoLib.h>
//
// The PCAT 8253/8254 has an input clock at 1.193182 MHz and Timer 0 is
@@ -43,7 +43,9 @@ Abstract: // ---------------- * 1,000,000 uS/S = 54925.4 uS = 549254 * 100 ns
// 1,193,182 Hz
//
-#define DEFAULT_TIMER_TICK_DURATION 549254
+// The default timer tick duration is set to 10 ms = 100000 100 ns units
+//
+#define DEFAULT_TIMER_TICK_DURATION 100000
#define TIMER_CONTROL_PORT 0x43
#define TIMER0_COUNT_PORT 0x40
|