aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-dev.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-dev.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-dev.h28
1 files changed, 4 insertions, 24 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-dev.h b/drivers/net/wireless/iwlwifi/iwl-dev.h
index 1ad4d084e35..9b9d7435321 100644
--- a/drivers/net/wireless/iwlwifi/iwl-dev.h
+++ b/drivers/net/wireless/iwlwifi/iwl-dev.h
@@ -134,9 +134,13 @@ struct iwl_tx_info {
134 * A Tx queue consists of circular buffer of BDs (a.k.a. TFDs, transmit frame 134 * A Tx queue consists of circular buffer of BDs (a.k.a. TFDs, transmit frame
135 * descriptors) and required locking structures. 135 * descriptors) and required locking structures.
136 */ 136 */
137#define TFD_TX_CMD_SLOTS 256
138#define TFD_CMD_SLOTS 32
139
137struct iwl_tx_queue { 140struct iwl_tx_queue {
138 struct iwl_queue q; 141 struct iwl_queue q;
139 struct iwl_tfd *tfds; 142 struct iwl_tfd *tfds;
143 struct iwl3945_tfd *tfds39;
140 struct iwl_cmd *cmd[TFD_TX_CMD_SLOTS]; 144 struct iwl_cmd *cmd[TFD_TX_CMD_SLOTS];
141 struct iwl_tx_info *txb; 145 struct iwl_tx_info *txb;
142 u8 need_update; 146 u8 need_update;
@@ -226,28 +230,6 @@ struct iwl_channel_info {
226 struct iwl3945_scan_power_info scan_pwr_info[IWL_NUM_SCAN_RATES]; 230 struct iwl3945_scan_power_info scan_pwr_info[IWL_NUM_SCAN_RATES];
227}; 231};
228 232
229/**
230 * struct iwl3945_tx_queue - Tx Queue for DMA
231 * @q: generic Rx/Tx queue descriptor
232 * @bd: base of circular buffer of TFDs
233 * @cmd: array of command/Tx buffers
234 * @dma_addr_cmd: physical address of cmd/tx buffer array
235 * @txb: array of per-TFD driver data
236 * @need_update: indicates need to update read/write index
237 *
238 * A Tx queue consists of circular buffer of BDs (a.k.a. TFDs, transmit frame
239 * descriptors) and required locking structures.
240 */
241struct iwl3945_tx_queue {
242 struct iwl_queue q;
243 struct iwl3945_tfd *tfds;
244 struct iwl_cmd *cmd;
245 dma_addr_t dma_addr_cmd;
246 struct iwl_tx_info *txb;
247 int need_update;
248 int active;
249};
250
251#define IWL_TX_FIFO_AC0 0 233#define IWL_TX_FIFO_AC0 0
252#define IWL_TX_FIFO_AC1 1 234#define IWL_TX_FIFO_AC1 1
253#define IWL_TX_FIFO_AC2 2 235#define IWL_TX_FIFO_AC2 2
@@ -1099,8 +1081,6 @@ struct iwl_priv {
1099 struct iwl3945_rxon_cmd staging39_rxon; 1081 struct iwl3945_rxon_cmd staging39_rxon;
1100 struct iwl3945_rxon_cmd recovery39_rxon; 1082 struct iwl3945_rxon_cmd recovery39_rxon;
1101 1083
1102 struct iwl3945_tx_queue txq39[IWL39_MAX_NUM_QUEUES];
1103
1104 struct iwl3945_power_mgr power_data_39; 1084 struct iwl3945_power_mgr power_data_39;
1105 struct iwl3945_notif_statistics statistics_39; 1085 struct iwl3945_notif_statistics statistics_39;
1106 1086