feat(runtime/rmi): initial implementation of RMI_PDEV_COMMUNICATE
Implements RMI_PDEV_COMMUNICATE handler. This part of the implementation
covers
- Validates device communication data passed by NS host
- Maps PDEV aux granules, heap
- Dispatches command SPDM_INIT_CONNECTION. This includes sending SPDM
version, capabilities, algorithms to device and initializes the
connection based on PCI CMA SPDM specification.
Signed-off-by: Arunachalam Ganapathy <arunachalam.ganapathy@arm.com>
Signed-off-by: Soby Mathew <soby.mathew@arm.com>
Change-Id: Ic49a14c6c10fc9e15403ce29d1fbe2ff7ba6c83b
diff --git a/runtime/include/smc-handler.h b/runtime/include/smc-handler.h
index 222c5bf..fc919ff 100644
--- a/runtime/include/smc-handler.h
+++ b/runtime/include/smc-handler.h
@@ -111,6 +111,9 @@
void smc_pdev_aux_count(unsigned long flags, struct smc_result *res);
+unsigned long smc_pdev_communicate(unsigned long pdev_ptr,
+ unsigned long dev_comm_data_ptr);
+
void smc_pdev_get_state(unsigned long pdev_ptr, struct smc_result *res);
unsigned long smc_pdev_destroy(unsigned long pdev_ptr);