1 /* Public Domain */ 2 3 #ifndef _SYS_DEV_FDT_PSCIVAR_H_ 4 #define _SYS_DEV_FDT_PSCIVAR_H_ 5 6 #define PSCI_SUCCESS 0 7 #define PSCI_NOT_SUPPORTED -1 8 9 #define PSCI_METHOD_NONE 0 10 #define PSCI_METHOD_HVC 1 11 #define PSCI_METHOD_SMC 2 12 13 int psci_can_suspend(void); 14 15 int32_t psci_system_suspend(register_t, register_t); 16 int32_t psci_cpu_on(register_t, register_t, register_t); 17 int32_t psci_cpu_off(void); 18 int32_t psci_cpu_suspend(register_t, register_t, register_t); 19 void psci_flush_bp(void); 20 int psci_method(void); 21 22 int32_t smccc(uint32_t, register_t, register_t, register_t); 23 24 void smccc_enable_arch_workaround_2(void); 25 int smccc_needs_arch_workaround_3(void); 26 27 #endif /* _SYS_DEV_FDT_PSCIVAR_H_ */ 28