diff options
| author | David S. Miller <davem@davemloft.net> | 2015-01-08 22:39:18 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2015-01-08 22:39:18 -0500 |
| commit | 7c1b70234ed49b3ea9df079a1d3a5763e660304b (patch) | |
| tree | 77550aa3c1831291343511b0dc5f94b22439c4ab /drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.h | |
| parent | cd91cc5bdddf50f5c775fe5baeef7891b31d8741 (diff) | |
| parent | ef82f662ba9454e1ccc193cd9d9b8a8a09ec2a43 (diff) | |
Merge branch 'cxgb4-next'
Hariprasad Shenai says:
====================
Add support for few debugfs entries
This patch series adds support for devlog, cim_la, cim_qcfg and mps_tcam
debugfs entries.
The patches series is created against 'net-next' tree.
And includes patches on cxgb4 driver.
We have included all the maintainers of respective drivers. Kindly review the
change and let us know in case of any review comments.
====================
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 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.h b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.h index a3d8867efd3d..70fcbc930826 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.h +++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.h | |||
| @@ -44,6 +44,18 @@ struct t4_debugfs_entry { | |||
| 44 | unsigned char data; | 44 | unsigned char data; |
| 45 | }; | 45 | }; |
| 46 | 46 | ||
| 47 | struct seq_tab { | ||
| 48 | int (*show)(struct seq_file *seq, void *v, int idx); | ||
| 49 | unsigned int rows; /* # of entries */ | ||
| 50 | unsigned char width; /* size in bytes of each entry */ | ||
| 51 | unsigned char skip_first; /* whether the first line is a header */ | ||
| 52 | char data[0]; /* the table data */ | ||
| 53 | }; | ||
| 54 | |||
| 55 | struct seq_tab *seq_open_tab(struct file *f, unsigned int rows, | ||
| 56 | unsigned int width, unsigned int have_header, | ||
| 57 | int (*show)(struct seq_file *seq, void *v, int i)); | ||
| 58 | |||
| 47 | int t4_setup_debugfs(struct adapter *adap); | 59 | int t4_setup_debugfs(struct adapter *adap); |
| 48 | void add_debugfs_files(struct adapter *adap, | 60 | void add_debugfs_files(struct adapter *adap, |
| 49 | struct t4_debugfs_entry *files, | 61 | struct t4_debugfs_entry *files, |
