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

70 lines
1.5 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_DRV_H__
#define __APUSYS_REVISER_DRV_H__
#include <linux/ioctl.h>
#include <linux/types.h>
#include <linux/cdev.h>
#include <linux/device.h>
#include <linux/wait.h>
struct reviser_dump {
unsigned int err_count;
unsigned int unknown_count;
};
struct reviser_resource {
unsigned int iova;
unsigned int size;
};
/* reviser driver's private structure */
struct reviser_dev_info {
void *pctrl_top;
void *vlm_base;
void *tcm_base;
struct reviser_resource vlm;
struct reviser_resource tcm;
void *dram_base;
void *int_base;
bool init_done;
struct device *dev;
bool power;
int power_count;
dev_t reviser_devt;
struct cdev reviser_cdev;
struct dentry *debug_root;
struct mutex mutex_tcm;
struct mutex mutex_ctxid;
struct mutex mutex_vlm_pgtable;
struct mutex mutex_remap;
struct mutex mutex_power;
spinlock_t lock_power;
spinlock_t lock_dump;
struct vlm_pgtable *pvlm;
wait_queue_head_t wait_ctxid;
wait_queue_head_t wait_tcm;
struct reviser_dump dump;
};
#endif