aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-trans.h
diff options
context:
space:
mode:
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>2012-01-02 09:10:08 -0500
committerWey-Yi Guy <wey-yi.w.guy@intel.com>2012-02-02 16:40:07 -0500
commited6a3803408f18da387463d569b4edc5078fd9aa (patch)
tree25a448746bc814a0d72eb6cf3c5084c9aa78c569 /drivers/net/wireless/iwlwifi/iwl-trans.h
parent96d28e00d5cf0d1b3dbf775fa79bd940838a10e4 (diff)
iwlwifi: add fw_alive to transport layer API, kill tx_start
Define a new handler in the transport layer API: fw_alive. Move iwl_reset_ict to this new handler, and move the content of tx_start to this handler. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-trans.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-trans.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-trans.h b/drivers/net/wireless/iwlwifi/iwl-trans.h
index 42a9f303f543..9795a23ee949 100644
--- a/drivers/net/wireless/iwlwifi/iwl-trans.h
+++ b/drivers/net/wireless/iwlwifi/iwl-trans.h
@@ -139,8 +139,7 @@ struct iwl_host_cmd {
139 * layer. 139 * layer.
140 * @prepare_card_hw: claim the ownership on the HW. Will be called during 140 * @prepare_card_hw: claim the ownership on the HW. Will be called during
141 * probe. 141 * probe.
142 * @tx_start: starts and configures all the Tx fifo - usually done once the fw 142 * @fw_alive: called when the fw sends alive notification
143 * is alive.
144 * @wake_any_queue: wake all the queues of a specfic context IWL_RXON_CTX_* 143 * @wake_any_queue: wake all the queues of a specfic context IWL_RXON_CTX_*
145 * @stop_device:stops the whole device (embedded CPU put to reset) 144 * @stop_device:stops the whole device (embedded CPU put to reset)
146 * @send_cmd:send a host command 145 * @send_cmd:send a host command
@@ -166,9 +165,9 @@ struct iwl_trans_ops {
166 struct iwl_trans *(*alloc)(struct iwl_shared *shrd); 165 struct iwl_trans *(*alloc)(struct iwl_shared *shrd);
167 int (*request_irq)(struct iwl_trans *iwl_trans); 166 int (*request_irq)(struct iwl_trans *iwl_trans);
168 int (*start_device)(struct iwl_trans *trans); 167 int (*start_device)(struct iwl_trans *trans);
168 void (*fw_alive)(struct iwl_trans *trans);
169 int (*prepare_card_hw)(struct iwl_trans *trans); 169 int (*prepare_card_hw)(struct iwl_trans *trans);
170 void (*stop_device)(struct iwl_trans *trans); 170 void (*stop_device)(struct iwl_trans *trans);
171 void (*tx_start)(struct iwl_trans *trans);
172 171
173 void (*wake_any_queue)(struct iwl_trans *trans, 172 void (*wake_any_queue)(struct iwl_trans *trans,
174 enum iwl_rxon_context_id ctx, 173 enum iwl_rxon_context_id ctx,
@@ -264,6 +263,11 @@ static inline int iwl_trans_request_irq(struct iwl_trans *trans)
264 return trans->ops->request_irq(trans); 263 return trans->ops->request_irq(trans);
265} 264}
266 265
266static inline void iwl_trans_fw_alive(struct iwl_trans *trans)
267{
268 trans->ops->fw_alive(trans);
269}
270
267static inline int iwl_trans_start_device(struct iwl_trans *trans) 271static inline int iwl_trans_start_device(struct iwl_trans *trans)
268{ 272{
269 return trans->ops->start_device(trans); 273 return trans->ops->start_device(trans);
@@ -279,11 +283,6 @@ static inline void iwl_trans_stop_device(struct iwl_trans *trans)
279 trans->ops->stop_device(trans); 283 trans->ops->stop_device(trans);
280} 284}
281 285
282static inline void iwl_trans_tx_start(struct iwl_trans *trans)
283{
284 trans->ops->tx_start(trans);
285}
286
287static inline void iwl_trans_wake_any_queue(struct iwl_trans *trans, 286static inline void iwl_trans_wake_any_queue(struct iwl_trans *trans,
288 enum iwl_rxon_context_id ctx, 287 enum iwl_rxon_context_id ctx,
289 const char *msg) 288 const char *msg)