History

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.

Bin Shi committed 12 years ago

Commit 15820431 parent 5e01dc72 files · +11 −2Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/apm_bios.h+2−0
@@ -67,6 +67,8 @@ struct apm_bios_info { · 66 unmodified lines
6767 #define APM_USER_SUSPEND 0x000a
6868 #define APM_STANDBY_RESUME 0x000b
6969 #define APM_CAPABILITY_CHANGE 0x000c
70+#define APM_USER_HIBERNATION 0x000d
71+#define APM_HIBERNATION_RESUME 0x000e
7072
7173 /*
7274 * Error codes