#include <linux/uaccess.h>
#include "mtu3.h"
#include "mtu3_dr.h"
#include "mtu3_debug.h"
#define dump_register(nm) …
#define dump_prb_reg(nm, os) …
static const struct debugfs_reg32 mtu3_ippc_regs[] = …;
static const struct debugfs_reg32 mtu3_dev_regs[] = …;
static const struct debugfs_reg32 mtu3_csr_regs[] = …;
static int mtu3_link_state_show(struct seq_file *sf, void *unused)
{ … }
static int mtu3_ep_used_show(struct seq_file *sf, void *unused)
{ … }
DEFINE_SHOW_ATTRIBUTE(…);
DEFINE_SHOW_ATTRIBUTE(…);
static void mtu3_debugfs_regset(struct mtu3 *mtu, void __iomem *base,
const struct debugfs_reg32 *regs, size_t nregs,
const char *name, struct dentry *parent)
{ … }
static void mtu3_debugfs_ep_regset(struct mtu3 *mtu, struct mtu3_ep *mep,
struct dentry *parent)
{ … }
static int mtu3_ep_info_show(struct seq_file *sf, void *unused)
{ … }
static int mtu3_fifo_show(struct seq_file *sf, void *unused)
{ … }
static int mtu3_qmu_ring_show(struct seq_file *sf, void *unused)
{ … }
static int mtu3_qmu_gpd_show(struct seq_file *sf, void *unused)
{ … }
static const struct mtu3_file_map mtu3_ep_files[] = …;
static int mtu3_ep_open(struct inode *inode, struct file *file)
{ … }
static const struct file_operations mtu3_ep_fops = …;
static const struct debugfs_reg32 mtu3_prb_regs[] = …;
static int mtu3_probe_show(struct seq_file *sf, void *unused)
{ … }
static int mtu3_probe_open(struct inode *inode, struct file *file)
{ … }
static ssize_t mtu3_probe_write(struct file *file, const char __user *ubuf,
size_t count, loff_t *ppos)
{ … }
static const struct file_operations mtu3_probe_fops = …;
static void mtu3_debugfs_create_prb_files(struct mtu3 *mtu)
{ … }
static void mtu3_debugfs_create_ep_dir(struct mtu3_ep *mep,
struct dentry *parent)
{ … }
static void mtu3_debugfs_create_ep_dirs(struct mtu3 *mtu)
{ … }
void ssusb_dev_debugfs_init(struct ssusb_mtk *ssusb)
{ … }
static int ssusb_mode_show(struct seq_file *sf, void *unused)
{ … }
static int ssusb_mode_open(struct inode *inode, struct file *file)
{ … }
static ssize_t ssusb_mode_write(struct file *file, const char __user *ubuf,
size_t count, loff_t *ppos)
{ … }
static const struct file_operations ssusb_mode_fops = …;
static int ssusb_vbus_show(struct seq_file *sf, void *unused)
{ … }
static int ssusb_vbus_open(struct inode *inode, struct file *file)
{ … }
static ssize_t ssusb_vbus_write(struct file *file, const char __user *ubuf,
size_t count, loff_t *ppos)
{ … }
static const struct file_operations ssusb_vbus_fops = …;
void ssusb_dr_debugfs_init(struct ssusb_mtk *ssusb)
{ … }
void ssusb_debugfs_create_root(struct ssusb_mtk *ssusb)
{ … }
void ssusb_debugfs_remove_root(struct ssusb_mtk *ssusb)
{ … }