Files
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

54 lines
1.4 KiB
C

/*
* Copyright (C) 2018 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 http://www.gnu.org/licenses/gpl-2.0.html for more details.
*/
#ifndef __MEMORY_SSMR_H__
#define __MEMORY_SSMR_H__
enum ssmr_feature_type {
#if defined(CONFIG_MTK_SEC_VIDEO_PATH_SUPPORT) || \
defined(CONFIG_MTK_TEE_GP_SUPPORT) || \
defined(CONFIG_MTK_SVP_ON_MTEE_SUPPORT)
SSMR_FEAT_SVP,
#endif
#ifdef CONFIG_MTK_CAM_SECURITY_SUPPORT
SSMR_FEAT_2D_FR,
#endif
#if defined(CONFIG_TRUSTONIC_TRUSTED_UI) ||\
defined(CONFIG_BLOWFISH_TUI_SUPPORT)
SSMR_FEAT_TUI,
#endif
#ifdef CONFIG_MTK_SEC_VIDEO_PATH_SUPPORT
SSMR_FEAT_WFD,
#endif
#ifdef CONFIG_MTK_PROT_MEM_SUPPORT
SSMR_FEAT_PROT_SHAREDMEM,
#endif
#ifdef CONFIG_MTK_HAPP_MEM_SUPPORT
SSMR_FEAT_TA_ELF,
SSMR_FEAT_TA_STACK_HEAP,
#endif
#ifdef CONFIG_MTK_SDSP_SHARED_MEM_SUPPORT
SSMR_FEAT_SDSP_TEE_SHAREDMEM,
#endif
#ifdef CONFIG_MTK_SDSP_MEM_SUPPORT
SSMR_FEAT_SDSP_FIRMWARE,
#endif
__MAX_NR_SSMR_FEATURES,
};
extern int ssmr_offline(phys_addr_t *pa, unsigned long *size, bool is_64bit,
unsigned int feat);
extern int ssmr_online(unsigned int feat);
#endif