linux/drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c

// SPDX-License-Identifier: ISC
/* Copyright (C) 2020 MediaTek Inc. */

#include <linux/relay.h>
#include "mt7915.h"
#include "eeprom.h"
#include "mcu.h"
#include "mac.h"

#define FW_BIN_LOG_MAGIC

/** global debugfs **/

struct hw_queue_map {};

static int
mt7915_implicit_txbf_set(void *data, u64 val)
{}

static int
mt7915_implicit_txbf_get(void *data, u64 *val)
{}

DEFINE_DEBUGFS_ATTRIBUTE();

/* test knob of system error recovery */
static ssize_t
mt7915_sys_recovery_set(struct file *file, const char __user *user_buf,
			size_t count, loff_t *ppos)
{}

static ssize_t
mt7915_sys_recovery_get(struct file *file, char __user *user_buf,
			size_t count, loff_t *ppos)
{}

static const struct file_operations mt7915_sys_recovery_ops =;

static int
mt7915_radar_trigger(void *data, u64 val)
{}

DEFINE_DEBUGFS_ATTRIBUTE();

static int
mt7915_muru_debug_set(void *data, u64 val)
{}

static int
mt7915_muru_debug_get(void *data, u64 *val)
{}

DEFINE_DEBUGFS_ATTRIBUTE();

static int mt7915_muru_stats_show(struct seq_file *file, void *data)
{}
DEFINE_SHOW_ATTRIBUTE();

static int
mt7915_rdd_monitor(struct seq_file *s, void *data)
{}

static int
mt7915_fw_debug_wm_set(void *data, u64 val)
{}

static int
mt7915_fw_debug_wm_get(void *data, u64 *val)
{}

DEFINE_DEBUGFS_ATTRIBUTE();

static int
mt7915_fw_debug_wa_set(void *data, u64 val)
{}

static int
mt7915_fw_debug_wa_get(void *data, u64 *val)
{}

DEFINE_DEBUGFS_ATTRIBUTE();

static struct dentry *
create_buf_file_cb(const char *filename, struct dentry *parent, umode_t mode,
		   struct rchan_buf *buf, int *is_global)
{}

static int
remove_buf_file_cb(struct dentry *f)
{}

static int
mt7915_fw_debug_bin_set(void *data, u64 val)
{}

static int
mt7915_fw_debug_bin_get(void *data, u64 *val)
{}

DEFINE_DEBUGFS_ATTRIBUTE();

static int
mt7915_fw_util_wm_show(struct seq_file *file, void *data)
{}

DEFINE_SHOW_ATTRIBUTE();

static int
mt7915_fw_util_wa_show(struct seq_file *file, void *data)
{}

DEFINE_SHOW_ATTRIBUTE();

static void
mt7915_ampdu_stat_read_phy(struct mt7915_phy *phy,
			   struct seq_file *file)
{}

static void
mt7915_txbf_stat_read_phy(struct mt7915_phy *phy, struct seq_file *s)
{}

static int
mt7915_tx_stats_show(struct seq_file *file, void *data)
{}

DEFINE_SHOW_ATTRIBUTE();

static void
mt7915_hw_queue_read(struct seq_file *s, u32 size,
		     const struct hw_queue_map *map)
{}

static void
mt7915_sta_hw_queue_read(void *data, struct ieee80211_sta *sta)
{}

static int
mt7915_hw_queues_show(struct seq_file *file, void *data)
{}

DEFINE_SHOW_ATTRIBUTE();

static int
mt7915_xmit_queues_show(struct seq_file *file, void *data)
{}

DEFINE_SHOW_ATTRIBUTE();

#define mt7915_txpower_puts(rate)

#define mt7915_txpower_sets(rate, pwr, flag)

static ssize_t
mt7915_rate_txpower_get(struct file *file, char __user *user_buf,
			size_t count, loff_t *ppos)
{}

static ssize_t
mt7915_rate_txpower_set(struct file *file, const char __user *user_buf,
			size_t count, loff_t *ppos)
{}

static const struct file_operations mt7915_rate_txpower_fops =;

static int
mt7915_twt_stats(struct seq_file *s, void *data)
{}

/* The index of RF registers use the generic regidx, combined with two parts:
 * WF selection [31:24] and offset [23:0].
 */
static int
mt7915_rf_regval_get(void *data, u64 *val)
{}

static int
mt7915_rf_regval_set(void *data, u64 val)
{}

DEFINE_DEBUGFS_ATTRIBUTE();

int mt7915_init_debugfs(struct mt7915_phy *phy)
{}

static void
mt7915_debugfs_write_fwlog(struct mt7915_dev *dev, const void *hdr, int hdrlen,
			 const void *data, int len)
{}

void mt7915_debugfs_rx_fw_monitor(struct mt7915_dev *dev, const void *data, int len)
{}

bool mt7915_debugfs_rx_log(struct mt7915_dev *dev, const void *data, int len)
{}

#ifdef CONFIG_MAC80211_DEBUGFS
/** per-station debugfs **/

static ssize_t mt7915_sta_fixed_rate_set(struct file *file,
					 const char __user *user_buf,
					 size_t count, loff_t *ppos)
{}

static const struct file_operations fops_fixed_rate =;

static int
mt7915_queues_show(struct seq_file *s, void *data)
{}

DEFINE_SHOW_ATTRIBUTE();

void mt7915_sta_add_debugfs(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
			    struct ieee80211_sta *sta, struct dentry *dir)
{}

#endif