diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-03-05 14:24:49 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-03-06 15:16:16 -0500 |
commit | 702e0630ee50c5f72e84da59daf5b23729140b62 (patch) | |
tree | ed4d9a0d22a04e235e2f54af500a7c7b656bcc16 | |
parent | 7db5b989a0e28a40ce61ef0b26da1af18289d711 (diff) |
iwlwifi: move iwl_base_params to shared header
This is used from there, so should be in it.
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>
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.h | 42 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-shared.h | 43 |
2 files changed, 43 insertions, 42 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.h b/drivers/net/wireless/iwlwifi/iwl-core.h index db44115a6775..7259cbf77da4 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.h +++ b/drivers/net/wireless/iwlwifi/iwl-core.h | |||
@@ -96,48 +96,6 @@ struct iwl_lib_ops { | |||
96 | }; | 96 | }; |
97 | 97 | ||
98 | /* | 98 | /* |
99 | * @max_ll_items: max number of OTP blocks | ||
100 | * @shadow_ram_support: shadow support for OTP memory | ||
101 | * @led_compensation: compensate on the led on/off time per HW according | ||
102 | * to the deviation to achieve the desired led frequency. | ||
103 | * The detail algorithm is described in iwl-led.c | ||
104 | * @chain_noise_num_beacons: number of beacons used to compute chain noise | ||
105 | * @adv_thermal_throttle: support advance thermal throttle | ||
106 | * @support_ct_kill_exit: support ct kill exit condition | ||
107 | * @support_wimax_coexist: support wimax/wifi co-exist | ||
108 | * @plcp_delta_threshold: plcp error rate threshold used to trigger | ||
109 | * radio tuning when there is a high receiving plcp error rate | ||
110 | * @chain_noise_scale: default chain noise scale used for gain computation | ||
111 | * @wd_timeout: TX queues watchdog timeout | ||
112 | * @max_event_log_size: size of event log buffer size for ucode event logging | ||
113 | * @shadow_reg_enable: HW shadhow register bit | ||
114 | * @no_idle_support: do not support idle mode | ||
115 | * @hd_v2: v2 of enhanced sensitivity value, used for 2000 series and up | ||
116 | * wd_disable: disable watchdog timer | ||
117 | */ | ||
118 | struct iwl_base_params { | ||
119 | int eeprom_size; | ||
120 | int num_of_queues; /* def: HW dependent */ | ||
121 | int num_of_ampdu_queues;/* def: HW dependent */ | ||
122 | /* for iwl_apm_init() */ | ||
123 | u32 pll_cfg_val; | ||
124 | |||
125 | const u16 max_ll_items; | ||
126 | const bool shadow_ram_support; | ||
127 | u16 led_compensation; | ||
128 | bool adv_thermal_throttle; | ||
129 | bool support_ct_kill_exit; | ||
130 | const bool support_wimax_coexist; | ||
131 | u8 plcp_delta_threshold; | ||
132 | s32 chain_noise_scale; | ||
133 | unsigned int wd_timeout; | ||
134 | u32 max_event_log_size; | ||
135 | const bool shadow_reg_enable; | ||
136 | const bool no_idle_support; | ||
137 | const bool hd_v2; | ||
138 | const bool wd_disable; | ||
139 | }; | ||
140 | /* | ||
141 | * @advanced_bt_coexist: support advanced bt coexist | 99 | * @advanced_bt_coexist: support advanced bt coexist |
142 | * @bt_init_traffic_load: specify initial bt traffic load | 100 | * @bt_init_traffic_load: specify initial bt traffic load |
143 | * @bt_prio_boost: default bt priority boost value | 101 | * @bt_prio_boost: default bt priority boost value |
diff --git a/drivers/net/wireless/iwlwifi/iwl-shared.h b/drivers/net/wireless/iwlwifi/iwl-shared.h index b816e70d1445..ef80e0386c30 100644 --- a/drivers/net/wireless/iwlwifi/iwl-shared.h +++ b/drivers/net/wireless/iwlwifi/iwl-shared.h | |||
@@ -267,6 +267,49 @@ enum iwl_led_mode { | |||
267 | IWL_LED_DISABLE, | 267 | IWL_LED_DISABLE, |
268 | }; | 268 | }; |
269 | 269 | ||
270 | /* | ||
271 | * @max_ll_items: max number of OTP blocks | ||
272 | * @shadow_ram_support: shadow support for OTP memory | ||
273 | * @led_compensation: compensate on the led on/off time per HW according | ||
274 | * to the deviation to achieve the desired led frequency. | ||
275 | * The detail algorithm is described in iwl-led.c | ||
276 | * @chain_noise_num_beacons: number of beacons used to compute chain noise | ||
277 | * @adv_thermal_throttle: support advance thermal throttle | ||
278 | * @support_ct_kill_exit: support ct kill exit condition | ||
279 | * @support_wimax_coexist: support wimax/wifi co-exist | ||
280 | * @plcp_delta_threshold: plcp error rate threshold used to trigger | ||
281 | * radio tuning when there is a high receiving plcp error rate | ||
282 | * @chain_noise_scale: default chain noise scale used for gain computation | ||
283 | * @wd_timeout: TX queues watchdog timeout | ||
284 | * @max_event_log_size: size of event log buffer size for ucode event logging | ||
285 | * @shadow_reg_enable: HW shadhow register bit | ||
286 | * @hd_v2: v2 of enhanced sensitivity value, used for 2000 series and up | ||
287 | * @no_idle_support: do not support idle mode | ||
288 | * wd_disable: disable watchdog timer | ||
289 | */ | ||
290 | struct iwl_base_params { | ||
291 | int eeprom_size; | ||
292 | int num_of_queues; /* def: HW dependent */ | ||
293 | int num_of_ampdu_queues;/* def: HW dependent */ | ||
294 | /* for iwl_apm_init() */ | ||
295 | u32 pll_cfg_val; | ||
296 | |||
297 | const u16 max_ll_items; | ||
298 | const bool shadow_ram_support; | ||
299 | u16 led_compensation; | ||
300 | bool adv_thermal_throttle; | ||
301 | bool support_ct_kill_exit; | ||
302 | const bool support_wimax_coexist; | ||
303 | u8 plcp_delta_threshold; | ||
304 | s32 chain_noise_scale; | ||
305 | unsigned int wd_timeout; | ||
306 | u32 max_event_log_size; | ||
307 | const bool shadow_reg_enable; | ||
308 | const bool hd_v2; | ||
309 | const bool no_idle_support; | ||
310 | const bool wd_disable; | ||
311 | }; | ||
312 | |||
270 | /** | 313 | /** |
271 | * struct iwl_cfg | 314 | * struct iwl_cfg |
272 | * @name: Offical name of the device | 315 | * @name: Offical name of the device |