diff options
author | Marco Peereboom <marco@cvs.openbsd.org> | 2006-02-17 17:36:00 +0000 |
---|---|---|
committer | Marco Peereboom <marco@cvs.openbsd.org> | 2006-02-17 17:36:00 +0000 |
commit | 9feddf7310b0081ed0217a504a11ae9f3c0b4a4c (patch) | |
tree | 73405ec1bb828663137377126329105d066da183 /sys/dev/acpi/acpi.c | |
parent | 91e797ab84bb2ad882731a0c53fd78b2d004dfe7 (diff) |
Add a generic delay function as per the ACPI spec.
from jordan@
Diffstat (limited to 'sys/dev/acpi/acpi.c')
-rw-r--r-- | sys/dev/acpi/acpi.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c index b8354d672da..aadd9d226aa 100644 --- a/sys/dev/acpi/acpi.c +++ b/sys/dev/acpi/acpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpi.c,v 1.31 2006/02/17 06:57:58 marco Exp $ */ +/* $OpenBSD: acpi.c,v 1.32 2006/02/17 17:35:59 marco Exp $ */ /* * Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com> * Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org> @@ -98,6 +98,13 @@ int acpi_s5, acpi_evindex, icount; #define pch(x) (((x)>=' ' && (x)<='z') ? (x) : ' ') +void +acpi_delay(struct acpi_softc *sc, int64_t uSecs) +{ + /* XXX this needs to become a tsleep later */ + delay(uSecs); +} + int acpi_gasio(struct acpi_softc *sc, int iodir, int iospace, uint64_t address, int access_size, int len, void *buffer) |