summaryrefslogtreecommitdiff
path: root/sys/dev/acpi/acpivar.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/acpi/acpivar.h')
-rw-r--r--sys/dev/acpi/acpivar.h22
1 files changed, 14 insertions, 8 deletions
diff --git a/sys/dev/acpi/acpivar.h b/sys/dev/acpi/acpivar.h
index 1e4752d3407..e9a172b5681 100644
--- a/sys/dev/acpi/acpivar.h
+++ b/sys/dev/acpi/acpivar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpivar.h,v 1.68 2010/10/31 21:52:46 guenther Exp $ */
+/* $OpenBSD: acpivar.h,v 1.69 2011/01/02 04:56:57 jordan Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
*
@@ -82,6 +82,13 @@ struct acpi_q {
u_int8_t q_data[0];
};
+struct acpi_taskq {
+ SIMPLEQ_ENTRY(acpi_taskq) next;
+ void (*handler)(void *, int);
+ void *arg0;
+ int arg1;
+};
+
struct acpi_wakeq {
SIMPLEQ_ENTRY(acpi_wakeq) q_next;
struct aml_node *q_node;
@@ -206,12 +213,6 @@ struct acpi_softc {
void *sc_interrupt;
- int sc_powerbtn;
- int sc_sleepbtn;
-
- int sc_sleepmode;
- int sc_powerdown;
-
struct rwlock sc_lck;
struct {
@@ -241,7 +242,6 @@ struct acpi_softc {
struct acpi_bat_head sc_bat;
struct timeout sc_dev_timeout;
- int sc_poll;
int sc_revision;
@@ -333,6 +333,12 @@ int acpi_matchhids(struct acpi_attach_args *, const char *[], const char *);
int acpi_record_event(struct acpi_softc *, u_int);
+void acpi_addtask(struct acpi_softc *, void (*)(void *, int), void *, int);
+int acpi_dotask(struct acpi_softc *);
+
+void acpi_powerdown_task(void *, int);
+void acpi_sleep_task(void *, int);
+
#endif
#endif /* !_ACPI_WAKECODE */