linux/drivers/net/wireless/broadcom/b43legacy/debugfs.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*

  Broadcom B43legacy wireless driver

  debugfs driver debugging code

  Copyright (c) 2005-2007 Michael Buesch <[email protected]>


*/

#include <linux/fs.h>
#include <linux/debugfs.h>
#include <linux/slab.h>
#include <linux/netdevice.h>
#include <linux/pci.h>
#include <linux/mutex.h>

#include "b43legacy.h"
#include "main.h"
#include "debugfs.h"
#include "dma.h"
#include "pio.h"
#include "xmit.h"


/* The root directory. */
static struct dentry *rootdir;

struct b43legacy_debugfs_fops {};

static inline
struct b43legacy_dfs_file * fops_to_dfs_file(struct b43legacy_wldev *dev,
				       const struct b43legacy_debugfs_fops *dfops)
{}


#define fappend


/* wl->irq_lock is locked */
static ssize_t tsf_read_file(struct b43legacy_wldev *dev, char *buf, size_t bufsize)
{}

/* wl->irq_lock is locked */
static int tsf_write_file(struct b43legacy_wldev *dev, const char *buf, size_t count)
{}

/* wl->irq_lock is locked */
static ssize_t ucode_regs_read_file(struct b43legacy_wldev *dev, char *buf, size_t bufsize)
{}

/* wl->irq_lock is locked */
static ssize_t shm_read_file(struct b43legacy_wldev *dev, char *buf, size_t bufsize)
{}

static ssize_t txstat_read_file(struct b43legacy_wldev *dev, char *buf, size_t bufsize)
{}

/* wl->irq_lock is locked */
static int restart_write_file(struct b43legacy_wldev *dev, const char *buf, size_t count)
{}

#undef fappend

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

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


#define B43legacy_DEBUGFS_FOPS(name, _read, _write, _take_irqlock)

B43legacy_DEBUGFS_FOPS();
B43legacy_DEBUGFS_FOPS();
B43legacy_DEBUGFS_FOPS();
B43legacy_DEBUGFS_FOPS();
B43legacy_DEBUGFS_FOPS();


int b43legacy_debug(struct b43legacy_wldev *dev, enum b43legacy_dyndbg feature)
{}

static void b43legacy_add_dynamic_debug(struct b43legacy_wldev *dev)
{}

void b43legacy_debugfs_add_device(struct b43legacy_wldev *dev)
{}

void b43legacy_debugfs_remove_device(struct b43legacy_wldev *dev)
{}

void b43legacy_debugfs_log_txstat(struct b43legacy_wldev *dev,
			    const struct b43legacy_txstatus *status)
{}

void b43legacy_debugfs_init(void)
{}

void b43legacy_debugfs_exit(void)
{}