2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License version 2 as
4 * published by the Free Software Foundation.
6 * This program is distributed in the hope that it will be useful,
7 * but WITHOUT ANY WARRANTY; without even the implied warranty of
8 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9 * GNU General Public License for more details.
11 * Copyright (C) 2012 ARM Limited
14 #ifndef __ASM_ARM_PSCI_H
15 #define __ASM_ARM_PSCI_H
17 #define PSCI_POWER_STATE_TYPE_STANDBY 0
18 #define PSCI_POWER_STATE_TYPE_POWER_DOWN 1
20 struct psci_power_state
{
26 struct psci_operations
{
27 int (*cpu_suspend
)(struct psci_power_state state
,
28 unsigned long entry_point
);
29 int (*cpu_off
)(struct psci_power_state state
);
30 int (*cpu_on
)(unsigned long cpuid
, unsigned long entry_point
);
31 int (*migrate
)(unsigned long cpuid
);
34 extern struct psci_operations psci_ops
;
35 extern struct smp_operations psci_smp_ops
;
37 #ifdef CONFIG_ARM_PSCI
39 bool psci_smp_available(void);
41 static inline void psci_init(void) { }
42 static inline bool psci_smp_available(void) { return false; }
45 #endif /* __ASM_ARM_PSCI_H */