firmware: arm_scmi: Introduce get_max_msg_size() helper/accessor
[linux-2.6-block.git] / drivers / firmware / arm_scmi / protocols.h
index e17dbcfbf2993543c33630df0013dd9bf86da2bd..314371dc0f654fcdbca51abc58f7b79a80cab599 100644 (file)
@@ -260,6 +260,7 @@ struct scmi_fc_info {
  * @fastchannel_init: A common helper used to initialize FC descriptors by
  *                   gathering FC descriptions from the SCMI platform server.
  * @fastchannel_db_ring: A common helper to ring a FC doorbell.
+ * @get_max_msg_size: A common helper to get the maximum message size.
  */
 struct scmi_proto_helpers_ops {
        int (*extended_name_get)(const struct scmi_protocol_handle *ph,
@@ -279,6 +280,7 @@ struct scmi_proto_helpers_ops {
                                 struct scmi_fc_db_info **p_db,
                                 u32 *rate_limit);
        void (*fastchannel_db_ring)(struct scmi_fc_db_info *db);
+       int (*get_max_msg_size)(const struct scmi_protocol_handle *ph);
 };
 
 /**