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)
50 lines
1.5 KiB
C
50 lines
1.5 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.
|
|
*/
|
|
|
|
|
|
#ifndef __KREE_INT_H__
|
|
#define __KREE_INT_H__
|
|
|
|
#include "tz_cross/ree_service.h"
|
|
|
|
|
|
/* Maximum temp memory parameter size. */
|
|
#define TEE_PARAM_MEM_LIMIT (4096)
|
|
|
|
|
|
int KREE_InitTZ(void);
|
|
|
|
void tz_test(void);
|
|
|
|
int KREE_TeeServiceCallNoCheck(KREE_SESSION_HANDLE handle,
|
|
uint32_t command, uint32_t paramTypes,
|
|
union MTEEC_PARAM param[4]);
|
|
|
|
typedef int(*KREE_REE_Service_Func) (u32 op,
|
|
u8 uparam[REE_SERVICE_BUFFER_SIZE]);
|
|
|
|
struct clk *mtee_clk_get(const char *clk_name);
|
|
struct device *mtee_pmdev_get(const char *pm_name);
|
|
|
|
/* REE Services function prototype */
|
|
int KREE_ServRequestIrq(u32 op, u8 uparam[REE_SERVICE_BUFFER_SIZE]);
|
|
int KREE_ServEnableIrq(u32 op, u8 uparam[REE_SERVICE_BUFFER_SIZE]);
|
|
|
|
int KREE_ServEnableClock(u32 op, u8 uparam[REE_SERVICE_BUFFER_SIZE]);
|
|
int KREE_ServDisableClock(u32 op, u8 uparam[REE_SERVICE_BUFFER_SIZE]);
|
|
|
|
int KREE_ServPMGet(u32 op, u8 uparam[REE_SERVICE_BUFFER_SIZE]);
|
|
int KREE_ServPMPut(u32 op, u8 uparam[REE_SERVICE_BUFFER_SIZE]);
|
|
|
|
#endif /* __KREE_INT_H__ */
|