3 Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
4 SPDX-License-Identifier: BSD-2-Clause-Patent
12 NT Emulation Architectural Protocol Driver as defined in Tiano.
13 This Timer module uses an NT Thread to simulate the timer-tick driven
24 #include <Protocol/Timer.h>
25 #include <Protocol/Cpu.h>
26 #include <Library/DebugLib.h>
27 #include <Library/UefiDriverEntryPoint.h>
28 #include <Library/WinNtLib.h>
29 #include <Library/UefiBootServicesTableLib.h>
33 // Legal timer value range in 100 ns units
35 #define TIMER_MINIMUM_VALUE 0
36 #define TIMER_MAXIMUM_VALUE (0x100000000 - 1)
39 // Default timer value in 100 ns units (10 ms)
41 #define DEFAULT_TIMER_TICK_DURATION 100000
44 // Function Prototypes
48 WinNtTimerDriverInitialize (
49 IN EFI_HANDLE ImageHandle
,
50 IN EFI_SYSTEM_TABLE
*SystemTable
56 TODO: Add function description
60 ImageHandle - TODO: add argument description
61 SystemTable - TODO: add argument description
65 TODO: add return values
72 WinNtTimerDriverRegisterHandler (
73 IN EFI_TIMER_ARCH_PROTOCOL
*This
,
74 IN EFI_TIMER_NOTIFY NotifyFunction
80 TODO: Add function description
84 This - TODO: add argument description
85 NotifyFunction - TODO: add argument description
89 TODO: add return values
96 WinNtTimerDriverSetTimerPeriod (
97 IN EFI_TIMER_ARCH_PROTOCOL
*This
,
104 TODO: Add function description
108 This - TODO: add argument description
109 TimerPeriod - TODO: add argument description
113 TODO: add return values
120 WinNtTimerDriverGetTimerPeriod (
121 IN EFI_TIMER_ARCH_PROTOCOL
*This
,
122 OUT UINT64
*TimerPeriod
128 TODO: Add function description
132 This - TODO: add argument description
133 TimerPeriod - TODO: add argument description
137 TODO: add return values
144 WinNtTimerDriverGenerateSoftInterrupt (
145 IN EFI_TIMER_ARCH_PROTOCOL
*This
151 TODO: Add function description
155 This - TODO: add argument description
159 TODO: add return values