#include <linux/debugfs.h>
#include <linux/seq_file.h>
#include <linux/crc32.h>
#include "debug.h"
#include "wfx.h"
#include "sta.h"
#include "main.h"
#include "hif_tx.h"
#include "hif_tx_mib.h"
#define CREATE_TRACE_POINTS
#include "traces.h"
static const struct trace_print_flags hif_msg_print_map[] = …;
static const struct trace_print_flags hif_mib_print_map[] = …;
static const struct trace_print_flags wfx_reg_print_map[] = …;
static const char *get_symbol(unsigned long val, const struct trace_print_flags *symbol_array)
{ … }
const char *wfx_get_hif_name(unsigned long id)
{ … }
const char *wfx_get_mib_name(unsigned long id)
{ … }
const char *wfx_get_reg_name(unsigned long id)
{ … }
static int wfx_counters_show(struct seq_file *seq, void *v)
{ … }
DEFINE_SHOW_ATTRIBUTE(…);
static const char * const channel_names[] = …;
static int wfx_rx_stats_show(struct seq_file *seq, void *v)
{ … }
DEFINE_SHOW_ATTRIBUTE(…);
static int wfx_tx_power_loop_show(struct seq_file *seq, void *v)
{ … }
DEFINE_SHOW_ATTRIBUTE(…);
static ssize_t wfx_send_pds_write(struct file *file, const char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static const struct file_operations wfx_send_pds_fops = …;
struct dbgfs_hif_msg { … };
static ssize_t wfx_send_hif_msg_write(struct file *file, const char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static ssize_t wfx_send_hif_msg_read(struct file *file, char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static int wfx_send_hif_msg_open(struct inode *inode, struct file *file)
{ … }
static int wfx_send_hif_msg_release(struct inode *inode, struct file *file)
{ … }
static const struct file_operations wfx_send_hif_msg_fops = …;
int wfx_debug_init(struct wfx_dev *wdev)
{ … }