blob: 9ea5c2d1e941a6aac7f264bc229e94a44716f60e [file] [log] [blame]
Andrew Scull550d99b2020-02-10 13:55:00 +00001/*
2 * Copyright 2020 The Hafnium Authors.
3 *
Andrew Walbrane959ec12020-06-17 15:01:09 +01004 * 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 Scull550d99b2020-02-10 13:55:00 +00007 */
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 */
18void plat_psci_cpu_suspend(uint32_t power_state);
19
20/** Called when a CPU resumes from being off or suspended. */
21void plat_psci_cpu_resume(void);