Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * Copyright (C) 2021 ARM Ltd.
0004  */
0005 
0006 #ifndef _FFA_COMMON_H
0007 #define _FFA_COMMON_H
0008 
0009 #include <linux/arm_ffa.h>
0010 #include <linux/arm-smccc.h>
0011 #include <linux/err.h>
0012 
0013 typedef struct arm_smccc_1_2_regs ffa_value_t;
0014 
0015 typedef void (ffa_fn)(ffa_value_t, ffa_value_t *);
0016 
0017 int arm_ffa_bus_init(void);
0018 void arm_ffa_bus_exit(void);
0019 bool ffa_device_is_valid(struct ffa_device *ffa_dev);
0020 void ffa_device_match_uuid(struct ffa_device *ffa_dev, const uuid_t *uuid);
0021 
0022 #ifdef CONFIG_ARM_FFA_SMCCC
0023 int __init ffa_transport_init(ffa_fn **invoke_ffa_fn);
0024 #else
0025 static inline int __init ffa_transport_init(ffa_fn **invoke_ffa_fn)
0026 {
0027     return -EOPNOTSUPP;
0028 }
0029 #endif
0030 
0031 #endif /* _FFA_COMMON_H */