Files
android/drivers/misc/mediatek/gud/500/TlcTui/tui-hal_mt.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

37 lines
1.3 KiB
C

/*
* Copyright (c) 2014 TRUSTONIC LIMITED
* All Rights Reserved.
*
* 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 __TUI_HAL_MT__H__
#define __TUI_HAL_MT__H__
/* for TUI mepping to Security World */
extern void gt1x_power_reset(void);
extern int mt_eint_set_deint(int eint_num, int irq_num);
extern int mt_eint_clr_deint(int eint_num);
extern int tpd_reregister_from_tui(void);
extern int secmem_api_alloc(u32 alignment, u32 size, u32 *refcount,
u32 *sec_handle, uint8_t *owner, uint32_t id);
extern int secmem_api_unref(u32 sec_handle, uint8_t *owner, uint32_t id);
extern int tpd_enter_tui(void);
extern int tpd_exit_tui(void);
extern int i2c_tui_enable_clock(int id);
extern int i2c_tui_disable_clock(int id);
extern int tui_region_offline(phys_addr_t *pa, unsigned long *size);
extern int tui_region_offline64(phys_addr_t *pa, unsigned long *size);
extern int tui_region_online(void);
extern int display_enter_tui(void);
extern int display_exit_tui(void);
#endif