xref: /linux/arch/arm64/kvm/hyp/include/nvhe/ffa.h (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * Copyright (C) 2022 - Google LLC
4  * Author: Andrew Walbran <qwandor@google.com>
5  */
6 #ifndef __KVM_HYP_FFA_H
7 #define __KVM_HYP_FFA_H
8 
9 #include <asm/kvm_host.h>
10 
11 #define FFA_MIN_FUNC_NUM 0x60
12 #define FFA_MAX_FUNC_NUM 0xFF
13 
14 int hyp_ffa_init(void *pages);
15 bool kvm_host_ffa_handler(struct kvm_cpu_context *host_ctxt, u32 func_id);
16 
17 #endif /* __KVM_HYP_FFA_H */
18