iwlwifi: mvm: clean up FIFO definitions
authorJohannes Berg <johannes.berg@intel.com>
Fri, 1 Aug 2014 18:48:25 +0000 (20:48 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 3 Sep 2014 19:49:10 +0000 (22:49 +0300)
Move all FIFO definitions together into the firmware API
header file and use the same enum/naming scheme for the
command FIFO.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/fw-api.h
drivers/net/wireless/iwlwifi/mvm/mvm.h
drivers/net/wireless/iwlwifi/mvm/ops.c

index 4274f8dcb4cba419e34b2a3e3af4ac60a39187ce..94342dbe69e913b2330f34bcfe3b9a5d9695a3fc 100644 (file)
@@ -84,7 +84,14 @@ enum {
        IWL_MVM_CMD_QUEUE = 9,
 };
 
-#define IWL_MVM_CMD_FIFO       7
+enum iwl_mvm_tx_fifo {
+       IWL_MVM_TX_FIFO_BK = 0,
+       IWL_MVM_TX_FIFO_BE,
+       IWL_MVM_TX_FIFO_VI,
+       IWL_MVM_TX_FIFO_VO,
+       IWL_MVM_TX_FIFO_MCAST = 5,
+       IWL_MVM_TX_FIFO_CMD = 7,
+};
 
 #define IWL_MVM_STATION_COUNT  16
 
index 43f5364461622cf58df51e862b728acf24259479..b529cf64a5b60c60e5904dc5eec5dfa412a7cf4e 100644 (file)
  */
 #define IWL_MVM_CS_UNBLOCK_TX_TIMEOUT 3
 
-enum iwl_mvm_tx_fifo {
-       IWL_MVM_TX_FIFO_BK = 0,
-       IWL_MVM_TX_FIFO_BE,
-       IWL_MVM_TX_FIFO_VI,
-       IWL_MVM_TX_FIFO_VO,
-       IWL_MVM_TX_FIFO_MCAST = 5,
-};
-
 extern const struct ieee80211_ops iwl_mvm_hw_ops;
 
 /**
index 8139adcb2ef8f855c6c2523bf5e105db913073c4..d7ec07d48d98276fd9bf2e77254839d1b6415f51 100644 (file)
@@ -459,7 +459,7 @@ iwl_op_mode_mvm_start(struct iwl_trans *trans, const struct iwl_cfg *cfg,
        trans_cfg.command_names = iwl_mvm_cmd_strings;
 
        trans_cfg.cmd_queue = IWL_MVM_CMD_QUEUE;
-       trans_cfg.cmd_fifo = IWL_MVM_CMD_FIFO;
+       trans_cfg.cmd_fifo = IWL_MVM_TX_FIFO_CMD;
 
        snprintf(mvm->hw->wiphy->fw_version,
                 sizeof(mvm->hw->wiphy->fw_version),