summaryrefslogtreecommitdiff
path: root/sys/dev/acpi/dsdt.h
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2012-07-16 15:27:12 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2012-07-16 15:27:12 +0000
commited3c79f0b292ba248262133ed5e2e3805a7a59a7 (patch)
treea8820d5931efc79edf688ebae61ad6ad23863231 /sys/dev/acpi/dsdt.h
parentefa923b1ebe2949f7a92c771d6c0e053e8a5afea (diff)
Add shorter form function aml_node_setval() for setting an int
on an AML node. Shortens the tricky code in a lot of callers. Earlier version seen by pirofti and kettenis.
Diffstat (limited to 'sys/dev/acpi/dsdt.h')
-rw-r--r--sys/dev/acpi/dsdt.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/acpi/dsdt.h b/sys/dev/acpi/dsdt.h
index fc0f1a7696c..9333cb4ef32 100644
--- a/sys/dev/acpi/dsdt.h
+++ b/sys/dev/acpi/dsdt.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: dsdt.h,v 1.59 2011/06/03 03:54:19 jordan Exp $ */
+/* $OpenBSD: dsdt.h,v 1.60 2012/07/16 15:27:11 deraadt Exp $ */
/*
* Copyright (c) 2005 Marco Peereboom <marco@openbsd.org>
*
@@ -62,7 +62,9 @@ void aml_register_notify(struct aml_node *, const char *,
int);
int aml_evalnode(struct acpi_softc *, struct aml_node *,
- int , struct aml_value *, struct aml_value *);
+ int, struct aml_value *, struct aml_value *);
+int aml_node_setval(struct acpi_softc *, struct aml_node *,
+ int64_t);
int aml_evalname(struct acpi_softc *, struct aml_node *,
const char *, int, struct aml_value *,
struct aml_value *);