blob: a016fba424545d42d9ac8692779a0ab61e9c6752 [file] [log] [blame]
Andrew Scull550d99b2020-02-10 13:55:00 +00001/*
2 * Copyright 2020 The Hafnium Authors.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * https://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#pragma once
18
19#include "hf/vcpu.h"
20
21/**
22 * Called before the PSCI_CPU_SUSPEND SMC is forwarded. The power state is
23 * provided to allow actions to be taken based on the implementation defined
24 * meaning of this field.
25 */
26void plat_psci_cpu_suspend(uint32_t power_state);
27
28/** Called when a CPU resumes from being off or suspended. */
29void plat_psci_cpu_resume(void);