feat(runtime/rmi): implement RMI_PDEV_CREATE
Define pdev data type and implement RMI_PDEV_CREATE. pdev_create calls
device specific init routine.
This implementation supports off-chip PCIe device with pdev created with
flags SPDM, IDE supported.
This patch adds files to device_assignment app folder to handle
device specific security protocols like CMA SPDM, IDE_KM and TDISP.
Note that this commit will not build but it adds the necessary code
changes for RMI_PDEV_CREATE.
Signed-off-by: Soby Mathew <soby.mathew@arm.com>
Signed-off-by: Arunachalam Ganapathy <arunachalam.ganapathy@arm.com>
Change-Id: Ie55666b5bef9e5d797100bb769ae3f4ba51f1974
diff --git a/runtime/core/handler.c b/runtime/core/handler.c
index 5cda469..3f7594f 100644
--- a/runtime/core/handler.c
+++ b/runtime/core/handler.c
@@ -163,7 +163,7 @@
HANDLER(DEV_MEM_UNMAP, 3, 2, smc_dev_mem_unmap, false, true),
HANDLER(PDEV_ABORT, 0, 0, NULL, true, true),
HANDLER(PDEV_COMMUNICATE, 2, 0, NULL, true, true),
- HANDLER(PDEV_CREATE, 2, 0, NULL, true, true),
+ HANDLER(PDEV_CREATE, 2, 0, smc_pdev_create, true, true),
HANDLER(PDEV_DESTROY, 0, 0, NULL, true, true),
HANDLER(PDEV_GET_STATE, 1, 1, NULL, true, true),
HANDLER(PDEV_IDE_RESET, 0, 0, NULL, true, true),