summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/acpivar.h
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2004-04-21 00:36:15 +0000
committernjl <njl@FreeBSD.org>2004-04-21 00:36:15 +0000
commit6c165fc101d50d0cf13f2fff5c68275e0309e1f4 (patch)
tree1600fdf84bd788b92df9c2b59e92e2a0175dd1ae /sys/dev/acpica/acpivar.h
parentb5d0f5636118aa73b9360cde461a82e0c05557df (diff)
downloadFreeBSD-src-6c165fc101d50d0cf13f2fff5c68275e0309e1f4.zip
FreeBSD-src-6c165fc101d50d0cf13f2fff5c68275e0309e1f4.tar.gz
Move the timer difference convenience function from acpi_cpu.c to make it
globally available. acpi_TimerDelta() subtracts two readings from the ACPI PM timer and returns the difference. It properly distinguishes between 24-bit and 32-bit timers and handles wraparound.
Diffstat (limited to 'sys/dev/acpica/acpivar.h')
-rw-r--r--sys/dev/acpica/acpivar.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/acpica/acpivar.h b/sys/dev/acpica/acpivar.h
index 10fa91a..99b6ac7 100644
--- a/sys/dev/acpica/acpivar.h
+++ b/sys/dev/acpica/acpivar.h
@@ -233,6 +233,7 @@ extern BOOLEAN acpi_BatteryIsPresent(device_t dev);
extern BOOLEAN acpi_MatchHid(device_t dev, char *hid);
extern ACPI_STATUS acpi_GetHandleInScope(ACPI_HANDLE parent, char *path,
ACPI_HANDLE *result);
+extern uint32_t acpi_TimerDelta(uint32_t end, uint32_t start);
extern ACPI_BUFFER *acpi_AllocBuffer(int size);
extern ACPI_STATUS acpi_ConvertBufferToInteger(ACPI_BUFFER *bufp,
UINT32 *number);
OpenPOWER on IntegriCloud