]> Pileus Git - ~andy/linux/blobdiff - include/linux/debugfs.h
Merge branch 'for-linus2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[~andy/linux] / include / linux / debugfs.h
index d1ac841e8dc7bae88fabff03ac840f98b6ab0e94..6169c26fd8c8e32bfb6af5e0cd49b3739e29581a 100644 (file)
@@ -16,6 +16,7 @@
 #define _DEBUGFS_H_
 
 #include <linux/fs.h>
+#include <linux/seq_file.h>
 
 #include <linux/types.h>
 
@@ -26,6 +27,17 @@ struct debugfs_blob_wrapper {
        unsigned long size;
 };
 
+struct debugfs_reg32 {
+       char *name;
+       unsigned long offset;
+};
+
+struct debugfs_regset32 {
+       struct debugfs_reg32 *regs;
+       int nregs;
+       void __iomem *base;
+};
+
 extern struct dentry *arch_debugfs_dir;
 
 #if defined(CONFIG_DEBUG_FS)
@@ -74,6 +86,13 @@ struct dentry *debugfs_create_blob(const char *name, umode_t mode,
                                  struct dentry *parent,
                                  struct debugfs_blob_wrapper *blob);
 
+struct dentry *debugfs_create_regset32(const char *name, mode_t mode,
+                                    struct dentry *parent,
+                                    struct debugfs_regset32 *regset);
+
+int debugfs_print_regs32(struct seq_file *s, const struct debugfs_reg32 *regs,
+                        int nregs, void __iomem *base, char *prefix);
+
 bool debugfs_initialized(void);
 
 #else
@@ -188,6 +207,13 @@ static inline struct dentry *debugfs_create_blob(const char *name, umode_t mode,
        return ERR_PTR(-ENODEV);
 }
 
+static inline struct dentry *debugfs_create_regset32(const char *name,
+                                  mode_t mode, struct dentry *parent,
+                                  struct debugfs_regset32 *regset)
+{
+       return ERR_PTR(-ENODEV);
+}
+
 static inline bool debugfs_initialized(void)
 {
        return false;