#ifdef CONFIG_DEBUG_FS
#include <linux/uaccess.h>
#include <linux/debugfs.h>
#include <linux/module.h>
#include <linux/vmalloc.h>
#include "qedf.h"
#include "qedf_dbg.h"
static struct dentry *qedf_dbg_root;
void
qedf_dbg_host_init(struct qedf_dbg_ctx *qedf,
const struct qedf_debugfs_ops *dops,
const struct file_operations *fops)
{ … }
void
qedf_dbg_host_exit(struct qedf_dbg_ctx *qedf_dbg)
{ … }
void
qedf_dbg_init(char *drv_name)
{ … }
void
qedf_dbg_exit(void)
{ … }
const struct qedf_debugfs_ops qedf_debugfs_ops[] = …;
DECLARE_PER_CPU(struct qedf_percpu_iothread_s, qedf_percpu_iothreads);
static ssize_t
qedf_dbg_fp_int_cmd_read(struct file *filp, char __user *buffer, size_t count,
loff_t *ppos)
{ … }
static ssize_t
qedf_dbg_fp_int_cmd_write(struct file *filp, const char __user *buffer,
size_t count, loff_t *ppos)
{ … }
static ssize_t
qedf_dbg_debug_cmd_read(struct file *filp, char __user *buffer, size_t count,
loff_t *ppos)
{ … }
static ssize_t
qedf_dbg_debug_cmd_write(struct file *filp, const char __user *buffer,
size_t count, loff_t *ppos)
{ … }
static ssize_t
qedf_dbg_stop_io_on_error_cmd_read(struct file *filp, char __user *buffer,
size_t count, loff_t *ppos)
{ … }
static ssize_t
qedf_dbg_stop_io_on_error_cmd_write(struct file *filp,
const char __user *buffer, size_t count,
loff_t *ppos)
{ … }
static int
qedf_io_trace_show(struct seq_file *s, void *unused)
{ … }
static int
qedf_dbg_io_trace_open(struct inode *inode, struct file *file)
{ … }
static char *fip_state_names[] = …;
static char *fc_rport_state_names[] = …;
static int
qedf_driver_stats_show(struct seq_file *s, void *unused)
{ … }
static int
qedf_dbg_driver_stats_open(struct inode *inode, struct file *file)
{ … }
static ssize_t
qedf_dbg_clear_stats_cmd_read(struct file *filp, char __user *buffer,
size_t count, loff_t *ppos)
{ … }
static ssize_t
qedf_dbg_clear_stats_cmd_write(struct file *filp,
const char __user *buffer, size_t count,
loff_t *ppos)
{ … }
static int
qedf_offload_stats_show(struct seq_file *s, void *unused)
{ … }
static int
qedf_dbg_offload_stats_open(struct inode *inode, struct file *file)
{ … }
const struct file_operations qedf_dbg_fops[] = …;
#else
void qedf_dbg_host_init(struct qedf_dbg_ctx *);
void qedf_dbg_host_exit(struct qedf_dbg_ctx *);
void qedf_dbg_init(char *);
void qedf_dbg_exit(void);
#endif