diff options
author | Sudeep Holla <sudeep.holla@arm.com> | 2023-10-05 17:45:03 +0300 |
---|---|---|
committer | Sudeep Holla <sudeep.holla@arm.com> | 2023-10-06 17:33:13 +0300 |
commit | e0573444edbf4ee7e3c191d3d08a4ccbd26628be (patch) | |
tree | fe0d487236ba9ca6870b0b2b68109cf348211b8e /include/linux/arm_ffa.h | |
parent | 0184450b8b1e7734110472616c4758839e1aff96 (diff) | |
download | linux-e0573444edbf4ee7e3c191d3d08a4ccbd26628be.tar.xz |
firmware: arm_ffa: Add interfaces to request notification callbacks
Add interface to the FFA driver to allow for client drivers to request
and relinquish a notification as well as provide a callback for the
notification.
Link: https://lore.kernel.org/r/20231005-ffa_v1-1_notif-v4-10-cddd3237809c@arm.com
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Diffstat (limited to 'include/linux/arm_ffa.h')
-rw-r--r-- | include/linux/arm_ffa.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/arm_ffa.h b/include/linux/arm_ffa.h index f9cf6114ef82..fb6f388a3737 100644 --- a/include/linux/arm_ffa.h +++ b/include/linux/arm_ffa.h @@ -392,10 +392,15 @@ struct ffa_cpu_ops { }; typedef void (*ffa_sched_recv_cb)(u16 vcpu, bool is_per_vcpu, void *cb_data); +typedef void (*ffa_notifier_cb)(int notify_id, 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); + int (*notify_request)(struct ffa_device *dev, bool per_vcpu, + ffa_notifier_cb cb, void *cb_data, int notify_id); + int (*notify_relinquish)(struct ffa_device *dev, int notify_id); }; struct ffa_ops { |