aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/acpi
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2013-02-22 11:48:57 +0100
committerJan Beulich <jbeulich@suse.com>2013-02-22 11:48:57 +0100
commit62d1a69a4e9f435999af22b7e31d7ee8910f5de0 (patch)
tree18ccac8cf815b8175cdaffeecd7c27509f86096c /xen/include/acpi
parenta37186e1c2b3e9462cce65d330a71c3afbde4b9b (diff)
downloadxen-62d1a69a4e9f435999af22b7e31d7ee8910f5de0.tar.gz
xen-62d1a69a4e9f435999af22b7e31d7ee8910f5de0.tar.bz2
xen-62d1a69a4e9f435999af22b7e31d7ee8910f5de0.zip
ACPI: support v5 (reduced HW) sleep interface
Note that this also fixes a broken input check in acpi_enter_sleep() (previously validating the sleep->pm1[ab]_cnt_val relationship based on acpi_sinfo.pm1b_cnt_val, which however gets set only subsequently). Also adjust a few minor issues with the pre-v5 handling in acpi_fadt_parse_sleep_info(). Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/include/acpi')
-rw-r--r--xen/include/acpi/aclocal.h2
-rw-r--r--xen/include/acpi/actbl.h7
2 files changed, 9 insertions, 0 deletions
diff --git a/xen/include/acpi/aclocal.h b/xen/include/acpi/aclocal.h
index afa4f6409c..16e234f0de 100644
--- a/xen/include/acpi/aclocal.h
+++ b/xen/include/acpi/aclocal.h
@@ -128,6 +128,8 @@ struct acpi_bit_register_info {
#define ACPI_REGISTER_PM_TIMER 0x07
#define ACPI_REGISTER_PROCESSOR_BLOCK 0x08
#define ACPI_REGISTER_SMI_COMMAND_BLOCK 0x09
+#define ACPI_REGISTER_SLEEP_CONTROL 0x0a
+#define ACPI_REGISTER_SLEEP_STATUS 0x0b
/* Masks used to access the bit_registers */
diff --git a/xen/include/acpi/actbl.h b/xen/include/acpi/actbl.h
index 2f31d3a0c8..856945d381 100644
--- a/xen/include/acpi/actbl.h
+++ b/xen/include/acpi/actbl.h
@@ -309,6 +309,13 @@ enum acpi_prefered_pm_profiles {
PM_TABLET = 8
};
+/* Values for sleep_status and sleep_control registers (V5 FADT) */
+
+#define ACPI_X_WAKE_STATUS 0x80
+#define ACPI_X_SLEEP_TYPE_MASK 0x1C
+#define ACPI_X_SLEEP_TYPE_POSITION 0x02
+#define ACPI_X_SLEEP_ENABLE 0x20
+
/* Reset to default packing */
#pragma pack()