Andrew Scull | 550d99b | 2020-02-10 13:55:00 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2020 The Hafnium Authors. |
| 3 | * |
Andrew Walbran | e959ec1 | 2020-06-17 15:01:09 +0100 | [diff] [blame] | 4 | * Use of this source code is governed by a BSD-style |
| 5 | * license that can be found in the LICENSE file or at |
| 6 | * https://opensource.org/licenses/BSD-3-Clause. |
Andrew Scull | 550d99b | 2020-02-10 13:55:00 +0000 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | #pragma once |
| 10 | |
| 11 | #include "hf/vcpu.h" |
| 12 | |
| 13 | /** |
| 14 | * Called before the PSCI_CPU_SUSPEND SMC is forwarded. The power state is |
| 15 | * provided to allow actions to be taken based on the implementation defined |
| 16 | * meaning of this field. |
| 17 | */ |
| 18 | void plat_psci_cpu_suspend(uint32_t power_state); |
| 19 | |
| 20 | /** Called when a CPU resumes from being off or suspended. */ |
| 21 | void plat_psci_cpu_resume(void); |