c05564c4d8
Android 13
43 lines
1.2 KiB
C
Executable file
43 lines
1.2 KiB
C
Executable file
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (c) 2019 MediaTek Inc.
|
|
*/
|
|
|
|
#ifndef __CMDQSECTL_API_H__
|
|
#define __CMDQSECTL_API_H__
|
|
|
|
/* Command IDs for normal world(TLC or linux kernel) to Trustlet */
|
|
#define CMD_CMDQ_TL_SUBMIT_TASK 1
|
|
/* (not used)release resource in secure path per session */
|
|
#define CMD_CMDQ_TL_RES_RELEASE 2
|
|
#define CMD_CMDQ_TL_CANCEL_TASK 3
|
|
/* create global resource for secure path */
|
|
#define CMD_CMDQ_TL_PATH_RES_ALLOCATE 4
|
|
/* destroy globacl resource for secure path */
|
|
#define CMD_CMDQ_TL_PATH_RES_RELEASE 5
|
|
|
|
/* entry cmdqSecTl, and do nothing */
|
|
#define CMD_CMDQ_TL_TEST_HELLO_TL (4000)
|
|
/* entry cmdqSecTl and cmdqSecDr, and do nothing */
|
|
#define CMD_CMDQ_TL_TEST_DUMMY (4001)
|
|
#define CMD_CMDQ_TL_TEST_SMI_DUMP (4002)
|
|
#define CMD_CMDQ_TL_TRAP_DR_INFINITELY (4004)
|
|
#define CMD_CMDQ_TL_DUMP (4005)
|
|
|
|
#define CMD_CMDQ_TL_SECTRACE_MAP (3000)
|
|
#define CMD_CMDQ_TL_SECTRACE_UNMAP (3001)
|
|
#define CMD_CMDQ_TL_SECTRACE_TRANSACT (3002)
|
|
|
|
|
|
/* Termination codes */
|
|
#define EXIT_ERROR ((uint32_t)(-1))
|
|
|
|
/* TCI message data: see cmdq_sec_iwc_common.h */
|
|
|
|
/* Trustlet UUID:
|
|
* filename of output bin is {TL_UUID}.tlbin
|
|
*/
|
|
#define TL_CMDQ_UUID { { 9, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }
|
|
|
|
#endif /*__CMDQSECTEST_API_H__*/
|