aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-trans.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-03-06 16:30:37 -0500
committerJohn W. Linville <linville@tuxdriver.com>2012-03-07 13:51:47 -0500
commit0692fe41b36159be5d8c7d4eef0699e79c383c85 (patch)
treec529bc1099c2a9bcba981845248571a8b02d3c25 /drivers/net/wireless/iwlwifi/iwl-trans.h
parente19918855dc4822a24787a6d0048205b011e5ecb (diff)
iwlwifi: split out firmware store
Through the driver, struct iwl_fw will store the firmware. Split this out into a separate file, iwl-fw.h, and make all other code use it. To do this, also move the log pointers into it, and remove the knowledge of "nic" from everything. Now the op_mode has a fw pointer, and (unfortunately) for now the shared data also needs to keep one for the transport to access dump the error log -- I think that will move later. Since I wanted to constify the firmware pointers, some more changes were needed. Signed-off-by: Johannes Berg <johannes.berg@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.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-trans.h b/drivers/net/wireless/iwlwifi/iwl-trans.h
index 6fa0c860a5e2..ec5249c8a7f4 100644
--- a/drivers/net/wireless/iwlwifi/iwl-trans.h
+++ b/drivers/net/wireless/iwlwifi/iwl-trans.h
@@ -272,7 +272,7 @@ struct iwl_trans_ops {
272 272
273 int (*start_hw)(struct iwl_trans *iwl_trans); 273 int (*start_hw)(struct iwl_trans *iwl_trans);
274 void (*stop_hw)(struct iwl_trans *iwl_trans); 274 void (*stop_hw)(struct iwl_trans *iwl_trans);
275 int (*start_fw)(struct iwl_trans *trans, struct fw_img *fw); 275 int (*start_fw)(struct iwl_trans *trans, const struct fw_img *fw);
276 void (*fw_alive)(struct iwl_trans *trans); 276 void (*fw_alive)(struct iwl_trans *trans);
277 void (*stop_device)(struct iwl_trans *trans); 277 void (*stop_device)(struct iwl_trans *trans);
278 278
@@ -400,7 +400,8 @@ static inline void iwl_trans_fw_alive(struct iwl_trans *trans)
400 trans->state = IWL_TRANS_FW_ALIVE; 400 trans->state = IWL_TRANS_FW_ALIVE;
401} 401}
402 402
403static inline int iwl_trans_start_fw(struct iwl_trans *trans, struct fw_img *fw) 403static inline int iwl_trans_start_fw(struct iwl_trans *trans,
404 const struct fw_img *fw)
404{ 405{
405 might_sleep(); 406 might_sleep();
406 407