aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2015-01-08 22:39:18 -0500
committerDavid S. Miller <davem@davemloft.net>2015-01-08 22:39:18 -0500
commit7c1b70234ed49b3ea9df079a1d3a5763e660304b (patch)
tree77550aa3c1831291343511b0dc5f94b22439c4ab /drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.h
parentcd91cc5bdddf50f5c775fe5baeef7891b31d8741 (diff)
parentef82f662ba9454e1ccc193cd9d9b8a8a09ec2a43 (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.h12
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
47struct 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
55struct 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
47int t4_setup_debugfs(struct adapter *adap); 59int t4_setup_debugfs(struct adapter *adap);
48void add_debugfs_files(struct adapter *adap, 60void add_debugfs_files(struct adapter *adap,
49 struct t4_debugfs_entry *files, 61 struct t4_debugfs_entry *files,