SPM: RXTX map test on TFTF

Some FF-A interfaces use RXTX buffers to exchange information with SPMC.
To avoid repetition of RXTX mapping across the spm-related tests, and
prevent allocation of multiple pages for RXTX buffers within TFTF
runtime:
- Implemented test helpers that hold address of RXTX buffers;
- Implemented test to FFA_RXTX_MAP ABI, that also sets value of RXTX
buffers;
- Cleaned up memory sharing tests that previously implemented RXTX
mapping.

Signed-off-by: J-Alves <joao.alves@arm.com>
Change-Id: I4a67982d3d185bf83809156e4fce03c6edb967d9
diff --git a/tftf/tests/common/test_helpers.c b/tftf/tests/common/test_helpers.c
index 8fdfded..b1868cd 100644
--- a/tftf/tests/common/test_helpers.c
+++ b/tftf/tests/common/test_helpers.c
@@ -1,16 +1,19 @@
 /*
- * Copyright (c) 2018, Arm Limited. All rights reserved.
+ * Copyright (c) 2020, Arm Limited. All rights reserved.
  *
  * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include <arch_helpers.h>
+#include <ffa_helpers.h>
 #include <plat_topology.h>
 #include <platform.h>
 #include <power_management.h>
 #include <test_helpers.h>
 #include <tftf_lib.h>
 
+static struct mailbox_buffers test_mb = {.send = NULL, .recv = NULL};
+
 int is_sys_suspend_state_ready(void)
 {
 	int aff_info;
@@ -128,3 +131,19 @@
 
 	return test_ret;
 }
+
+void set_tftf_mailbox(const struct mailbox_buffers *mb)
+{
+	if (mb != NULL) {
+		test_mb = *mb;
+	}
+}
+
+bool get_tftf_mailbox(struct mailbox_buffers *mb)
+{
+	if ((test_mb.recv != NULL) && (test_mb.send != NULL)) {
+		*mb = test_mb;
+		return true;
+	}
+	return false;
+}