summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/s3cmci.h
diff options
context:
space:
mode:
authorBen Dooks <ben@simtec.co.uk>2009-10-02 00:44:17 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2009-10-02 01:11:15 +0200
commit9bdd203b4dc82e9047486f0fed1977eef8185c6d (patch)
treef547098e58f7d4f4d417a45d40d86614072db82c /drivers/mmc/host/s3cmci.h
parents3cmci: fix direct write to interrupt mask (diff)
downloadlinux-9bdd203b4dc82e9047486f0fed1977eef8185c6d.tar.xz
linux-9bdd203b4dc82e9047486f0fed1977eef8185c6d.zip
s3cmci: add debugfs support for examining driver and hardware state
Export driver state and hardware register state via debugfs entries created under a directory formed from dev_name() on the probed device when CONFIG_DEBUG_FS is set. Signed-off-by: Ben Dooks <ben@simtec.co.uk> Cc: <linux-mmc@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/mmc/host/s3cmci.h')
-rw-r--r--drivers/mmc/host/s3cmci.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/mmc/host/s3cmci.h b/drivers/mmc/host/s3cmci.h
index ca1ba3d58cfd..fc96194a06f4 100644
--- a/drivers/mmc/host/s3cmci.h
+++ b/drivers/mmc/host/s3cmci.h
@@ -68,6 +68,12 @@ struct s3cmci_host {
unsigned int ccnt, dcnt;
struct tasklet_struct pio_tasklet;
+#ifdef CONFIG_DEBUG_FS
+ struct dentry *debug_root;
+ struct dentry *debug_state;
+ struct dentry *debug_regs;
+#endif
+
#ifdef CONFIG_CPU_FREQ
struct notifier_block freq_transition;
#endif