xref: /openbmc/linux/arch/arm64/kvm/hyp/include/nvhe/ffa.h (revision 18afb028)
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 0x7F
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