Files
android/drivers/misc/mediatek/apusys/reviser/1.0/reviser_hw.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

62 lines
2.3 KiB
C

/*
* Copyright (C) 2019 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 __APUSYS_REVISER_HW_H__
#define __APUSYS_REVISER_HW_H__
#include <linux/types.h>
enum REVISER_DEVICE_E {
REVISER_DEVICE_NONE,
REVISER_DEVICE_SECURE_MD32,
REVISER_DEVICE_NORMAL_MD32,
REVISER_DEVICE_MDLA,
REVISER_DEVICE_VPU,
REVISER_DEVICE_EDMA,
REVISER_DEVICE_MAX,
};
void reviser_print_rw(void *drvinfo, void *s_file);
void reviser_print_private(void *drvinfo);
void reviser_print_dram(void *drvinfo, void *s_file);
void reviser_print_tcm(void *drvinfo, void *s_file);
void reviser_print_exception(void *drvinfo, void *s_file);
void reviser_print_error(void *drvinfo, void *s_file);
void reviser_print_boundary(void *drvinfo, void *s_file);
void reviser_print_context_ID(void *drvinfo, void *s_file);
void reviser_print_remap_table(void *drvinfo, void *s_file);
void reviser_print_default_iova(void *drvinfo, void *s_file);
int reviser_set_boundary(void *drvinfo,
enum REVISER_DEVICE_E type, int index, uint8_t boundary);
int reviser_set_context_ID(void *drvinfo,
enum REVISER_DEVICE_E type, int index, uint8_t ID);
int reviser_set_remap_table(void *drvinfo,
int index, uint8_t valid, uint8_t ID, uint8_t src_page,
uint8_t dst_page);
int reviser_dram_remap_init(void *drvinfo);
int reviser_dram_remap_destroy(void *drvinfo);
int reviser_set_default_iova(void *drvinfo);
int reviser_get_interrupt_offset(void *drvinfo);
int reviser_type_convert(int type, enum REVISER_DEVICE_E *reviser_type);
bool reviser_is_power(void *drvinfo);
int reviser_boundary_init(void *drvinfo, uint8_t boundary);
void reviser_enable_interrupt(void *drvinfo, uint8_t enable);
int reviser_alloc_tcm(void *drvinfo, void *usr);
int reviser_free_tcm(void *drvinfo, void *usr);
int reviser_power_on(void *drvinfo);
int reviser_power_off(void *drvinfo);
int reviser_check_int_valid(void *drvinfo);
int reviser_init_ip(void);
#endif