mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
xen/arm: Move __PSCI* from traps.c to the header
These defines will be used to create the fake PSCI node in dom0 device tree. Signed-off-by: Julien Grall <julien.grall@linaro.org> Acked-by: Ian Campbell <ian.campbell@citrix.com>
This commit is contained in:
1 parent
50718fc3c5
commit
e6fb0c4b80
2 files changed
+5
-5
No files matched your search
@@ -848,11 +848,6 @@ static arm_hypercall_t arm_hypercall_table[] = {
|
||||
HYPERCALL_ARM(vcpu_op, 3),
|
||||
};
|
||||
|
||||
#define __PSCI_cpu_suspend 0
|
||||
#define __PSCI_cpu_off 1
|
||||
#define __PSCI_cpu_on 2
|
||||
#define __PSCI_migrate 3
|
||||
|
||||
typedef int (*arm_psci_fn_t)(uint32_t, register_t);
|
||||
|
||||
typedef struct {
|
||||
|
||||
@@ -6,6 +6,11 @@
|
||||
#define PSCI_EINVAL -2
|
||||
#define PSCI_DENIED -3
|
||||
|
||||
#define __PSCI_cpu_suspend 0
|
||||
#define __PSCI_cpu_off 1
|
||||
#define __PSCI_cpu_on 2
|
||||
#define __PSCI_migrate 3
|
||||
|
||||
int do_psci_cpu_on(uint32_t vcpuid, register_t entry_point);
|
||||
int do_psci_cpu_off(uint32_t power_state);
|
||||
int do_psci_cpu_suspend(uint32_t power_state, register_t entry_point);
|
||||
|
||||