Files
android/drivers/misc/mediatek/geniezone/public/tz_cross/ta_test.h
T
threeeye bc1d038eac REVVL 6 Pro kernel bring-up: full working tree snapshot (2026-09-12)
Squashed backup commit (no shallow-clone history issues) of
xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream
commit 9eece662e) plus all fixes applied to get everpal_defconfig building
clean against a modern (GCC 15.2.0) toolchain -- see the previous commit
message on the lineage-23.2 branch (also in this repo history is not
available here since this is a squashed snapshot; full incremental history
lives in the local DL380 checkout and the upstream GitHub remote).

Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
2026-09-12 13:36:46 +00:00

55 lines
1.4 KiB
C

/*
* Copyright (C) 2015 MediaTek Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
/* 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__ */