From 9feddf7310b0081ed0217a504a11ae9f3c0b4a4c Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Fri, 17 Feb 2006 17:36:00 +0000 Subject: Add a generic delay function as per the ACPI spec. from jordan@ --- sys/dev/acpi/acpi.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'sys/dev/acpi/acpi.c') 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 * Copyright (c) 2005 Jordan Hargrave @@ -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) -- cgit v1.2.3