#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/debugfs.h>
#include <linux/seq_file.h>
#include <linux/uaccess.h>
#include "musb_core.h"
#include "musb_debug.h"
struct musb_register_map { … };
static const struct musb_register_map musb_regmap[] = …;
static int musb_regdump_show(struct seq_file *s, void *unused)
{ … }
DEFINE_SHOW_ATTRIBUTE(…);
static int musb_test_mode_show(struct seq_file *s, void *unused)
{ … }
static int musb_test_mode_open(struct inode *inode, struct file *file)
{ … }
static ssize_t musb_test_mode_write(struct file *file,
const char __user *ubuf, size_t count, loff_t *ppos)
{ … }
static const struct file_operations musb_test_mode_fops = …;
static int musb_softconnect_show(struct seq_file *s, void *unused)
{ … }
static int musb_softconnect_open(struct inode *inode, struct file *file)
{ … }
static ssize_t musb_softconnect_write(struct file *file,
const char __user *ubuf, size_t count, loff_t *ppos)
{ … }
static const struct file_operations musb_softconnect_fops = …;
void musb_init_debugfs(struct musb *musb)
{ … }
void musb_exit_debugfs(struct musb *musb)
{ … }