diff options
author | Sudeep Holla <sudeep.holla@arm.com> | 2023-10-05 15:45:02 +0100 |
---|---|---|
committer | Sudeep Holla <sudeep.holla@arm.com> | 2023-10-06 15:33:13 +0100 |
commit | 0184450b8b1e7734110472616c4758839e1aff96 (patch) | |
tree | b7cca5489a39200444b954cef936b46f26c7b09c /include | |
parent | 897e9e60c0168ae46f168290548ea24bbbc4005e (diff) | |
download | linux-0184450b8b1e7734110472616c4758839e1aff96.tar.gz linux-0184450b8b1e7734110472616c4758839e1aff96.tar.bz2 linux-0184450b8b1e7734110472616c4758839e1aff96.zip |
firmware: arm_ffa: Add schedule receiver callback mechanism
Enable client drivers to register a callback function that will be
called when one or more notifications are pending for a target
partition as part of schedule receiver interrupt handling.
Link: https://lore.kernel.org/r/20231005-ffa_v1-1_notif-v4-9-cddd3237809c@arm.com
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/arm_ffa.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/arm_ffa.h b/include/linux/arm_ffa.h index 12fd134bf670..f9cf6114ef82 100644 --- a/include/linux/arm_ffa.h +++ b/include/linux/arm_ffa.h @@ -391,11 +391,19 @@ struct ffa_cpu_ops { int (*run)(struct ffa_device *dev, u16 vcpu); }; +typedef void (*ffa_sched_recv_cb)(u16 vcpu, bool is_per_vcpu, void *cb_data); +struct ffa_notifier_ops { + int (*sched_recv_cb_register)(struct ffa_device *dev, + ffa_sched_recv_cb cb, void *cb_data); + int (*sched_recv_cb_unregister)(struct ffa_device *dev); +}; + struct ffa_ops { const struct ffa_info_ops *info_ops; const struct ffa_msg_ops *msg_ops; const struct ffa_mem_ops *mem_ops; const struct ffa_cpu_ops *cpu_ops; + const struct ffa_notifier_ops *notifier_ops; }; #endif /* _LINUX_ARM_FFA_H */ |