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)
55 lines
1.7 KiB
C
55 lines
1.7 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 _DDP_RDMA_H_
|
|
#define _DDP_RDMA_H_
|
|
|
|
#include <mt-plat/sync_write.h>
|
|
#include <linux/types.h>
|
|
/* #include <mach/mt_reg_base.h> */
|
|
#include "ddp_info.h"
|
|
#include "ddp_hal.h"
|
|
|
|
extern unsigned long long rdma_start_time[];
|
|
extern unsigned long long rdma_end_time[];
|
|
extern unsigned int rdma_start_irq_cnt[];
|
|
extern unsigned int rdma_done_irq_cnt[];
|
|
extern unsigned int rdma_underflow_irq_cnt[];
|
|
extern unsigned int rdma_targetline_irq_cnt[];
|
|
|
|
/* init module */
|
|
int rdma_init(enum DISP_MODULE_ENUM module, void *handle);
|
|
|
|
/* deinit module */
|
|
int rdma_deinit(enum DISP_MODULE_ENUM module, void *handle);
|
|
|
|
/* start module */
|
|
int rdma_start(enum DISP_MODULE_ENUM module, void *handle);
|
|
|
|
/* stop module */
|
|
int rdma_stop(enum DISP_MODULE_ENUM module, void *handle);
|
|
|
|
/* reset module */
|
|
int rdma_reset(enum DISP_MODULE_ENUM module, void *handle);
|
|
|
|
/* common interface */
|
|
unsigned int rdma_index(enum DISP_MODULE_ENUM module);
|
|
void rdma_set_target_line(enum DISP_MODULE_ENUM module,
|
|
unsigned int line, void *handle);
|
|
void rdma_get_address(enum DISP_MODULE_ENUM module, unsigned long *data);
|
|
void rdma_dump_reg(enum DISP_MODULE_ENUM module);
|
|
void rdma_dump_analysis(enum DISP_MODULE_ENUM module);
|
|
void rdma_get_info(int idx, struct RDMA_BASIC_STRUCT *info);
|
|
|
|
#endif
|