#include <linux/relay.h>
#include "mt7996.h"
#include "eeprom.h"
#include "mcu.h"
#include "mac.h"
#define FW_BIN_LOG_MAGIC …
struct hw_queue_map { … };
static int
mt7996_implicit_txbf_set(void *data, u64 val)
{ … }
static int
mt7996_implicit_txbf_get(void *data, u64 *val)
{ … }
DEFINE_DEBUGFS_ATTRIBUTE(…);
static ssize_t
mt7996_sys_recovery_set(struct file *file, const char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static ssize_t
mt7996_sys_recovery_get(struct file *file, char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static const struct file_operations mt7996_sys_recovery_ops = …;
static int
mt7996_radar_trigger(void *data, u64 val)
{ … }
DEFINE_DEBUGFS_ATTRIBUTE(…);
static int
mt7996_rdd_monitor(struct seq_file *s, void *data)
{ … }
static int
mt7996_fw_debug_wm_set(void *data, u64 val)
{ … }
static int
mt7996_fw_debug_wm_get(void *data, u64 *val)
{ … }
DEFINE_DEBUGFS_ATTRIBUTE(…);
static int
mt7996_fw_debug_wa_set(void *data, u64 val)
{ … }
static int
mt7996_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
mt7996_fw_debug_bin_set(void *data, u64 val)
{ … }
static int
mt7996_fw_debug_bin_get(void *data, u64 *val)
{ … }
DEFINE_DEBUGFS_ATTRIBUTE(…);
static int
mt7996_fw_util_wa_show(struct seq_file *file, void *data)
{ … }
DEFINE_SHOW_ATTRIBUTE(…);
static void
mt7996_ampdu_stat_read_phy(struct mt7996_phy *phy, struct seq_file *file)
{ … }
static void
mt7996_txbf_stat_read_phy(struct mt7996_phy *phy, struct seq_file *s)
{ … }
static int
mt7996_tx_stats_show(struct seq_file *file, void *data)
{ … }
DEFINE_SHOW_ATTRIBUTE(…);
static void
mt7996_hw_queue_read(struct seq_file *s, u32 size,
const struct hw_queue_map *map)
{ … }
static void
mt7996_sta_hw_queue_read(void *data, struct ieee80211_sta *sta)
{ … }
static int
mt7996_hw_queues_show(struct seq_file *file, void *data)
{ … }
DEFINE_SHOW_ATTRIBUTE(…);
static int
mt7996_xmit_queues_show(struct seq_file *file, void *data)
{ … }
DEFINE_SHOW_ATTRIBUTE(…);
static int
mt7996_twt_stats(struct seq_file *s, void *data)
{ … }
static int
mt7996_rf_regval_get(void *data, u64 *val)
{ … }
static int
mt7996_rf_regval_set(void *data, u64 val)
{ … }
DEFINE_DEBUGFS_ATTRIBUTE(…);
int mt7996_init_debugfs(struct mt7996_phy *phy)
{ … }
static void
mt7996_debugfs_write_fwlog(struct mt7996_dev *dev, const void *hdr, int hdrlen,
const void *data, int len)
{ … }
void mt7996_debugfs_rx_fw_monitor(struct mt7996_dev *dev, const void *data, int len)
{ … }
bool mt7996_debugfs_rx_log(struct mt7996_dev *dev, const void *data, int len)
{ … }
#ifdef CONFIG_MAC80211_DEBUGFS
static ssize_t mt7996_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
mt7996_queues_show(struct seq_file *s, void *data)
{ … }
DEFINE_SHOW_ATTRIBUTE(…);
void mt7996_sta_add_debugfs(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
struct ieee80211_sta *sta, struct dentry *dir)
{ … }
#endif