aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-trans.h
diff options
context:
space:
mode:
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>2011-08-26 02:10:50 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-08-29 15:25:32 -0400
commit87e5666c0722d5f4cad3560ab5c180c8bba62b8b (patch)
treed1cb4c0349cc7270a0d67e1a4aee77baebb6e4d0 /drivers/net/wireless/iwlwifi/iwl-trans.h
parent6fbfae8e65139061080c70c8c337f74c50e8fd55 (diff)
iwlagn: transport handler can register debugfs entries
Add a handler in iwl_trans_ops to allow it to add entries under debugfs dir given by the upper level. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-trans.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-trans.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-trans.h b/drivers/net/wireless/iwlwifi/iwl-trans.h
index 4a0c7867cb6e..a9b3157994e9 100644
--- a/drivers/net/wireless/iwlwifi/iwl-trans.h
+++ b/drivers/net/wireless/iwlwifi/iwl-trans.h
@@ -63,6 +63,8 @@
63#ifndef __iwl_trans_h__ 63#ifndef __iwl_trans_h__
64#define __iwl_trans_h__ 64#define __iwl_trans_h__
65 65
66#include <linux/debugfs.h>
67
66 /*This file includes the declaration that are exported from the transport 68 /*This file includes the declaration that are exported from the transport
67 * layer */ 69 * layer */
68 70
@@ -98,6 +100,8 @@ struct iwl_shared;
98 * layer shall not pass any Rx. 100 * layer shall not pass any Rx.
99 * @free: release all the ressource for the transport layer itself such as 101 * @free: release all the ressource for the transport layer itself such as
100 * irq, tasklet etc... 102 * irq, tasklet etc...
103 * @dbgfs_register: add the dbgfs files under this directory. Files will be
104 * automatically deleted.
101 */ 105 */
102struct iwl_trans_ops { 106struct iwl_trans_ops {
103 107
@@ -128,6 +132,8 @@ struct iwl_trans_ops {
128 132
129 void (*sync_irq)(struct iwl_priv *priv); 133 void (*sync_irq)(struct iwl_priv *priv);
130 void (*free)(struct iwl_priv *priv); 134 void (*free)(struct iwl_priv *priv);
135
136 int (*dbgfs_register)(struct iwl_trans *trans, struct dentry* dir);
131}; 137};
132 138
133/** 139/**
@@ -232,6 +238,12 @@ static inline void iwl_trans_free(struct iwl_trans *trans)
232 trans->ops->free(priv(trans)); 238 trans->ops->free(priv(trans));
233} 239}
234 240
241static inline int iwl_trans_dbgfs_register(struct iwl_trans *trans,
242 struct dentry *dir)
243{
244 return trans->ops->dbgfs_register(trans, dir);
245}
246
235/***************************************************** 247/*****************************************************
236* Transport layers implementations 248* Transport layers implementations
237******************************************************/ 249******************************************************/