#include "acpi.h"
#include "accommon.h"
Go to the source code of this file.
◆ _COMPONENT
◆ EXPORT_ACPI_INTERFACES
#define EXPORT_ACPI_INTERFACES |
◆ AcpiGetTimer()
Definition at line 106 of file hwtimer.c.
108{
111
112
114
115
116 if (!Ticks)
117 {
119 }
120
121
122
123 if (!AcpiGbl_FADT.XPmTimerBlock.Address)
124 {
126 }
127
130 {
131
132
133 *Ticks = (
UINT32) TimerValue;
134 }
135
137}
unsigned long long UINT64
#define return_ACPI_STATUS(s)
#define ACPI_FUNCTION_TRACE(a)
ACPI_STATUS AcpiHwRead(UINT64 *Value, ACPI_GENERIC_ADDRESS *Reg)
ACPI_STATUS AcpiGetTimer(UINT32 *Ticks)
Referenced by AcpiGetTimer().
◆ AcpiGetTimerDuration()
Definition at line 172 of file hwtimer.c.
176{
180
181
183
184
185 if (!TimeElapsed)
186 {
188 }
189
190
191
192 if (!AcpiGbl_FADT.XPmTimerBlock.Address)
193 {
195 }
196
198 {
199 *TimeElapsed = 0;
201 }
202
203
204
205
206
209 {
211 {
212
213
214 DeltaTicks |= (
UINT64) 1 << 24;
215 }
216 else
217 {
218
219
220 DeltaTicks |= (
UINT64) 1 << 32;
221 }
222 }
223 DeltaTicks -= StartTicks;
224
225
226
227
228
229
230
233
234 *TimeElapsed = (
UINT32) Quotient;
236}
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 UINT8 *Slp_TypB ACPI_PHYSICAL_ADDRESS PhysicalAddress64 UINT32 EndTicks
#define ACPI_FADT_32BIT_TIMER
#define ACPI_USEC_PER_SEC
#define ACPI_PM_TIMER_FREQUENCY
ACPI_STATUS AcpiUtShortDivide(UINT64 InDividend, UINT32 Divisor, UINT64 *OutQuotient, UINT32 *OutRemainder)
ACPI_STATUS AcpiGetTimerDuration(UINT32 StartTicks, UINT32 EndTicks, UINT32 *TimeElapsed)
Referenced by AcpiGetTimerDuration().
◆ AcpiGetTimerResolution()
Definition at line 67 of file hwtimer.c.
69{
71
72
74 {
76 }
77
79 {
81 }
82 else
83 {
85 }
86
88}
ACPI_STATUS AcpiGetTimerResolution(UINT32 *Resolution)
Referenced by AcpiGetTimerResolution().