aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-4965.h
diff options
context:
space:
mode:
authorBen Cahill <ben.m.cahill@intel.com>2007-11-28 22:10:00 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:05:26 -0500
commitfcd427bbba10fc315d1c958b85bba74448db4eb4 (patch)
tree88f66271649afb4699e095bd1cb69b4486bbb67f /drivers/net/wireless/iwlwifi/iwl-4965.h
parent14519a0b46085db68e610147098d03386c34801f (diff)
iwlwifi: move HT_IE_EXT_CHANNEL_* driver definitions to iwl-4965.h
Move HT_IE_EXT_CHANNEL_* driver definitions to iwl-4965.h Add comments to guide .h file usage (hw/api/driver definitions) Minor comment cleanup Signed-off-by: Ben Cahill <ben.m.cahill@intel.com> Signed-off-by: Zhu Yi <yi.zhu@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-4965.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-4965.h25
1 files changed, 20 insertions, 5 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.h b/drivers/net/wireless/iwlwifi/iwl-4965.h
index 9438c635f454..4a1ec9442c81 100644
--- a/drivers/net/wireless/iwlwifi/iwl-4965.h
+++ b/drivers/net/wireless/iwlwifi/iwl-4965.h
@@ -23,6 +23,12 @@
23 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 23 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
24 * 24 *
25 *****************************************************************************/ 25 *****************************************************************************/
26/*
27 * Please use this file (iwl-4965.h) for driver implementation definitions.
28 * Please use iwl-4965-commands.h for uCode API definitions.
29 * Please use iwl-4965-hw.h for hardware-related definitions.
30 */
31
26#ifndef __iwl_4965_h__ 32#ifndef __iwl_4965_h__
27#define __iwl_4965_h__ 33#define __iwl_4965_h__
28 34
@@ -192,6 +198,15 @@ struct iwl4965_scan_power_info {
192 s8 requested_power; /* scan pwr (dBm) requested for chnl/rate */ 198 s8 requested_power; /* scan pwr (dBm) requested for chnl/rate */
193}; 199};
194 200
201/* For fat_extension_channel */
202enum {
203 HT_IE_EXT_CHANNEL_NONE = 0,
204 HT_IE_EXT_CHANNEL_ABOVE,
205 HT_IE_EXT_CHANNEL_INVALID,
206 HT_IE_EXT_CHANNEL_BELOW,
207 HT_IE_EXT_CHANNEL_MAX
208};
209
195/* 210/*
196 * One for each channel, holds all channel setup data 211 * One for each channel, holds all channel setup data
197 * Some of the fields (e.g. eeprom and flags/max_power_avg) are redundant 212 * Some of the fields (e.g. eeprom and flags/max_power_avg) are redundant
@@ -202,14 +217,14 @@ struct iwl4965_scan_power_info {
202struct iwl4965_channel_info { 217struct iwl4965_channel_info {
203 struct iwl4965_channel_tgd_info tgd; 218 struct iwl4965_channel_tgd_info tgd;
204 struct iwl4965_channel_tgh_info tgh; 219 struct iwl4965_channel_tgh_info tgh;
205 struct iwl4965_eeprom_channel eeprom; /* EEPROM regulatory limit */ 220 struct iwl4965_eeprom_channel eeprom; /* EEPROM regulatory limit */
206 struct iwl4965_eeprom_channel fat_eeprom; /* EEPROM regulatory limit for 221 struct iwl4965_eeprom_channel fat_eeprom; /* EEPROM regulatory limit for
207 * FAT channel */ 222 * FAT channel */
208 223
209 u8 channel; /* channel number */ 224 u8 channel; /* channel number */
210 u8 flags; /* flags copied from EEPROM */ 225 u8 flags; /* flags copied from EEPROM */
211 s8 max_power_avg; /* (dBm) regul. eeprom, normal Tx, any rate */ 226 s8 max_power_avg; /* (dBm) regul. eeprom, normal Tx, any rate */
212 s8 curr_txpow; /* (dBm) regulatory/spectrum/user (not h/w) */ 227 s8 curr_txpow; /* (dBm) regulatory/spectrum/user (not h/w) limit */
213 s8 min_power; /* always 0 */ 228 s8 min_power; /* always 0 */
214 s8 scan_power; /* (dBm) regul. eeprom, direct scans, any rate */ 229 s8 scan_power; /* (dBm) regul. eeprom, direct scans, any rate */
215 230
@@ -228,7 +243,7 @@ struct iwl4965_channel_info {
228 s8 fat_min_power; /* always 0 */ 243 s8 fat_min_power; /* always 0 */
229 s8 fat_scan_power; /* (dBm) eeprom, direct scans, any rate */ 244 s8 fat_scan_power; /* (dBm) eeprom, direct scans, any rate */
230 u8 fat_flags; /* flags copied from EEPROM */ 245 u8 fat_flags; /* flags copied from EEPROM */
231 u8 fat_extension_channel; 246 u8 fat_extension_channel; /* HT_IE_EXT_CHANNEL_* */
232 247
233 /* Radio/DSP gain settings for each scan rate, for directed scans. */ 248 /* Radio/DSP gain settings for each scan rate, for directed scans. */
234 struct iwl4965_scan_power_info scan_pwr_info[IWL_NUM_SCAN_RATES]; 249 struct iwl4965_scan_power_info scan_pwr_info[IWL_NUM_SCAN_RATES];