summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/apm_bios.h
diff options
context:
space:
mode:
authorBin Shi2014-01-03 07:08:54 +0100
committerJiri Kosina2014-01-07 13:50:28 +0100
commit158204397034f088bfd505eeee281f7072da1c24 (patch)
treebd97dcca3c13c7ebf58c252b76ca1df9e16f4254 /include/uapi/linux/apm_bios.h
parentLinux 3.12 (diff)
downloadkernel-qcow2-linux-158204397034f088bfd505eeee281f7072da1c24.tar.gz
kernel-qcow2-linux-158204397034f088bfd505eeee281f7072da1c24.tar.xz
kernel-qcow2-linux-158204397034f088bfd505eeee281f7072da1c24.zip
apm-emulation: add hibernation APM events to support suspend2disk
Some embedded systems use hibernation for fast boot. and in it, some software components need to handle specific things before hibernation and after restore. So it needs to capture the apm status about these pm events. Currently apm just supports suspend to ram, but not suspend to disk, so here add logic about hibernation apm events. Signed-off-by: Bin Shi <Bin.Shi@csr.com> Signed-off-by: Barry Song <Baohua.Song@csr.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include/uapi/linux/apm_bios.h')
-rw-r--r--include/uapi/linux/apm_bios.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/apm_bios.h b/include/uapi/linux/apm_bios.h
index 724f409adae0..df79bca1b898 100644
--- a/include/uapi/linux/apm_bios.h
+++ b/include/uapi/linux/apm_bios.h
@@ -67,6 +67,8 @@ struct apm_bios_info {
#define APM_USER_SUSPEND 0x000a
#define APM_STANDBY_RESUME 0x000b
#define APM_CAPABILITY_CHANGE 0x000c
+#define APM_USER_HIBERNATION 0x000d
+#define APM_HIBERNATION_RESUME 0x000e
/*
* Error codes