TF-M Reference Manual  1.2.0
TrustedFirmware-M
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
core_test_defs.h File Reference
#include <inttypes.h>
#include <limits.h>
#include "tfm_api.h"
Include dependency graph for core_test_defs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  irq_test_execution_data_t
 

Macros

#define CORE_TEST_ID_NS_THREAD   1001
 
#define CORE_TEST_ID_CHECK_INIT   1003
 
#define CORE_TEST_ID_RECURSION   1004
 
#define CORE_TEST_ID_BUFFER_CHECK   1007
 
#define CORE_TEST_ID_SS_TO_SS   1008
 
#define CORE_TEST_ID_SS_TO_SS_BUFFER   1010
 
#define CORE_TEST_ID_PERIPHERAL_ACCESS   1012
 
#define CORE_TEST_ID_GET_CALLER_CLIENT_ID   1013
 
#define CORE_TEST_ID_SPM_REQUEST   1014
 
#define CORE_TEST_ID_IOVEC_SANITIZATION   1015
 
#define CORE_TEST_ID_OUTVEC_WRITE   1016
 
#define CORE_TEST_ID_SECURE_IRQ   1017
 
#define CORE_TEST_ID_BLOCK   2001
 
#define CORE_TEST_RETURN_ERROR(x)   return (((__LINE__) << 16) | x)
 
#define CORE_TEST_ERROR_GET_EXTRA(x)   (x >> 16)
 
#define CORE_TEST_ERROR_GET_CODE(x)   (x & 0xFFFF)
 

Enumerations

enum  irq_test_scenario_t {
  IRQ_TEST_SCENARIO_NONE, IRQ_TEST_SCENARIO_1, IRQ_TEST_SCENARIO_2, IRQ_TEST_SCENARIO_3,
  IRQ_TEST_SCENARIO_4, IRQ_TEST_SCENARIO_5
}
 
enum  core_test_errno_t {
  CORE_TEST_ERRNO_TEST_NOT_SUPPORTED = -13, CORE_TEST_ERRNO_SP_NOT_INITED = -12, CORE_TEST_ERRNO_UNEXPECTED_CORE_BEHAVIOUR = -11, CORE_TEST_ERRNO_SP_RECURSION_NOT_REJECTED = -10,
  CORE_TEST_ERRNO_INVALID_BUFFER = -9, CORE_TEST_ERRNO_SLAVE_SP_CALL_FAILURE = -8, CORE_TEST_ERRNO_SLAVE_SP_BUFFER_FAILURE = -7, CORE_TEST_ERRNO_FIRST_CALL_FAILED = -6,
  CORE_TEST_ERRNO_SECOND_CALL_FAILED = -5, CORE_TEST_ERRNO_PERIPHERAL_ACCESS_FAILED = -4, CORE_TEST_ERRNO_TEST_FAULT = -3, CORE_TEST_ERRNO_INVALID_TEST_ID = -2,
  CORE_TEST_ERRNO_INVALID_PARAMETER = -1, CORE_TEST_ERRNO_SUCCESS = 0, CORE_TEST_ERRNO_SUCCESS_2 = 1, CORE_TEST_ERRNO_FORCE_INT_SIZE = INT_MAX
}
 

Macro Definition Documentation

#define CORE_TEST_ERROR_GET_CODE (   x)    (x & 0xFFFF)

Definition at line 53 of file core_test_defs.h.

#define CORE_TEST_ERROR_GET_EXTRA (   x)    (x >> 16)

Definition at line 52 of file core_test_defs.h.

#define CORE_TEST_ID_BLOCK   2001

Definition at line 32 of file core_test_defs.h.

#define CORE_TEST_ID_BUFFER_CHECK   1007

Definition at line 23 of file core_test_defs.h.

#define CORE_TEST_ID_CHECK_INIT   1003

Definition at line 21 of file core_test_defs.h.

#define CORE_TEST_ID_GET_CALLER_CLIENT_ID   1013

Definition at line 27 of file core_test_defs.h.

#define CORE_TEST_ID_IOVEC_SANITIZATION   1015

Definition at line 29 of file core_test_defs.h.

#define CORE_TEST_ID_NS_THREAD   1001

Definition at line 20 of file core_test_defs.h.

#define CORE_TEST_ID_OUTVEC_WRITE   1016

Definition at line 30 of file core_test_defs.h.

#define CORE_TEST_ID_PERIPHERAL_ACCESS   1012

Definition at line 26 of file core_test_defs.h.

#define CORE_TEST_ID_RECURSION   1004

Definition at line 22 of file core_test_defs.h.

#define CORE_TEST_ID_SECURE_IRQ   1017

Definition at line 31 of file core_test_defs.h.

#define CORE_TEST_ID_SPM_REQUEST   1014

Definition at line 28 of file core_test_defs.h.

#define CORE_TEST_ID_SS_TO_SS   1008

Definition at line 24 of file core_test_defs.h.

#define CORE_TEST_ID_SS_TO_SS_BUFFER   1010

Definition at line 25 of file core_test_defs.h.

#define CORE_TEST_RETURN_ERROR (   x)    return (((__LINE__) << 16) | x)

Definition at line 51 of file core_test_defs.h.

Enumeration Type Documentation

Enumerator
CORE_TEST_ERRNO_TEST_NOT_SUPPORTED 
CORE_TEST_ERRNO_SP_NOT_INITED 
CORE_TEST_ERRNO_UNEXPECTED_CORE_BEHAVIOUR 
CORE_TEST_ERRNO_SP_RECURSION_NOT_REJECTED 
CORE_TEST_ERRNO_INVALID_BUFFER 
CORE_TEST_ERRNO_SLAVE_SP_CALL_FAILURE 
CORE_TEST_ERRNO_SLAVE_SP_BUFFER_FAILURE 
CORE_TEST_ERRNO_FIRST_CALL_FAILED 
CORE_TEST_ERRNO_SECOND_CALL_FAILED 
CORE_TEST_ERRNO_PERIPHERAL_ACCESS_FAILED 
CORE_TEST_ERRNO_TEST_FAULT 
CORE_TEST_ERRNO_INVALID_TEST_ID 
CORE_TEST_ERRNO_INVALID_PARAMETER 
CORE_TEST_ERRNO_SUCCESS 
CORE_TEST_ERRNO_SUCCESS_2 
CORE_TEST_ERRNO_FORCE_INT_SIZE 

Definition at line 55 of file core_test_defs.h.

Enumerator
IRQ_TEST_SCENARIO_NONE 
IRQ_TEST_SCENARIO_1 
IRQ_TEST_SCENARIO_2 
IRQ_TEST_SCENARIO_3 
IRQ_TEST_SCENARIO_4 
IRQ_TEST_SCENARIO_5 

Definition at line 34 of file core_test_defs.h.