From 75c2057a6f95520fd9d2b07299d1dbb5de9113d1 Mon Sep 17 00:00:00 2001 From: Anup Patel Date: Sun, 12 Jan 2025 09:28:37 +0530 Subject: lib: utils: Introduce optional MPXY RPMI service group operations Some of the RPMI service groups may need additional context and special handling when transferring messages via underlying mailbox channel so introduce optional MPXY RPMI service group operations for this purpose. Signed-off-by: Anup Patel --- include/sbi_utils/mpxy/fdt_mpxy_rpmi_mbox.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include') diff --git a/include/sbi_utils/mpxy/fdt_mpxy_rpmi_mbox.h b/include/sbi_utils/mpxy/fdt_mpxy_rpmi_mbox.h index 17b50557..df81a73d 100644 --- a/include/sbi_utils/mpxy/fdt_mpxy_rpmi_mbox.h +++ b/include/sbi_utils/mpxy/fdt_mpxy_rpmi_mbox.h @@ -12,6 +12,7 @@ #include #include +#include #include #include @@ -63,6 +64,17 @@ struct mpxy_rpmi_mbox_data { u32 num_services; u32 notifications_support; struct mpxy_rpmi_service_data *service_data; + + /** Transfer RPMI service group message */ + int (*xfer_group)(void *context, struct mbox_chan *chan, + struct mbox_xfer *xfer); + + /** Setup RPMI service group context for MPXY */ + int (*setup_group)(void **context, struct mbox_chan *chan, + const struct mpxy_rpmi_mbox_data *data); + + /** Cleanup RPMI service group context for MPXY */ + void (*cleanup_group)(void *context); }; /** Common probe function for MPXY RPMI drivers */ -- cgit v1.3.1