summaryrefslogtreecommitdiff
path: root/sys/dev/acpi/acpivar.h
diff options
context:
space:
mode:
authorJordan Hargrave <jordan@cvs.openbsd.org>2010-10-26 20:51:36 +0000
committerJordan Hargrave <jordan@cvs.openbsd.org>2010-10-26 20:51:36 +0000
commit8a549178ee06b6828240c981a6bdd4e3f523609d (patch)
treec22eff45c0dbe78f7a901edcf6d3eeed44d87eca /sys/dev/acpi/acpivar.h
parent3bb6a8a27129d651d3756909e6668716c44c6243 (diff)
Add task queue for ACPI gpe and notify handlers
This fixes eject on Dell Latitude dock and an issue on the Dell Mini battery update. ok deraadt
Diffstat (limited to 'sys/dev/acpi/acpivar.h')
-rw-r--r--sys/dev/acpi/acpivar.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/dev/acpi/acpivar.h b/sys/dev/acpi/acpivar.h
index 2d8430bb394..e01bf914759 100644
--- a/sys/dev/acpi/acpivar.h
+++ b/sys/dev/acpi/acpivar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpivar.h,v 1.66 2010/08/08 20:45:18 kettenis Exp $ */
+/* $OpenBSD: acpivar.h,v 1.67 2010/10/26 20:51:35 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;
@@ -333,6 +340,9 @@ 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 *);
+
#endif
#endif /* !_ACPI_WAKECODE */