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)
59 lines
1.6 KiB
C
59 lines
1.6 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.
|
|
*/
|
|
|
|
|
|
/** Commands for TA SYSTEM **/
|
|
|
|
#ifndef __TRUSTZONE_TA_SYSTEM__
|
|
#define __TRUSTZONE_TA_SYSTEM__
|
|
|
|
/* / Special handle for system connect. */
|
|
/* / NOTE: Handle manager guarantee normal handle will have bit31=0. */
|
|
#define MTEE_SESSION_HANDLE_SYSTEM 0xFFFF1234
|
|
|
|
|
|
/* Session Management */
|
|
#define TZCMD_SYS_INIT 0
|
|
#define TZCMD_SYS_SESSION_CREATE 1
|
|
#define TZCMD_SYS_SESSION_CLOSE 2
|
|
#define TZCMD_SYS_IRQ 3
|
|
#define TZCMD_SYS_THREAD_CREATE 4
|
|
|
|
#define GZ_MSG_DATA_MAX_LEN 1024
|
|
struct gz_syscall_cmd_param {
|
|
int handle;
|
|
int command;
|
|
int ree_service;
|
|
int payload_size;
|
|
int paramTypes;
|
|
int dummy[4];
|
|
union MTEEC_PARAM param[4];
|
|
char data[GZ_MSG_DATA_MAX_LEN];
|
|
};
|
|
|
|
#define GZ_MSG_HEADER_LEN \
|
|
(sizeof(struct gz_syscall_cmd_param) - GZ_MSG_DATA_MAX_LEN)
|
|
|
|
extern struct platform_device *tz_system_dev;
|
|
extern struct cpumask trusty_all_cmask;
|
|
extern struct cpumask trusty_big_cmask;
|
|
extern int perf_boost_cnt;
|
|
extern struct mutex perf_boost_lock;
|
|
extern struct platform_driver tz_system_driver;
|
|
#if IS_ENABLED(CONFIG_PM_SLEEP)
|
|
/*for kernel-4.14*/
|
|
extern struct wakeup_source TeeServiceCall_wake_lock;
|
|
#endif
|
|
|
|
#endif /* __TRUSTZONE_TA_SYSTEM__ */
|