linux/drivers/net/wireless/ralink/rt2x00/rt2x00debug.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
	Copyright (C) 2004 - 2009 Ivo van Doorn <[email protected]>
	<http://rt2x00.serialmonkey.com>

 */

/*
	Module: rt2x00lib
	Abstract: rt2x00 debugfs specific routines.
 */

#include <linux/debugfs.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/poll.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/uaccess.h>

#include "rt2x00.h"
#include "rt2x00lib.h"
#include "rt2x00dump.h"

#define MAX_LINE_LENGTH

struct rt2x00debug_crypto {};

struct rt2x00debug_intf {};

void rt2x00debug_update_crypto(struct rt2x00_dev *rt2x00dev,
			       struct rxdone_entry_desc *rxdesc)
{}

void rt2x00debug_dump_frame(struct rt2x00_dev *rt2x00dev,
			    enum rt2x00_dump_type type, struct queue_entry *entry)
{}
EXPORT_SYMBOL_GPL();

static int rt2x00debug_file_open(struct inode *inode, struct file *file)
{}

static int rt2x00debug_file_release(struct inode *inode, struct file *file)
{}

static int rt2x00debug_open_queue_dump(struct inode *inode, struct file *file)
{}

static int rt2x00debug_release_queue_dump(struct inode *inode, struct file *file)
{}

static ssize_t rt2x00debug_read_queue_dump(struct file *file,
					   char __user *buf,
					   size_t length,
					   loff_t *offset)
{}

static __poll_t rt2x00debug_poll_queue_dump(struct file *file,
						poll_table *wait)
{}

static const struct file_operations rt2x00debug_fop_queue_dump =;

static ssize_t rt2x00debug_read_queue_stats(struct file *file,
					    char __user *buf,
					    size_t length,
					    loff_t *offset)
{}

static const struct file_operations rt2x00debug_fop_queue_stats =;

#ifdef CONFIG_RT2X00_LIB_CRYPTO
static ssize_t rt2x00debug_read_crypto_stats(struct file *file,
					     char __user *buf,
					     size_t length,
					     loff_t *offset)
{}

static const struct file_operations rt2x00debug_fop_crypto_stats =;
#endif

#define RT2X00DEBUGFS_OPS_READ(__name, __format, __type)

#define RT2X00DEBUGFS_OPS_WRITE(__name, __type)

#define RT2X00DEBUGFS_OPS(__name, __format, __type)

RT2X00DEBUGFS_OPS(csr, "0x%.8x\n", u32);
RT2X00DEBUGFS_OPS(eeprom, "0x%.4x\n", u16);
RT2X00DEBUGFS_OPS(bbp, "0x%.2x\n", u8);
RT2X00DEBUGFS_OPS(rf, "0x%.8x\n", u32);
RT2X00DEBUGFS_OPS(rfcsr, "0x%.2x\n", u8);

static ssize_t rt2x00debug_read_dev_flags(struct file *file,
					  char __user *buf,
					  size_t length,
					  loff_t *offset)
{}

static const struct file_operations rt2x00debug_fop_dev_flags =;

static ssize_t rt2x00debug_read_cap_flags(struct file *file,
					  char __user *buf,
					  size_t length,
					  loff_t *offset)
{}

static const struct file_operations rt2x00debug_fop_cap_flags =;

static ssize_t rt2x00debug_write_restart_hw(struct file *file,
					    const char __user *buf,
					    size_t length,
					    loff_t *offset)
{}

static const struct file_operations rt2x00debug_restart_hw =;

static void rt2x00debug_create_file_driver(const char *name,
					   struct rt2x00debug_intf *intf,
					   struct debugfs_blob_wrapper *blob)
{}

static void rt2x00debug_create_file_chipset(const char *name,
					    struct rt2x00debug_intf *intf,
					    struct debugfs_blob_wrapper *blob)
{}

void rt2x00debug_register(struct rt2x00_dev *rt2x00dev)
{}

void rt2x00debug_deregister(struct rt2x00_dev *rt2x00dev)
{}