hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/include/uapi/linux/psci.h
....@@ -49,8 +49,11 @@
4949
5050 #define PSCI_1_0_FN_PSCI_FEATURES PSCI_0_2_FN(10)
5151 #define PSCI_1_0_FN_SYSTEM_SUSPEND PSCI_0_2_FN(14)
52
+#define PSCI_1_0_FN_SET_SUSPEND_MODE PSCI_0_2_FN(15)
53
+#define PSCI_1_1_FN_SYSTEM_RESET2 PSCI_0_2_FN(18)
5254
5355 #define PSCI_1_0_FN64_SYSTEM_SUSPEND PSCI_0_2_FN64(14)
56
+#define PSCI_1_1_FN64_SYSTEM_RESET2 PSCI_0_2_FN64(18)
5457
5558 /* PSCI v0.2 power state encoding for CPU_SUSPEND function */
5659 #define PSCI_0_2_POWER_STATE_ID_MASK 0xffff
....@@ -97,6 +100,10 @@
97100 #define PSCI_1_0_FEATURES_CPU_SUSPEND_PF_MASK \
98101 (0x1 << PSCI_1_0_FEATURES_CPU_SUSPEND_PF_SHIFT)
99102
103
+#define PSCI_1_0_OS_INITIATED BIT(0)
104
+#define PSCI_1_0_SUSPEND_MODE_PC 0
105
+#define PSCI_1_0_SUSPEND_MODE_OSI 1
106
+
100107 /* PSCI return values (inclusive of all PSCI versions) */
101108 #define PSCI_RET_SUCCESS 0
102109 #define PSCI_RET_NOT_SUPPORTED -1