Merge tag 'io_uring-6.11-20240802' of git://git.kernel.dk/linux
[linux.git] / drivers / firmware / arm_ffa / common.h
blob9c6425a81d0d5b7c56935ea4ed43f2c3904d37a1
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Copyright (C) 2021 ARM Ltd.
4 */
6 #ifndef _FFA_COMMON_H
7 #define _FFA_COMMON_H
9 #include <linux/arm_ffa.h>
10 #include <linux/arm-smccc.h>
11 #include <linux/err.h>
13 typedef struct arm_smccc_1_2_regs ffa_value_t;
15 typedef void (ffa_fn)(ffa_value_t, ffa_value_t *);
17 bool ffa_device_is_valid(struct ffa_device *ffa_dev);
18 void ffa_device_match_uuid(struct ffa_device *ffa_dev, const uuid_t *uuid);
20 #ifdef CONFIG_ARM_FFA_SMCCC
21 int __init ffa_transport_init(ffa_fn **invoke_ffa_fn);
22 #else
23 static inline int __init ffa_transport_init(ffa_fn **invoke_ffa_fn)
25 return -EOPNOTSUPP;
27 #endif
29 #endif /* _FFA_COMMON_H */