diff options
author | Marco Peereboom <marco@cvs.openbsd.org> | 2006-12-26 23:58:09 +0000 |
---|---|---|
committer | Marco Peereboom <marco@cvs.openbsd.org> | 2006-12-26 23:58:09 +0000 |
commit | 3ec9d9f20a5eb8e2025c6a5eba8af1ebae8c222e (patch) | |
tree | bbac69a627ad9988c23c4bb304bd82b068e66355 /sys/dev/acpi/acpidev.h | |
parent | 419e67afcb1e33df77313f59d0ae8b207f0ecf2b (diff) |
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.
Diffstat (limited to 'sys/dev/acpi/acpidev.h')
-rw-r--r-- | sys/dev/acpi/acpidev.h | 5 |
1 files changed, 4 insertions, 1 deletions
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 <marco@openbsd.org> * Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com> @@ -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 |