// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
/* Copyright(c) 2018-2019 Realtek Corporation
*/
#include <linux/debugfs.h>
#include <linux/seq_file.h>
#include "main.h"
#include "coex.h"
#include "sec.h"
#include "fw.h"
#include "debug.h"
#include "phy.h"
#include "reg.h"
#include "ps.h"
#include "regd.h"
#ifdef CONFIG_RTW88_DEBUGFS
struct rtw_debugfs_priv {
struct rtw_dev *rtwdev;
int (*cb_read)(struct seq_file *m, void *v);
ssize_t (*cb_write)(struct file *filp, const char __user *buffer,
size_t count, loff_t *loff);
union {
u32 cb_data;
u8 *buf;
struct {
u32 page_offset;
u32 page_num;
} rsvd_page;
struct {
u8 rf_path;
u32 rf_addr;
u32 rf_mask;
};
struct {
u32 addr;
u32 len;
} read_reg;
struct {
u8 bit;
} dm_cap;
};
};
struct rtw_debugfs {
struct rtw_debugfs_priv mac_0;
struct rtw_debugfs_priv mac_1;
struct rtw_debugfs_priv mac_2;
struct rtw_debugfs_priv mac_3;
struct rtw_debugfs_priv mac_4;
struct rtw_debugfs_priv mac_5;
struct rtw_debugfs_priv mac_6;
struct rtw_debugfs_priv mac_7;
struct rtw_debugfs_priv mac_10;
struct rtw_debugfs_priv mac_11;
struct rtw_debugfs_priv mac_12;
struct rtw_debugfs_priv mac_13;
struct rtw_debugfs_priv mac_14;
struct