aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-shared.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-shared.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-shared.h21
1 files changed, 15 insertions, 6 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-shared.h b/drivers/net/wireless/iwlwifi/iwl-shared.h
index bb61c13d4998..db606a6857c2 100644
--- a/drivers/net/wireless/iwlwifi/iwl-shared.h
+++ b/drivers/net/wireless/iwlwifi/iwl-shared.h
@@ -133,36 +133,41 @@ struct iwl_mod_params {
133/** 133/**
134 * struct iwl_hw_params 134 * struct iwl_hw_params
135 * @max_txq_num: Max # Tx queues supported 135 * @max_txq_num: Max # Tx queues supported
136 * @num_ampdu_queues: num of ampdu queues
136 * @tx/rx_chains_num: Number of TX/RX chains 137 * @tx/rx_chains_num: Number of TX/RX chains
137 * @valid_tx/rx_ant: usable antennas 138 * @valid_tx/rx_ant: usable antennas
138 * @rx_page_order: Rx buffer page order
139 * @rx_wrt_ptr_reg: FH{39}_RSCSR_CHNL0_WPTR
140 * @max_stations: 139 * @max_stations:
141 * @ht40_channel: is 40MHz width possible in band 2.4 140 * @ht40_channel: is 40MHz width possible in band 2.4
141 * @beacon_time_tsf_bits: number of valid tsf bits for beacon time
142 * @sku:
143 * @rx_page_order: Rx buffer page order
144 * @rx_wrt_ptr_reg: FH{39}_RSCSR_CHNL0_WPTR
142 * BIT(IEEE80211_BAND_5GHZ) BIT(IEEE80211_BAND_5GHZ) 145 * BIT(IEEE80211_BAND_5GHZ) BIT(IEEE80211_BAND_5GHZ)
143 * @sw_crypto: 0 for hw, 1 for sw 146 * @sw_crypto: 0 for hw, 1 for sw
144 * @max_xxx_size: for ucode uses 147 * @max_xxx_size: for ucode uses
145 * @ct_kill_threshold: temperature threshold 148 * @ct_kill_threshold: temperature threshold
146 * @beacon_time_tsf_bits: number of valid tsf bits for beacon time
147 * @calib_init_cfg: setup initial calibrations for the hw 149 * @calib_init_cfg: setup initial calibrations for the hw
148 * @calib_rt_cfg: setup runtime calibrations for the hw 150 * @calib_rt_cfg: setup runtime calibrations for the hw
149 * @struct iwl_sensitivity_ranges: range of sensitivity values 151 * @struct iwl_sensitivity_ranges: range of sensitivity values
150 */ 152 */
151struct iwl_hw_params { 153struct iwl_hw_params {
152 u8 max_txq_num; 154 u8 max_txq_num;
155 u8 num_ampdu_queues;
153 u8 tx_chains_num; 156 u8 tx_chains_num;
154 u8 rx_chains_num; 157 u8 rx_chains_num;
155 u8 valid_tx_ant; 158 u8 valid_tx_ant;
156 u8 valid_rx_ant; 159 u8 valid_rx_ant;
157 u32 rx_page_order;
158 u8 max_stations; 160 u8 max_stations;
159 u8 ht40_channel; 161 u8 ht40_channel;
162 bool shadow_reg_enable;
163 u16 beacon_time_tsf_bits;
164 u16 sku;
165 u32 rx_page_order;
160 u32 max_inst_size; 166 u32 max_inst_size;
161 u32 max_data_size; 167 u32 max_data_size;
162 u32 ct_kill_threshold; /* value in hw-dependent units */ 168 u32 ct_kill_threshold; /* value in hw-dependent units */
163 u32 ct_kill_exit_threshold; /* value in hw-dependent units */ 169 u32 ct_kill_exit_threshold; /* value in hw-dependent units */
164 /* for 1000, 6000 series and up */ 170 /* for 1000, 6000 series and up */
165 u16 beacon_time_tsf_bits;
166 u32 calib_init_cfg; 171 u32 calib_init_cfg;
167 u32 calib_rt_cfg; 172 u32 calib_rt_cfg;
168 const struct iwl_sensitivity_ranges *sens; 173 const struct iwl_sensitivity_ranges *sens;
@@ -201,6 +206,7 @@ struct iwl_tid_data {
201 * 206 *
202 * @dbg_level_dev: dbg level set per device. Prevails on 207 * @dbg_level_dev: dbg level set per device. Prevails on
203 * iwlagn_mod_params.debug_level if set (!= 0) 208 * iwlagn_mod_params.debug_level if set (!= 0)
209 * @ucode_owner: IWL_OWNERSHIP_*
204 * @cmd_queue: command queue number 210 * @cmd_queue: command queue number
205 * @status: STATUS_* 211 * @status: STATUS_*
206 * @bus: pointer to the bus layer data 212 * @bus: pointer to the bus layer data
@@ -217,6 +223,9 @@ struct iwl_shared {
217 u32 dbg_level_dev; 223 u32 dbg_level_dev;
218#endif /* CONFIG_IWLWIFI_DEBUG */ 224#endif /* CONFIG_IWLWIFI_DEBUG */
219 225
226#define IWL_OWNERSHIP_DRIVER 0
227#define IWL_OWNERSHIP_TM 1
228 u8 ucode_owner;
220 u8 cmd_queue; 229 u8 cmd_queue;
221 unsigned long status; 230 unsigned long status;
222 bool wowlan; 231 bool wowlan;