summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/apm_bios.h
diff options
context:
space:
mode:
authorBin Shi <Bin.Shi@csr.com>2014-01-03 14:08:54 +0800
committerJiri Kosina <jkosina@suse.cz>2014-01-07 13:50:28 +0100
commit158204397034f088bfd505eeee281f7072da1c24 (patch)
treebd97dcca3c13c7ebf58c252b76ca1df9e16f4254 /include/uapi/linux/apm_bios.h
parent5e01dc7b26d9f24f39abace5da98ccbd6a5ceb52 (diff)
downloadlinux-stable-158204397034f088bfd505eeee281f7072da1c24.tar.gz
linux-stable-158204397034f088bfd505eeee281f7072da1c24.tar.bz2
linux-stable-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