mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-03 17:51:23 +00:00

The FF-A spec 1.2 reserves the following ranges for identifying FF-A calls: 0x84000060-0x840000FF: FF-A 32-bit calls 0xC4000060-0xC40000FF: FF-A 64-bit calls. Use the range identification according to the spec and allow calls that are currently out of the range(eg. FFA_MSG_SEND_DIRECT_REQ2) to be identified correctly. Acked-by: Will Deacon <will@kernel.org> Signed-off-by: Sebastian Ene <sebastianene@google.com> Reviewed-by: Sudeep Holla <sudeep.holla@arm.com> Tested-by: Sudeep Holla <sudeep.holla@arm.com> Acked-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20240613132035.1070360-4-sebastianene@google.com Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
18 lines
406 B
C
18 lines
406 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (C) 2022 - Google LLC
|
|
* Author: Andrew Walbran <qwandor@google.com>
|
|
*/
|
|
#ifndef __KVM_HYP_FFA_H
|
|
#define __KVM_HYP_FFA_H
|
|
|
|
#include <asm/kvm_host.h>
|
|
|
|
#define FFA_MIN_FUNC_NUM 0x60
|
|
#define FFA_MAX_FUNC_NUM 0xFF
|
|
|
|
int hyp_ffa_init(void *pages);
|
|
bool kvm_host_ffa_handler(struct kvm_cpu_context *host_ctxt, u32 func_id);
|
|
|
|
#endif /* __KVM_HYP_FFA_H */
|