From 3ec9d9f20a5eb8e2025c6a5eba8af1ebae8c222e Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Tue, 26 Dec 2006 23:58:09 +0000 Subject: Add polling to devices that require it such as acpibat and acpitz. Use the same tsleep/wakeup mechanism as the interrupt code to keep it non- concurrent. --- sys/dev/acpi/acpidev.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys/dev/acpi/acpidev.h') diff --git a/sys/dev/acpi/acpidev.h b/sys/dev/acpi/acpidev.h index 4834910f2fb..d1183cc6eda 100644 --- a/sys/dev/acpi/acpidev.h +++ b/sys/dev/acpi/acpidev.h @@ -1,4 +1,4 @@ -/* $OpenBSD: acpidev.h,v 1.13 2006/12/23 17:46:39 deraadt Exp $ */ +/* $OpenBSD: acpidev.h,v 1.14 2006/12/26 23:58:08 marco Exp $ */ /* * Copyright (c) 2005 Marco Peereboom * Copyright (c) 2005 Thorsten Lockert @@ -24,6 +24,9 @@ #define DEVNAME(s) ((s)->sc_dev.dv_xname) +#define ACPIDEV_NOPOLL 0 +#define ACPIDEV_POLL 1 + /* * _BIF (Battery InFormation) * Arguments: none -- cgit v1.2.3