1 /* SPDX-License-Identifier: BSD-2-Clause */ 2 /* 3 * Copyright (c) 2017, Linaro Limited 4 * All rights reserved. 5 */ 6 7 #ifndef __PTA_INVOKE_TESTS_H 8 #define __PTA_INVOKE_TESTS_H 9 10 #define PTA_INVOKE_TESTS_UUID \ 11 { 0xd96a5b40, 0xc3e5, 0x21e3, \ 12 { 0x87, 0x94, 0x10, 0x02, 0xa5, 0xd5, 0xc6, 0x1b } } 13 14 /* Trace some hello string. Parameters are not used/checked. */ 15 #define PTA_INVOKE_TESTS_CMD_TRACE 0 16 17 /* 18 * Types of parameter drives the test sequences: 19 * - test on value parameters 20 * - test on SHM memory reference parameters 21 * - test on SDP memory reference parameters 22 */ 23 #define PTA_INVOKE_TESTS_CMD_PARAMS 1 24 25 /* Run some core internal tests. Parameters are not used/checked. */ 26 #define PTA_INVOKE_TESTS_CMD_SELF_TESTS 2 27 28 /* 29 * Secure data path: check that pTA can copy data from non-secure shared memory 30 * to SDP secure memory 31 * 32 * [in] memref[0] source (non-secure shared memory) 33 * [out] memref[1] destination (SDP secure memory) 34 */ 35 #define PTA_INVOKE_TESTS_CMD_COPY_NSEC_TO_SEC 3 36 37 /* 38 * Secure data path: check that pTA can read data from SDP secure memory and 39 * write it back. Data are processed so that client check the expected 40 * read/write sequence succeed. 41 * 42 * [in/out] memref[0] SDP secure buffer to read from and write to 43 */ 44 #define PTA_INVOKE_TESTS_CMD_READ_MODIFY_SEC 4 45 46 /* 47 * Secure data path: check that pTA can copy data from SDP secure memory to 48 * non-secure shared memory 49 * 50 * [in] memref[0] source (SDP secure memory) 51 * [out] memref[1] destination (non-secure shared memory) 52 */ 53 #define PTA_INVOKE_TESTS_CMD_COPY_SEC_TO_NSEC 5 54 55 /* 56 * Tests FS hash-tree corner cases in error handling 57 */ 58 #define PTA_INVOKE_TESTS_CMD_FS_HTREE 6 59 60 /* 61 * Tests mutex 62 * 63 * [in] value[0].a Test function PTA_MUTEX_TEST_* 64 * [in] value[0].b delay number 65 * [out] value[1].a before lock concurency 66 * [out] value[1].b during lock concurency 67 */ 68 #define PTA_MUTEX_TEST_WRITER 0 69 #define PTA_MUTEX_TEST_READER 1 70 #define PTA_INVOKE_TESTS_CMD_MUTEX 7 71 72 #endif /*__PTA_INVOKE_TESTS_H*/ 73 74