aboutsummaryrefslogtreecommitdiff
path: root/acpi/mig-mutate.h
diff options
context:
space:
mode:
authorDamien Zammit <damien@zamaudio.com>2022-09-12 10:39:30 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-09-12 20:32:24 +0200
commit160fb63ee0c72f165ab131c4d725d9badaa646ab (patch)
treeffb56a39d40b8e42213990ba5ce6f136eb9431ec /acpi/mig-mutate.h
parent22676a3a6e4d99e13ee75c1ad2f4976ae6b0ce52 (diff)
downloadhurd-160fb63ee0c72f165ab131c4d725d9badaa646ab.tar.gz
hurd-160fb63ee0c72f165ab131c4d725d9badaa646ab.tar.bz2
hurd-160fb63ee0c72f165ab131c4d725d9badaa646ab.zip
acpi: Link translator to libacpica and provide RPCs
Provides two new acpi RPCs to sleep the machine and to get the irq of any pci device. ACPI mode is enabled by default when the translator is started. NB: Merging this commit means libacpica is a build dep. Message-Id: <20220912103837.556815-2-damien@zamaudio.com>
Diffstat (limited to 'acpi/mig-mutate.h')
-rw-r--r--acpi/mig-mutate.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/acpi/mig-mutate.h b/acpi/mig-mutate.h
new file mode 100644
index 00000000..1ee33e5f
--- /dev/null
+++ b/acpi/mig-mutate.h
@@ -0,0 +1,28 @@
+/*
+ Copyright (C) 2017 Free Software Foundation, Inc.
+ Written by Michael I. Bushnell, p/BSG.
+
+ This file is part of the GNU Hurd.
+
+ The GNU Hurd is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License as
+ published by the Free Software Foundation; either version 2, or (at
+ your option) any later version.
+
+ The GNU Hurd is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with the GNU Hurd. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+/* Only CPP macro definitions should go in this file. */
+
+#define ACPI_IMPORTS \
+ import "../libnetfs/priv.h"; \
+
+#define ACPI_INTRAN protid_t begin_using_protid_port (acpi_t)
+#define ACPI_INTRAN_PAYLOAD protid_t begin_using_protid_payload
+#define ACPI_DESTRUCTOR end_using_protid_port (protid_t)