Commit | Line | Data |
---|---|---|
e790f1de WD |
1 | /* |
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. | |
5 | * | |
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. | |
10 | * | |
11 | * Copyright (C) 2013 ARM Limited | |
12 | */ | |
13 | ||
14 | #ifndef __ASM_PSCI_H | |
15 | #define __ASM_PSCI_H | |
16 | ||
17 | #define PSCI_POWER_STATE_TYPE_STANDBY 0 | |
18 | #define PSCI_POWER_STATE_TYPE_POWER_DOWN 1 | |
19 | ||
20 | struct psci_power_state { | |
21 | u16 id; | |
22 | u8 type; | |
23 | u8 affinity_level; | |
24 | }; | |
25 | ||
6fa3eb70 | 26 | |
e790f1de WD |
27 | struct psci_operations { |
28 | int (*cpu_suspend)(struct psci_power_state state, | |
29 | unsigned long entry_point); | |
30 | int (*cpu_off)(struct psci_power_state state); | |
31 | int (*cpu_on)(unsigned long cpuid, unsigned long entry_point); | |
32 | int (*migrate)(unsigned long cpuid); | |
6fa3eb70 S |
33 | int (*affinity_info)(unsigned long target_affinity, |
34 | unsigned long lowest_affinity_level); | |
35 | int (*migrate_info_type)(void); | |
e790f1de WD |
36 | }; |
37 | ||
38 | extern struct psci_operations psci_ops; | |
39 | ||
40 | int psci_init(void); | |
41 | ||
42 | #endif /* __ASM_PSCI_H */ |