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)
33 lines
730 B
C
33 lines
730 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* mtk-afe-debug.h -- Mediatek AFE Debug definition
|
|
*
|
|
* Copyright (c) 2018 MediaTek Inc.
|
|
* Author: Kai Chieh Chuang <kaichieh.chuang@mediatek.com>
|
|
*/
|
|
|
|
#ifndef _MTK_AFE_DEBUG_H_
|
|
#define _MTK_AFE_DEBUG_H_
|
|
|
|
#include <linux/debugfs.h>
|
|
|
|
struct mtk_afe_debug_cmd {
|
|
const char *cmd;
|
|
void (*fn)(struct file *file, void *arg);
|
|
};
|
|
|
|
#define MTK_AFE_DBG_CMD(_cmd, _fn) { \
|
|
.cmd = _cmd, \
|
|
.fn = _fn, \
|
|
}
|
|
|
|
/* debugfs ops */
|
|
int mtk_afe_debugfs_open(struct inode *inode, struct file *file);
|
|
ssize_t mtk_afe_debugfs_write(struct file *f, const char __user *buf,
|
|
size_t count, loff_t *offset);
|
|
|
|
/* debug function */
|
|
void mtk_afe_debug_write_reg(struct file *file, void *arg);
|
|
|
|
#endif
|