diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-trans.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-trans.h | 12 |
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 | */ |
102 | struct iwl_trans_ops { | 106 | struct 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 | ||
241 | static 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 | ******************************************************/ |