diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-03-06 16:30:37 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-03-07 13:51:47 -0500 |
commit | 0692fe41b36159be5d8c7d4eef0699e79c383c85 (patch) | |
tree | c529bc1099c2a9bcba981845248571a8b02d3c25 /drivers/net/wireless/iwlwifi/iwl-op-mode.h | |
parent | e19918855dc4822a24787a6d0048205b011e5ecb (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-op-mode.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-op-mode.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-op-mode.h b/drivers/net/wireless/iwlwifi/iwl-op-mode.h index 41e58a136715..55b8b27a9560 100644 --- a/drivers/net/wireless/iwlwifi/iwl-op-mode.h +++ b/drivers/net/wireless/iwlwifi/iwl-op-mode.h | |||
@@ -68,6 +68,7 @@ struct iwl_trans; | |||
68 | struct sk_buff; | 68 | struct sk_buff; |
69 | struct iwl_device_cmd; | 69 | struct iwl_device_cmd; |
70 | struct iwl_rx_cmd_buffer; | 70 | struct iwl_rx_cmd_buffer; |
71 | struct iwl_fw; | ||
71 | 72 | ||
72 | /** | 73 | /** |
73 | * DOC: Operational mode - what is it ? | 74 | * DOC: Operational mode - what is it ? |
@@ -123,7 +124,8 @@ struct iwl_rx_cmd_buffer; | |||
123 | * @nic_error: error notification. Must be atomic | 124 | * @nic_error: error notification. Must be atomic |
124 | */ | 125 | */ |
125 | struct iwl_op_mode_ops { | 126 | struct iwl_op_mode_ops { |
126 | struct iwl_op_mode *(*start)(struct iwl_trans *trans); | 127 | struct iwl_op_mode *(*start)(struct iwl_trans *trans, |
128 | const struct iwl_fw *fw); | ||
127 | void (*stop)(struct iwl_op_mode *op_mode); | 129 | void (*stop)(struct iwl_op_mode *op_mode); |
128 | int (*rx)(struct iwl_op_mode *op_mode, struct iwl_rx_cmd_buffer *rxb, | 130 | int (*rx)(struct iwl_op_mode *op_mode, struct iwl_rx_cmd_buffer *rxb, |
129 | struct iwl_device_cmd *cmd); | 131 | struct iwl_device_cmd *cmd); |