diff options
author | Emmanuel Vadot <manu@FreeBSD.org> | 2023-02-17 13:49:52 +0000 |
---|---|---|
committer | Emmanuel Vadot <manu@FreeBSD.org> | 2023-02-21 08:21:04 +0000 |
commit | 81e5b344273ca11808b4e694d684fd0c09a6a5f7 (patch) | |
tree | cbcdc8e3a79b38a5bb33bc73a6a4975510cb2a79 | |
parent | 8f39cbf4f30c9a8cd3f593dc2b373a289785d4b6 (diff) | |
download | src-81e5b344273ca11808b4e694d684fd0c09a6a5f7.tar.gz src-81e5b344273ca11808b4e694d684fd0c09a6a5f7.zip |
linuxkpi: Add more suspend defines
Needed by drm 5.15-lts
Sponsored by: Beckhoff Automation GmbH & Co. KG
(cherry picked from commit a0fdaf9a7b34b6f8fdab747f7a198158e66b57ab)
-rw-r--r-- | sys/compat/linuxkpi/common/include/linux/suspend.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/suspend.h b/sys/compat/linuxkpi/common/include/linux/suspend.h index 8458a6f6d4c5..8ceafaf35f56 100644 --- a/sys/compat/linuxkpi/common/include/linux/suspend.h +++ b/sys/compat/linuxkpi/common/include/linux/suspend.h @@ -9,6 +9,10 @@ extern suspend_state_t pm_suspend_target_state; #define PM_SUSPEND_ON 0 #define PM_SUSPEND_TO_IDLE 1 +#define PM_SUSPEND_STANDBY 2 +#define PM_SUSPEND_MEM 3 +#define PM_SUSPEND_MIN PM_SUSPEND_TO_IDLE +#define PM_SUSPEND_MAX 4 static inline int pm_suspend_via_firmware() |