58 lines
1.5 KiB
C
58 lines
1.5 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
/*
|
|
* Copyright (c) 2019 MediaTek Inc.
|
|
*/
|
|
|
|
/*
|
|
* GenieZone (hypervisor-based seucrity platform) enables hardware protected
|
|
* and isolated security execution environment, includes
|
|
* 1. GZ hypervisor
|
|
* 2. Hypervisor-TEE OS (built-in Trusty OS)
|
|
* 3. Drivers (ex: debug, communication and interrupt) for GZ and
|
|
* hypervisor-TEE OS
|
|
* 4. GZ and hypervisor-TEE and GZ framework (supporting multiple TEE
|
|
* ecosystem, ex: M-TEE, Trusty, GlobalPlatform, ...)
|
|
*/
|
|
|
|
|
|
/* An example test TA implementation.
|
|
*/
|
|
|
|
#ifndef __TRUSTZONE_TA_TEST__
|
|
#define __TRUSTZONE_TA_TEST__
|
|
|
|
#define TZ_TA_TEST_UUID "0d5fe516-821d-11e2-bdb4-d485645c4310"
|
|
|
|
/* Data Structure for Test TA */
|
|
/* You should define data structure used both in REE/TEE here
|
|
* N/A for Test TA
|
|
*/
|
|
|
|
/* Command for Test TA */
|
|
#define TZCMD_TEST_ADD 0
|
|
#define TZCMD_TEST_MUL 1
|
|
#define TZCMD_TEST_ADD_MEM 2
|
|
#define TZCMD_TEST_DO_A 3
|
|
#define TZCMD_TEST_DO_B 4
|
|
#define TZCMD_TEST_SLEEP 5
|
|
#define TZCMD_ECHO_MEM_TEST 6
|
|
#define TZCMD_TEST_DO_C 7
|
|
#define TZCMD_TEST_DO_D 8
|
|
#define TZCMD_TEST_SECUREFUNC 9
|
|
#define TZCMD_TEST_CP_SBUF2NBUF 10
|
|
#define TZCMD_TEST_CP_NBUF2SBUF 11
|
|
#define TZCMD_TEST_THREAD 12
|
|
|
|
#define TZCMD_TEST_SYSCALL 0x1234
|
|
#define TZCMD_GET_MUTEX 0x2345
|
|
#define TZCMD_SEND_MUTEX 0x2346
|
|
#define TZCMD_TEST_MUTEX 0x2347
|
|
|
|
#define TZCMD_MEM_MUL_TEST 0x6000
|
|
#define TZCMD_DMA_TEST 0x6100
|
|
#define TZCMD_SHARED_MEM_TEST 0x5588
|
|
|
|
#define TZCMD_ABORT_TEST 0x9876
|
|
|
|
#endif /* __TRUSTZONE_TA_TEST__ */
|