blob: 479c1cd02718dfe1a631fec871f6c42ad9a6ceb2 [file] [log] [blame]
Andrew Walbran33645652019-04-15 12:29:31 +01001/*
2 * Copyright 2018 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 <stdint.h>
20
21#include "hf/arch/types.h"
22
23#include "hf/cpu.h"
24
25bool psci_handler(struct vcpu *vcpu, uint32_t func, uintreg_t arg0,
26 uintreg_t arg1, uintreg_t arg2, uintreg_t *ret,
27 struct vcpu **next);