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
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user