SPM: Add backend operation 'replying'
SFN and IPC have different message replying mechanisms:
- SFN replies to the client by SPM after messaging is performed;
while IPC partition calls 'psa_reply' initiatively to reply to
the client.
Abstract 'replying' to decouple the backend-specific operations
out of common FFM logic.
Change-Id: Ie28a0eaa1b37dfe458328dfb6ba298a0bf979c26
Signed-off-by: Ken Liu <Ken.Liu@arm.com>
diff --git a/secure_fw/spm/include/ffm/backend.h b/secure_fw/spm/include/ffm/backend.h
index 09fa256..7b7ea00 100644
--- a/secure_fw/spm/include/ffm/backend.h
+++ b/secure_fw/spm/include/ffm/backend.h
@@ -35,6 +35,11 @@
psa_status_t (*messaging)(struct service_t *p_serv,
struct tfm_msg_body_t *p_msg);
+ /*
+ * Runtime model-specific message replying.
+ * Return the acked status.
+ */
+ void (*replying)(struct tfm_msg_body_t *p_msg, psa_status_t status);
};
/* RUNTIME MODEL BACKENDS DECLARATION */