aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-4965-hw.h
diff options
context:
space:
mode:
authorBen Cahill <ben.m.cahill@intel.com>2007-11-28 22:09:46 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:05:16 -0500
commit40ac81a35c3a19f6a78f0a9f58368d36048df35b (patch)
tree6aadae39d6f06d2bcfa2ed828e4ce3b9490c843c /drivers/net/wireless/iwlwifi/iwl-4965-hw.h
parent796083cb1d45d52d40ae2c933afcfc56d91ef427 (diff)
iwl-4965-hw.h: clean up unused eeprom structures and definitions
Clean up unused eeprom structures and definitions in iwl-4965-hw.h. 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-hw.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-4965-hw.h58
1 files changed, 1 insertions, 57 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965-hw.h b/drivers/net/wireless/iwlwifi/iwl-4965-hw.h
index 4741fa228315..a71c32a649d9 100644
--- a/drivers/net/wireless/iwlwifi/iwl-4965-hw.h
+++ b/drivers/net/wireless/iwlwifi/iwl-4965-hw.h
@@ -169,57 +169,6 @@ struct iwl4965_eeprom_channel {
169 s8 max_power_avg; /* max power (dBm) on this chnl, limit 31 */ 169 s8 max_power_avg; /* max power (dBm) on this chnl, limit 31 */
170} __attribute__ ((packed)); 170} __attribute__ ((packed));
171 171
172/*
173 * Mapping of a Tx power level, at factory calibration temperature,
174 * to a radio/DSP gain table index.
175 * One for each of 5 "sample" power levels in each band.
176 * v_det is measured at the factory, using the 3945's built-in power amplifier
177 * (PA) output voltage detector. This same detector is used during Tx of
178 * long packets in normal operation to provide feedback as to proper output
179 * level.
180 * Data copied from EEPROM.
181 */
182struct iwl4965_eeprom_txpower_sample {
183 u8 gain_index; /* index into power (gain) setup table ... */
184 s8 power; /* ... for this pwr level for this chnl group */
185 u16 v_det; /* PA output voltage */
186} __attribute__ ((packed));
187
188/*
189 * Mappings of Tx power levels -> nominal radio/DSP gain table indexes.
190 * One for each channel group (a.k.a. "band") (1 for BG, 4 for A).
191 * Tx power setup code interpolates between the 5 "sample" power levels
192 * to determine the nominal setup for a requested power level.
193 * Data copied from EEPROM.
194 * DO NOT ALTER THIS STRUCTURE!!!
195 */
196struct iwl4965_eeprom_txpower_group {
197 struct iwl4965_eeprom_txpower_sample samples[5]; /* 5 power levels */
198 s32 a, b, c, d, e; /* coefficients for voltage->power
199 * formula (signed) */
200 s32 Fa, Fb, Fc, Fd, Fe; /* these modify coeffs based on
201 * frequency (signed) */
202 s8 saturation_power; /* highest power possible by h/w in this
203 * band */
204 u8 group_channel; /* "representative" channel # in this band */
205 s16 temperature; /* h/w temperature at factory calib this band
206 * (signed) */
207} __attribute__ ((packed));
208
209/*
210 * Temperature-based Tx-power compensation data, not band-specific.
211 * These coefficients are use to modify a/b/c/d/e coeffs based on
212 * difference between current temperature and factory calib temperature.
213 * Data copied from EEPROM.
214 */
215struct iwl4965_eeprom_temperature_corr {
216 u32 Ta;
217 u32 Tb;
218 u32 Tc;
219 u32 Td;
220 u32 Te;
221} __attribute__ ((packed));
222
223/* 4965 has two radio transmitters (and 3 radio receivers) */ 172/* 4965 has two radio transmitters (and 3 radio receivers) */
224#define EEPROM_TX_POWER_TX_CHAINS (2) 173#define EEPROM_TX_POWER_TX_CHAINS (2)
225 174
@@ -230,8 +179,6 @@ struct iwl4965_eeprom_temperature_corr {
230 * each of 3 target output levels */ 179 * each of 3 target output levels */
231#define EEPROM_TX_POWER_MEASUREMENTS (3) 180#define EEPROM_TX_POWER_MEASUREMENTS (3)
232 181
233#define EEPROM_TX_POWER_VERSION (2)
234
235/* 4965 driver does not work with txpower calibration version < 5. 182/* 4965 driver does not work with txpower calibration version < 5.
236 * Look for this in calib_version member of struct iwl4965_eeprom. */ 183 * Look for this in calib_version member of struct iwl4965_eeprom. */
237#define EEPROM_TX_POWER_VERSION_NEW (5) 184#define EEPROM_TX_POWER_VERSION_NEW (5)
@@ -461,10 +408,7 @@ struct iwl4965_eeprom {
461#define EEPROM_CALIB_VERSION_OFFSET (2*0xB6) /* 2 bytes */ 408#define EEPROM_CALIB_VERSION_OFFSET (2*0xB6) /* 2 bytes */
462 u16 calib_version; /* abs.ofs: 364 */ 409 u16 calib_version; /* abs.ofs: 364 */
463 u8 reserved13[2]; 410 u8 reserved13[2];
464 411 u8 reserved14[96]; /* abs.ofs: 368 */
465#define EEPROM_SATURATION_POWER_OFFSET (2*0xB8) /* 2 bytes */
466 u16 satruation_power; /* abs.ofs: 368 */
467 u8 reserved14[94];
468 412
469/* 413/*
470 * 4965 Txpower calibration data. 414 * 4965 Txpower calibration data.