#include <linux/debugfs.h>
#include <linux/if_ether.h>
#include <linux/if.h>
#include <linux/net.h>
#include <linux/netdevice.h>
#include <linux/ieee80211.h>
#include <linux/module.h>
#include <net/mac80211.h>
#include <defs.h>
#include <brcmu_wifi.h>
#include <brcmu_utils.h>
#include "types.h"
#include "main.h"
#include "debug.h"
#include "brcms_trace_events.h"
#include "phy/phy_int.h"
static struct dentry *root_folder;
void brcms_debugfs_init(void)
{ … }
void brcms_debugfs_exit(void)
{ … }
void brcms_debugfs_attach(struct brcms_pub *drvr)
{ … }
void brcms_debugfs_detach(struct brcms_pub *drvr)
{ … }
struct dentry *brcms_debugfs_get_devdir(struct brcms_pub *drvr)
{ … }
static
int brcms_debugfs_hardware_read(struct seq_file *s, void *data)
{ … }
static int brcms_debugfs_macstat_read(struct seq_file *s, void *data)
{ … }
struct brcms_debugfs_entry { … };
static int brcms_debugfs_entry_open(struct inode *inode, struct file *f)
{ … }
static const struct file_operations brcms_debugfs_def_ops = …;
static void
brcms_debugfs_add_entry(struct brcms_pub *drvr, const char *fn,
int (*read_fn)(struct seq_file *seq, void *data))
{ … }
void brcms_debugfs_create_files(struct brcms_pub *drvr)
{ … }
#define __brcms_fn(fn) …
__brcms_fn(…)
__brcms_fn(…)
__brcms_fn(…)
__brcms_fn(…)
#if defined(CONFIG_BRCMDBG) || defined(CONFIG_BRCM_TRACING)
void __brcms_dbg(struct device *dev, u32 level, const char *func,
const char *fmt, ...)
{ … }
#endif