3 Copyright (c) 2006, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 UNIX Emulation Architectural Protocol Driver as defined in Tiano.
19 This Timer module uses an UNIX Thread to simulate the timer-tick driven
31 // Legal timer value range in 100 ns units
33 #define TIMER_MINIMUM_VALUE 0
34 #define TIMER_MAXIMUM_VALUE (0x100000000ULL - 1)
37 // Default timer value in 100 ns units (50 ms)
39 #define DEFAULT_TIMER_TICK_DURATION 500000
42 // Function Prototypes
46 UnixTimerDriverInitialize (
47 IN EFI_HANDLE ImageHandle
,
48 IN EFI_SYSTEM_TABLE
*SystemTable
54 TODO: Add function description
58 ImageHandle - TODO: add argument description
59 SystemTable - TODO: add argument description
63 TODO: add return values
70 UnixTimerDriverRegisterHandler (
71 IN EFI_TIMER_ARCH_PROTOCOL
*This
,
72 IN EFI_TIMER_NOTIFY NotifyFunction
78 TODO: Add function description
82 This - TODO: add argument description
83 NotifyFunction - TODO: add argument description
87 TODO: add return values
94 UnixTimerDriverSetTimerPeriod (
95 IN EFI_TIMER_ARCH_PROTOCOL
*This
,
102 TODO: Add function description
106 This - TODO: add argument description
107 TimerPeriod - TODO: add argument description
111 TODO: add return values
118 UnixTimerDriverGetTimerPeriod (
119 IN EFI_TIMER_ARCH_PROTOCOL
*This
,
120 OUT UINT64
*TimerPeriod
126 TODO: Add function description
130 This - TODO: add argument description
131 TimerPeriod - TODO: add argument description
135 TODO: add return values
142 UnixTimerDriverGenerateSoftInterrupt (
143 IN EFI_TIMER_ARCH_PROTOCOL
*This
149 TODO: Add function description
153 This - TODO: add argument description
157 TODO: add return values