aboutsummaryrefslogtreecommitdiff
path: root/interface/include
diff options
context:
space:
mode:
authorDavid Hu <david.hu@arm.com>2021-04-07 15:58:53 +0800
committerDavid Hu <david.hu@arm.com>2021-04-29 08:56:18 +0200
commitc686ecbe98e674d2e60a938fcc18ee5104f9ec9d (patch)
tree3f9225a56aba4fa162cb353e8c6a82c54af20b7e /interface/include
parent5079a041bfb366594cdf6c72f173921ab34b2a92 (diff)
downloadtrusted-firmware-m-c686ecbe98e674d2e60a938fcc18ee5104f9ec9d.tar.gz
Interface: Remove NS specific implementation of test interface
Remove some test interface files to decouple TF-M from NS speific implementation. Those files will be moved to tf-m-tests. Those files include NS client identification management and NS mailbox test utilities. Change-Id: I963ccae2b50d6124e3ac84547d91b09b28fddfd5 Signed-off-by: David Hu <david.hu@arm.com>
Diffstat (limited to 'interface/include')
-rw-r--r--interface/include/tfm_ns_svc.h68
-rw-r--r--interface/include/tfm_nspm_api.h28
-rw-r--r--interface/include/tfm_nspm_svc_handler.h30
3 files changed, 0 insertions, 126 deletions
diff --git a/interface/include/tfm_ns_svc.h b/interface/include/tfm_ns_svc.h
deleted file mode 100644
index def0c2f7ee..0000000000
--- a/interface/include/tfm_ns_svc.h
+++ /dev/null
@@ -1,68 +0,0 @@
-/*
- * Copyright (c) 2017-2019, Arm Limited. All rights reserved.
- *
- * SPDX-License-Identifier: BSD-3-Clause
- *
- */
-
-#include <stdio.h>
-#include "cmsis_compiler.h"
-
-#ifndef __TFM_NS_SVC_H__
-#define __TFM_NS_SVC_H__
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/**
- * \brief Include all the SVC handler headers
- */
-#include "tfm_nspm_svc_handler.h"
-
-/**
- * \brief Macro to encode an svc instruction
- *
- */
-#define SVC(code) __ASM volatile("svc %0" : : "I" (code))
-
-/**
- * \def LIST_SVC_NSPM
- *
- * \brief This is an X macro which lists
- * the SVC interface exposed by TF-M
- * for the NS OS.
- *
- */
-#define LIST_SVC_NSPM \
- X(SVC_TFM_NSPM_REGISTER_CLIENT_ID, tfm_nspm_svc_register_client_id) \
-
-/**
- * \brief Numbers associated to each SVC available
- *
- * \details Start from 1 as 0 is reserved by RTX
- */
-enum tfm_svc_num {
- SVC_INVALID = 0,
-
-#define X(SVC_ENUM, SVC_HANDLER) SVC_ENUM,
-
- /* SVC API for Services */
-#ifdef TFM_NS_CLIENT_IDENTIFICATION
- LIST_SVC_NSPM
-#endif
-
-#undef X
-
- /* add all the new entries above this line */
- SVC_TFM_MAX,
-};
-
-/* number of user SVC functions */
-#define USER_SVC_COUNT ((uint32_t)SVC_TFM_MAX - 1)
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* __TFM_NS_SVC_H__ */
diff --git a/interface/include/tfm_nspm_api.h b/interface/include/tfm_nspm_api.h
deleted file mode 100644
index 5f03845bcd..0000000000
--- a/interface/include/tfm_nspm_api.h
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * Copyright (c) 2018, Arm Limited. All rights reserved.
- *
- * SPDX-License-Identifier: BSD-3-Clause
- *
- */
-
-#ifndef __TFM_NSPM_API_H__
-#define __TFM_NSPM_API_H__
-
-#include <stdint.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/**
- * \brief Reports the client ID of this task to TF-M
- *
- * \return Returns 1 if the client ID was successfully reported 0 otherwise
- */
-uint32_t tfm_nspm_register_client_id(void);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* __TFM_NSPM_API_H__ */
diff --git a/interface/include/tfm_nspm_svc_handler.h b/interface/include/tfm_nspm_svc_handler.h
deleted file mode 100644
index 73f75a95e1..0000000000
--- a/interface/include/tfm_nspm_svc_handler.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * Copyright (c) 2018, Arm Limited. All rights reserved.
- *
- * SPDX-License-Identifier: BSD-3-Clause
- *
- */
-
-#ifndef __TFM_NSPM_SVC_HANDLER_H__
-#define __TFM_NSPM_SVC_HANDLER_H__
-
-#include <stdint.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/**
- * \brief Reports the client ID of this task to TF-M (SVC function)
- *
- * \param [in] client_id Client ID to register.
- *
- * \return Returns 1 if the client ID was successfully reported 0 otherwise
- */
-uint32_t tfm_nspm_svc_register_client_id(uint32_t client_id);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* __TFM_NSPM_SVC_HANDLER_H__ */