diff options
author | Hariprasad Shenai <hariprasad@chelsio.com> | 2015-01-20 12:02:20 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-01-24 17:13:24 -0800 |
commit | 49216c1c170f07c138b043d67cd34c67d75a27cc (patch) | |
tree | 1b12e8aac0c9cbbf2a254c075dc05d09ded38d95 /drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.h | |
parent | 1650d5455bd2dc6b5ee134bd6fc1a3236c266b5b (diff) |
cxgb4: Add debugfs entry to dump the contents of the flash
Adds support to dump the contents of the flash in the adapter
Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.h')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.h b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.h index 70fcbc930826..e162c611e089 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.h +++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.h @@ -37,6 +37,8 @@ #include <linux/export.h> +#define FILE_DATA(_file) ((_file)->f_path.dentry->d_inode) + struct t4_debugfs_entry { const char *name; const struct file_operations *ops; @@ -60,5 +62,6 @@ int t4_setup_debugfs(struct adapter *adap); void add_debugfs_files(struct adapter *adap, struct t4_debugfs_entry *files, unsigned int nfiles); +int mem_open(struct inode *inode, struct file *file); #endif |